I think I have fixed this error
for article.php
I have write and change in script
<?php
// Fallbacks for missing blog/author data
$blog_title = isset($blog['s_title']) ? blg_get_title($blog) : 'Untitled Article';
$blog_description = osc_esc_html(osc_highlight(osc_structured_data_description(), 200));
$blog_image = isset($blog['s_image']) ? blg_img_link($blog['s_image']) : osc_resource_url('images/no_image_available.png');
$blog_date = isset($blog['dt_pub_date']) ? date('c', strtotime($blog['dt_pub_date'])) : date('c');
$author_name = isset($author['s_name']) ? $author['s_name'] : 'Guest Author';
$author_id = isset($author['pk_i_id']) ? $author['pk_i_id'] : 0;
$author_url = $author_id > 0
? osc_route_url('blg-author', array(
'authorSlug' => osc_sanitizeString(blg_slug($author_name)),
'authorId' => $author_id
))
: osc_base_url();
?>
<script type="application/ld+json">
{
"@context": "
https://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<?php echo osc_esc_html($blog_url); ?>"
},
"headline": "<?php echo osc_esc_html($blog_title); ?>",
"description": "<?php echo $blog_description; ?>",
"image": "<?php echo $blog_image; ?>",
"datePublished": "<?php echo $blog_date; ?>",
"author": [{
"@type": "Person",
"name": "<?php echo osc_esc_html($author_name); ?>",
"url": "<?php echo $author_url; ?>"
}]
}
</script>
and in head.php , I have changed this
This
<?php
$current_locale = osc_get_current_user_locale();
$dimNormal = explode('x', osc_get_preference('dimNormal', 'osclass'));
$jquery_version = (defined('JQUERY_VERSION') && JQUERY_VERSION != '1') ? JQUERY_VERSION : '1';
?>
<script type="text/javascript">
var delCurrentLocale = '<?php echo osc_esc_js($current_locale['s_name']); ?>';
To
<?php
$current_locale = osc_get_current_user_locale();
$dimNormal = explode('x', osc_get_preference('dimNormal', 'osclass'));
$jquery_version = (defined('JQUERY_VERSION') && JQUERY_VERSION != '1') ? JQUERY_VERSION : '1';
// Safe locale name
$locale_name = (is_array($current_locale) && isset($current_locale['s_name']))
? $current_locale['s_name']
: osc_current_user_locale(); // fallback to site locale
?>
<script type="text/javascript">
var delCurrentLocale = '<?php echo osc_esc_js($locale_name); ?>';
can you please check everythink is ok.. now error not showing ... lets see after sometimes.