Hi there,
I've just tried to update my website and all went well except when I updated to the latest Avada theme version. It literally broke all of my Custom posts (see screenshot) which displayed a Critical error message.
Do you know of any incompatibility issues? Could you please look into this?
I've now rolled back to an earlier Avada version, but I saved the Toolset debug information from that update, so I can post that here if you enable the option.
Please access here: hidden link
Thank you very much for your help
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+01:00)
Hi there
If there is an error on the site you should be able to see details in the debug log.
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor.
Was debugging already active? In which case details of the error should be available.
(Otherwise you would need to update Avada to the current version again, to trigger the error so that we can see its details.)
I've updated Avada again.
Here's the details from the debug.log:
[04-Apr-2023 15:15:33 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:15:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:16:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:16:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:17:53 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada/includes/class-avada-page-options.php on line 165
[04-Apr-2023 15:19:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:20:50 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:21:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:22:45 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:23:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
[04-Apr-2023 15:23:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Avada_Layout::add_style() in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php:13
Stack trace:
#0 /web/htdocs/www.montagnebiellesi.it/home/wp-includes/template-loader.php(106): include()
#1 /web/htdocs/www.montagnebiellesi.it/home/wp-blog-header.php(19): require_once('...')
#2 /web/htdocs/www.montagnebiellesi.it/home/index.php(17): require('...')
#3 {main}
thrown in /web/htdocs/www.montagnebiellesi.it/home/wp-content/themes/Avada-Child-Theme/single-bando.php on line 13
It seems it has to do with Avada Layouts..
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
As you may have noticed that the issue with your Avada child theme so I suggest you should check whats going on as its theme issue and its even a child theme.
I found one related Doc where the Awada team has mentioned the solution:
- hidden link
Thank you. I had to change that code a little bit but it worked in the end.
Have a good day!