WordPress Theme Warning: Illegal sidebar string offset
P粉103739566
2023-09-01 09:04:54
<p>Can someone help me resolve a couple of PHP errors I'm seeing on my WordPress site? </p>
<p>https://prnt.sc/Gja4uuoyw3-9</p>
<p>These are also lines in the sidebar.php file. </p>
<p>https://prnt.sc/q6ECaim1sjIn</p>
<p>We would be grateful if you could help resolve this issue. </p>
<p>Thank you. </p>
<p>Kind regards,
Erica</p>
It seems that
$page_meta
is not an array, but a string. I'm guessing the theme expects those variable names as meta variables for that page. This also relates to sidebars, whether used or not.Understood. I googled the theme name
smt_getOption
and saw this: