Closed (fixed)
Project:
Ubercart
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 12:17 UTC
Updated:
7 Mar 2010 at 20:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
idmacdonald commentedHere's the patch...
-Ian
Comment #2
Island Usurper commentedI have no clue why this is happening. uc_cart depends on uc_product, and that function is definitely in that module. And it's not like we even have a weird situation where one module is trying to access a function before that file is loaded yet. I suppose some contrib module could be invoking hook_nodeapi() with its own $op before all of the modules are loaded (which doesn't sound like the greatest idea to begin with, I might add).
The only other option I can think of is that uc_product.module doesn't have uc_product_is_product(), which shouldn't be true for a rc3 version of it. Open up the file and check, I guess, or download the modules again.
Comment #3
Island Usurper commentedComment #4
betz commentedsame here, when i call 'uc_cart_get_contents()' i get this error
Call to undefined function uc_product_is_product()now i changed line 314 from
if (uc_product_is_product($node->type)) {to
if ((function_exists('uc_product_is_product')) && (uc_product_is_product($node->type))) {and it solved my problem.
PS: using the 2 dev version
Comment #5
Anonymous (not verified) commentedI got that issue when upgrading to 2.2. I solved it with deleting the modules folder and uploading it again.
Comment #6
tr commentedBe aware that the "fixes" in #1 and #4 just suppress the error message by bypassing a block of code that needs to be run. This is not a solution. As #2 said, the function exists so your problem almost certainly lies outside of Ubercart. Without more information it's really impossible to help you debug what's going on.
Comment #7
tr commented