Hi,
I just installed Enfold and imported the demo content, however, I’m getting this error message:
Warning: Creating default object from empty value in /home/j8tradee/cosori.bg/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 904
How can I remove it?
Hey boyan89,
Try disabling the Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression options. What version of PHP is your server using and is it using an object-oriented cache such as Memcached, Redis, Varnish, Litespeed, etc?
Best regards,
Mike
Hi Mike,
Thank you so much! This removed the error. However, isn’t this a recommended option?
The PHP version is 7.4. It does not use any of the above.
The error message appeared again.
Hi,
I checked your site, but I don’t see the error now.
I suggested this because at the error location /class-asset-manager.php on line 904
was this comment:
* Fix a possible bug occurring on some installs - occur ocasionally - reporting "Creating default object from empty value"
* https://kriesi.at/support/topic/clean-enfold-install-with-woocommerce-and-demo-data-results-in-critical-error/
* https://github.com/KriesiMedia/wp-themes/issues/3281
at the github issue page the Dev Team said they were not able to reproduce this, and my demo site also doesn’t give this error.
So that is why I was asking about your server settings, do you have any plugins or scripts you can disable?
Who is your webhost?
Best regards,
Mike