Shopica 2 Final, Function Compare -> Fatal Error:

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeShopica 2 Final, Function Compare -> Fatal Error:

This topic has been marked as resolved.

Hello

I have shoppica 2 final, but when i delete all compare products i get this error!

Fatal Error: You have unclosed slots : array ( 0 => ‘product\\compare.filter_products’, ) in /home/xxx/public_html/tb_themes/shoppica2/library/ViewSlot.php on line 24
Terminating sript execution.

Any solution?

May 23, 2012 at 12:39 am #9222

I have the same error coming up after deleting the last product.

May 23, 2012 at 12:56 am #9223

Yes this is the error.

May 23, 2012 at 12:58 am #9224

Freemouka go to tb_themes->shoppica2->library->ViewSlot.php and put public function __destruct() to comment /* */. This will work.

May 24, 2012 at 12:26 am #9311

Thanks LiMarko,

That works like a charm.

Some navigation issues here:

After deleting the products it would be much nicer to get redirected back to the product page.
-Now you go back to the Home page and have to strat over again.
-Also the breadcrumbs are missing once you start to compare.

May 24, 2012 at 11:13 pm #9334

Np.

About redirect to product page:
- One option is to get latest deleted product and then redirect to his Category.
- The other option is to have programmed (product/listallcategories) and then redirect to this.

About the breadcrumbs. What do you mean what is missing? You must have breadcrums something like this. Home > Compare Products

  • This reply was modified 4357 days ago by  LiMarko.
  • This reply was modified 4357 days ago by  LiMarko.
  • This reply was modified 4357 days ago by  LiMarko.
May 26, 2012 at 2:15 am #9356

Hi,

I’m having an issue as well when removing products from compare – get the following browser (Firefox) message:

“Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.”

I would like to apply the fix mentioned in the earlier post, but I’m not clear to where exactly I should be adding:
public function __destruct()

What line exactly – 24?

Thanks

 kmac
May 26, 2012 at 4:26 am #9361

Hi,

About the breadcrumbs it is exactly what you write, the product page is switched for the compare page in the breadcrumbs. I think it should be the productpage/comparepage in the breadcrumbs so you can always navigate back.

I think this is what you do, after you compare you want to go back and choose som eother products to compare as well, now you have to start all over again.

Your first option is really nice I think: get the latest deleted product and then redirect to back to the Category.

May 27, 2012 at 4:43 pm #9385

Hi guys,

We have attached a fixed template for the compare page here:

http://support.themeburn.com/topic/compare-page-error

Best,
ThemeBurn team

May 31, 2012 at 11:44 am #9577
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.