This topic has 6 replies, 4 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
The ‘8Themes Brand List’ is returning an error. Not sure if it’s a plugin conflict but this shows up on debug mode otherwise it doesn’t render anything.
Warning: Illegal string offset ‘T’ in /wp-content/themes/xstore/framework/shortcodes/brands_list.php on line 43
Fatal error: Uncaught Error: Cannot use string offset as an array in /wp-content/themes/xstore/framework/shortcodes/brands_list.php:43 Stack trace: #0 /wp-includes/shortcodes.php(319): etheme_brands_list_shortcode(Array, ”, ‘etheme_brands_l…’) #1 [internal function]: do_shortcode_tag(Array) #2 /wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(etheme…’, ‘do_shortcode_ta…’, ‘[etheme_brands_…’) #3 /wp-content/plugins/js_composer/include/helpers/helpers.php(232): do_shortcode(‘[etheme_brands_…’) #4 /wp-content/plugins/js_composer/include/templates/shortcodes/vc_column_inner.php(50): wpb_js_remove_wpautop(‘[etheme_brands_…’) #5 /wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php(473): include(‘/Users/$$$/…’) #6 /wp-content/plugins/js_composer/include/classes/shor in /wp-content/themes/xstore/framework/shortcodes/brands_list.php on line 43
Hi,
since it’s in local host we can not check it.
please upload your site to a live server and let us know the login credentials to check this.
@Riffaz – thanks for your reply. So I spent some time trying to figure out the root cause, deactivating plugins, running debug mode, and all that other troubleshooting stuff. I seem to have uncovered the issue. I had MAMP running at PHP Version 7.1.8. When I ran MAMP at PHP Version 7.0.22, the ‘8Theme Brands List’ in Visual Composer began working again. Can you take this back to the dev team?
Live hostings running at 7.0.22 so it shouldn’t be any issue when I go live but this could affect other users of the theme if they upgrade their PHP to 7.1.8.
Hello,
Open the file framework\shortcodes\brands_list.php and replace the code in 1 by code in 2 http://prntscr.com/hy1v1s
We’ll also fix it in next theme update.
Regards
Thank you Olga!
Hello,
You’re welcome!
This topic will be closed because the issue is solved. Please kindly open up new tickets for additional questions.
Regards
The issue related to '‘8Themes Brand List returning error 'Illegal string offset 'T'’' has been successfully resolved, and the topic is now closed for further responses