Error 0 Cannot use object of type stdClass as array with the category view or product view

Phoca Cart - complex e-commerce extension
Sno Melli
Phoca Member
Phoca Member
Posts: 13
Joined: 16 Jul 2020, 22:22

Error 0 Cannot use object of type stdClass as array with the category view or product view

Post by Sno Melli »

Hi to everybody,
I am testing Phoca Cart for a my new website, but i have this strange error when i go to see the categorie of my shop :
0 Cannot use object of type stdClass as array
I don't understand why ? it appears only when i publish a product. Without product, there is no error.

You can see it here : https://colbeau.fr/colbeau2/index.php/b ... s-papillon

Thank you for helping me
Sno Melli
Phoca Member
Phoca Member
Posts: 13
Joined: 16 Jul 2020, 22:22

Re: Error 0 Cannot use object of type stdClass as array with the category view or product view

Post by Sno Melli »

Maybe i have find the solution here : https://www.joomforest.com/help/forum/j ... te-problem
Because i have tested with another template and it seems working so i have searched on this way and with another error, i have found this.
So now it seems working :-)
Sno Melli
Phoca Member
Phoca Member
Posts: 13
Joined: 16 Jul 2020, 22:22

Re: Error 0 Cannot use object of type stdClass as array with the category view or product view

Post by Sno Melli »

In fact, it's not the solution, but it pointed where is the error. But i don't understand so well php. I have tried to make changes, but it doesn't works.
If someone good in php can see the error
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 0 Cannot use object of type stdClass as array with the category view or product view

Post by Jan »

Hi, sorry for late response, do you still get the error? I don't see it on the site?

Jan
If you find Phoca extensions useful, please support the project
Post Reply