Closed (fixed)
Project:
e-Commerce
Version:
5.x-3.x-dev
Component:
cart
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2006 at 20:06 UTC
Updated:
1 Sep 2009 at 15:50 UTC
I assume this bug is due to an upgrade on our server to PHP 5.2.
When I click on "Checkout" I get the following error:
Catchable fatal error: Object of class stdClass could not be converted to string in /webdocs/test/public_html/includes/module.inc on line 181
Comments
Comment #1
neclimdulI don't think this exists anymore. Fixed elsewhere. Reopen if I am incorrect.
Comment #2
robomalo commentedIt still happens. Here is what I have:
The error happens when I go to my-url.com/cart/checkout.
If I change line 363 in cart.module from
if (in_array('registered_user', (array)module_invoke($item->ptype, $item, 'attributes', 'registered_user'))) {to
if (in_array('registered_user', (array)module_invoke($item->ptype, 'productapi', $item, 'attributes', 'registered_user'))) {the error goes away. Unfortunately, I do not know if this is fixing the error, or just breaking something completely.
Comment #3
deadmalc commentedI am getting the same error, it's not causing any problems that I can see at the moment, but if you don't need that
section of code (there is a comment on what it does above this) then comment it all out, that's the safest bet at the moment.
Unfortunately I've customised so much of the ecommerce stuff that it would be a nightmare to upgrade to the latest 4.7 version,
considering 5.x is out now and there is enough work there to do for me
Comment #4
gordon commentedActually this is because you have a poorly written product module which doesn't return any attributes when the attribute flag is called.
Comment #5
gordon commentedThis has now been fix in 3-dev
Comment #6
(not verified) commentedComment #7
buddaCan you clarify how a poorly written product module should be fixed if the problem is with attributes.
I'd like to fix our product module which has started causing this issue.