installation causes fatal error
-
Hi – I’m a long time fan of SearchWP and was keen to try this modal search form out. However, on installation it resulted in a fatal error which caused the site to crash.
I’m running WP5.2.2 on PHP7.3 with SearchWP 3.0.7
The message returned was as follows:
Error Details ============= An error of type E_ERROR was caused in line 222 of the file [SITEURL]/wp-content/plugins/searchwp-modal-search-form/searchwp-modal-form.php. Error message: Uncaught Error: Using $this when not in object context in [SITEURL]/wp-content/plugins/searchwp-modal-search-form/searchwp-modal-form.php:222 Stack trace: #0 [internal function]: SearchWP_Modal_Form::register_block_type(”)
#1 [SITEURL]/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
#2 [SITEURL]/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 [SITEURL]/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 [SITEURL]/wp-settings.php(525): do_action(‘init’)
#5 [SITEURL]/wp-config.php(128): require_once(‘/nas/content/li…’)
#6 [SITEURL]/wp-load.php(37): require_once(‘/nas/content/li…’)
#7 [SITEURL]/wp-admin/admin.php(34): require_once(‘/nas/content/li…’)
#8 [SITEURL]/wp-admin/plugins.php(10): require_once(‘/nas/content/li…’)
#9 {main} thrownIt also returned this similar log entry in the error logs:
PHP Fatal error: Uncaught Error: Using $this when not in object context in [SITEURL]/wp-content/plugins/searchwp-modal-search-form/searchwp-modal-form.php:222\nStack trace:\n#0 [internal function]: SearchWP_Modal_Form::register_block_type(”)\
n#1 [SITEURL]/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\
n#2 [SITEURL]/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\
n#3 [SITEURL]/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\
n#4 [SITEURL]/wp-settings.php(525): do_action(‘init’)\
n#5 [SITEURL]/wp-config.php(128): require_once(‘/nas/content/li…’)\
n#6 [SITEURL]/wp-load.php(37): require_once(‘/nas/content/li…’)\
n#7 [SITEURL]/wp-admin/admin-ajax.php(22): require_once(‘/nas/content/li…’)\
n#8 {main}\n thrown in [SITEURL]/wp-content/plugins/searchwp-modal-search-form/searchwp-modal-form.php on line 222, referer: [SITEURL]/wp-admin/post.php?post=18026&action=edit
The topic ‘installation causes fatal error’ is closed to new replies.