Brad Mordics
Brad Mordics

Reputation: 1

resolve this php fatal error on a plugin for wordpress

I have a wordpress critical error and my debug log shows the following error:

PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/audiocompe/public_html/wp-content/plugins/sw_core/inc/options/options.php:656 Stack trace: #0 /home/audiocompe/public_html/wp-includes/class-wp-hook.php(308): SW_Options->_options_page_html('') #1 /home/audiocompe/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #2 /home/audiocompe/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/audiocompe/public_html/wp-admin/admin.php(259): do_action('appearance_page...') #4 /home/audiocompe/public_html/wp-admin/themes.php(10): require_once('/home/audiocomp...') #5 {main} thrown in /home/audiocompe/public_html/wp-content/plugins/sw_core/inc/options/options.php on line 656

The full code from the plugin is available here: https://drive.google.com/file/d/14GM4ydGdlOUBr7fLXByCxXz0ISs-L4jb/view?usp=sharing

I'm trying to open the theme options menu to adjust settings for my wordpress site but it brings a critical error message.

I'm not a php expert so i hardly understand more than comments on php files. I have adjusted memory limits to beyond recommended just in case and i have also deactivated all plugins and only activated the said plugins but still brings the issue.

Upvotes: 0

Views: 1092

Answers (1)

Pedro Serpa
Pedro Serpa

Reputation: 161

It seems that line echo isset($this->args['intro_text']) ? $this->args['intro_text'] : ''; is responsible for that critical error. It seems that $this->args['intro_text'] is not beeing set anywhere. Try to comment that line and wait for an update and/or open a support ticket in the plugin dev's website.

Upvotes: 0

Related Questions