Error Log after Updating to OC 1.5.5.1 and Shoppica v. 2.2.3

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeError Log after Updating to OC 1.5.5.1 and Shoppica v. 2.2.3

This topic has been marked as not resolved.

Hi,

I was running OC v. 1.5.4.1 with Shoppica v. 2.2.1
After updating to OC 1.5.5.1 / Shoppica v. 2.2.3 I get the following errors in the Error Log:

2013-06-26 23:17:02 – PHP Notice: Undefined variable: tbData in /var/www/vhosts/site/httpdocs/vqmod/vqcache/vq2-catalog_view_theme_shoppica2_template_module_category.tpl on line 11

2013-06-26 23:17:02 – PHP Notice: Trying to get property of non-object in /var/www/vhosts/site/httpdocs/vqmod/vqcache/vq2-catalog_view_theme_shoppica2_template_module_category.tpl on line 11

2013-06-26 23:17:02 – PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/site/httpdocs/vqmod/vqcache/vq2-catalog_view_theme_shoppica2_template_module_category.tpl on line 29

2013-06-26 23:17:02 – PHP Warning: require(/var/www/vhosts/site/httpdocs/vqmod/vqcache/../tb/install_error.tpl): failed to open stream: No such file or directory in /var/www/vhosts/site/httpdocs/vqmod/vqcache/vq2-catalog_view_theme_shoppica2_template_module_bestseller.tpl on line 1

2013-06-26 23:25:53 – PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/site/httpdocs/system/library/request.php on line 33

Regarding the first 4 errors that seem to be related, my vq2-catalog_view_theme_shoppica2_template_module_category.tpl lines 11 to 29 are as following:

getCategoryTreeWithTotalProductsMaxLevel2(); else $categories = $tbData->category_tree; ?>


request->get['path'])) {
$parts = explode(‘_’, (string)$this->request->get['path']);
} else {
$parts = array();
}

if (isset($parts[2])) {
$subsub_path = $parts[2];
} else {
$subsub_path = 0;
}
?>

It seems that the problem is in catalog\view\theme\shoppica2\template\module\category.tpl, line 5 through 7:

getCategoryTreeWithTotalProductsMaxLevel2(); else $categories = $tbData->category_tree; ?>

Regarding the last error, which may be not Shoppica 2 related, (2013-06-26 23:25:53 – PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/site/httpdocs/system/library/request.php on line 33), the problem is this line:
$data = htmlspecialchars($data, ENT_COMPAT, ‘UTF-8′);

My shop is multilingual (Greek/English) with UTF8 characters in the URL if this is something that helps.

Cheers

June 27, 2013 at 12:38 pm #24835

Hi,

Have you tried to clear your _ROOT/vqmod/vqcache/ folder?

Best,
ThemeBurn team

July 3, 2013 at 11:58 am #25080

Hi,

yes I’ve done that and still getting the PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/site/httpdocs/system/library/request.php on line 33) error. Is this Shoppica related?

Cheers

July 3, 2013 at 12:42 pm #25082

The PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/vhosts/site/httpdocs/system/library/request.php on line 33 is not related to Shoppica.

Open /system/library/request.php and make sure line 33 contains:

$data = htmlspecialchars($data, ENT_COMPAT, 'UTF-8');

If ‘UTF-8′ is missing, your version of opencart is not the latest (i.e. you did an incomplete upgrade).

Regards,
ThemeBurn team

July 9, 2013 at 9:28 am #25286

Hi and thanx for the reply!

Yes, I thought it wouldn’t have to do with Shoppica…
Line 33 of my /system/library/request.php is the same as the one you post.

Thanx

July 9, 2013 at 12:16 pm #25307

Are you sure this error continues to pop out, even after you clear the error log ?

July 9, 2013 at 12:55 pm #25308

Yes.
I am clearing the error log and keep getting the same error (more than 100 times per day with about 60-100 unique visitors/day).

July 9, 2013 at 1:20 pm #25310

This seems rather strange, as the most frequent reason about this errors is the absence of the third argument – ‘UTF-8′ . That’s all we can say about the topic.

Regards,
ThemeBurn team

July 9, 2013 at 5:21 pm #25325
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.