Hello @giulianoromano
From what I can see, the error is actually not related to the update, but to some custom PHP code that you have added in the child theme.
The file that errors out is home/porttur/public_html/wp-content/themes/costiera-amalfitana/sidebar.php:16
The theme looks like some sort of a child theme for Blocksy with added code.
Unfortunately, we are not able to offer support for debugging or maintaining custom code. It would be recommended to contact the developer who has implemented this code to update it, if needed.
Hope this clears things up!
Thanks.
Hi Eduard, thanks for reply.
The sidebar.php has following code
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Blocksy
*/
/**
* Note to code reviewers: This line doesn't need to be escaped.
* The value used here escapes the value properly.
* It's the actual WordPress sidebar content.
*/
echo blocksy_render_sidebar();
It works with old (father) Blocksy version, but not works with update to latest Blocksy father version…
I dont understand why…
Ok, i solved!
I changed the content of sidebar.php in chil theme
from
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Blocksy
*/
/**
* Note to code reviewers: This line doesn't need to be escaped.
* The value used here escapes the value properly.
* It's the actual WordPress sidebar content.
*/
echo blocksy_render_sidebar();
to
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Blocksy
*/
$sidebar = new \Blocksy\Sidebar();
/**
* Note to code reviewers: This line doesn't need to be escaped.
* The value used here escapes the value properly.
* It's the actual WordPress sidebar content.
*/
echo $sidebar->render();
and now it works!
Many thanks for Your suggestion 😉
There we go, @giulianoromano. 😉
Take care.