Find Answers and Get Support › Forums › Gorgo – Multi-Purpose Gutenberg Blog & Magazine Theme › Theme Customizer › Error loading assets and unexpected token <
- This topic has 7 replies, 2 voices, and was last updated 10 months, 3 weeks ago by Manathan.
I have problem (error as shown in the attached screenshot) when I try to customize the website. The PHP file stops with unexpected token < error. Many of the plugin assets are not found as well. Please advise how to correct this.
M. NajjarApril 6, 2022 at 12:56 #39718
Thank you for reaching out to us.
To help us getting clues and find a solution to this issue, please activate logging on your website, just turn WP_DEBUG to true, by pasting the following code lines in your wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.’:
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
More on this in the following topic: Debugging in WordPress.
Thank you.April 6, 2022 at 15:24 #39725
Thank you Manathan,
This seems to partially solve the issue, as it seems the error is triggered while showing the warnings. Turning warnings off solved the issue. I can now see the customization options (see attached screenshot). Yet the warnings of the missing assets are still there.
I cannot upload the log file as it seems there are no options to do so. I have uploaded a screenshot instead.
Thank you again, Manathan for your support.
M. NajjarApril 6, 2022 at 22:45 #39737
Thank you for your feedback.
Could you please tell us which PHP version are you using?
It seems many issue come from third party plugins. Could you please make sure that you have the latest theme version and that all your plugins are up-to-date? Finally, you could also consider clearing all activated caching system as well as your browser cache before investigating any further. If you want to read more on what browser cache is and how to clear it, here is an article that might help you: How to Clear Internet Cache in Every Major Browser.
Thank you.April 8, 2022 at 10:39 #39757
Thank you so much Manathan,
Downgrading PHP to 7.4.21 instead of 8.0.8 limited errors to one error as follows (according to debug.log):
“[08-Apr-2022 09:58:06 UTC] PHP Notice: Trying to access array offset on value of type int in /Users/mnajjar/wordpress/wp-content/plugins/kirki/packages/kirki-framework/control-react-colorful/src/Control/ReactColorful.php on line 179”
I tried to update all plugins (which all seemed updated to the latest version). Finally, I decided to reset kiriki plugin (mentioned in the debug) by deactivating and activating it. But as soon I pressed “Deactivate”, the whole site went down with the following message 🙁
“There has been a critical error on this website. Please check your site admin email inbox for instructions. Learn more about troubleshooting WordPress.”
I tried then to clear the caching. but I couldn’t undo the deactivation of kirki plugin.
M. NajjarApril 8, 2022 at 12:16 #39761
I am reinstalling wordpress and gorgo again. I will go through the steps carefully and be back to you.April 8, 2022 at 12:46 #39762
After reinstallation, the same warning related to kirki plugin is triggered every few milliseconds.
[08-Apr-2022 19:56:19 UTC] PHP Notice: Trying to access array offset on value of type int in /Users/mnajjar/wordpress/wp-content/plugins/kirki/packages/kirki-framework/control-react-colorful/src/Control/ReactColorful.php on line 179April 8, 2022 at 23:07 #39763
Thank you for your detailed feedback.
Be sure our theme and required plugins work correctly with the last php version. However, it seems the third plugins are not compatible yet. I recommend you to let the 7.4.21 PHP version. I’am afraid there’s nothing we could do as these are not plugins we developed.
Concerning the last notice, no worries. This is a PHP notice, not an error. Unlike errors, notices won’t break your website. They’re just messages aimed at developers to improve their code.
Regards,April 11, 2022 at 09:05 #39781
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
The Themosaurus team.
The topic ‘Error loading assets and unexpected token <’ is closed to new replies.