After upgrading from 9.7 to 10.2 the post page seems missing the entire sidebar and the footer, while other areas seems ok.
For istance:
home: https://liguriaoggi.it/
Post: https://liguriaoggi.it/2019/11/29/autostrada-a12-chiuso-per-una-notte-lallacciamento-con-la-a7/
Looking in the logs, I’ve noticed a fatal error:
Nov 30 12:57:06 php71-a-eqs ool liguriaoggi.it: PHP Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in /data/websites/liguriaoggi.it/___/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php:671#012Stack trace:#012#0 /data/websites/liguriaoggi.it/___/wp-content/plugins/td-standard-pack/Newspaper/parts/single/loop-single-2.php(42): td_module_single_base->get_item_scope_meta()#012#1 /data/websites/liguriaoggi.it/___/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_2.php(56): require_once(‘/data/websites/…’)#012#2 /data/websites/liguriaoggi.it/___/wp-includes/template-loader.php(78): include(‘/data/websites/…’)#012#3 /data/websites/liguriaoggi.it/___/wp-blog-header.php(19): require_once(‘/data/websites/…’)#012#4 /data/websites/liguriaoggi.it/___/index.php(17): require(‘/data/websites/…’)#012#5 {main}#012 thrown in /data/websites/liguriaoggi.it/___/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 671
After deep investigation I’ve noticed a very unusual thing.
If you inspect the post and see the html the initial opening html tag (html, head) are loaded at the end of the page.
Disabling the caching plugin (qp super cache) a small improvement is noted: now the tags are ok but still missing the sidebar, the footer and some js.
-
This reply was modified 6 years by
Raffu.
Despite what previously said, the fatal error is still there after the php upgrade:
Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in /data/websites/liguriaoggi.it/___/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php:671 Stack trace: #0 /data/websites/liguriaoggi.it/___/wp-content/plugins/td-standard-pack/Newspaper/parts/single/loop-single-2.php(42): td_module_single_base->get_item_scope_meta() #1 /data/websites/liguriaoggi.it/___/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_2.php(56): require_once(‘/data/websites/…’) #2 /data/websites/liguriaoggi.it/___/wp-includes/template-loader.php(78): include(‘/data/websites/…’) #3 /data/websites/liguriaoggi.it/___/wp-blog-header.php(19): require_once(‘/data/websites/…’) #4 /data/websites/liguriaoggi.it/___/index.php(17): require(‘/data/websites/…’) #5 {main} thrown in /data/websites/liguriaoggi.it/___/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 671