Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Why do I get the following error message after installing this:
Fatal error: Call to undefined function: uc_product_node_info() in /home/vikjffmw/public_html/gamezone/modules/ubercart/uc_repeater/uc_repeater.module on line 48
Comments
Comment #1
Adds CreditAttribution: Adds commentedCan anyone advise on this please?
Comment #2
Shawn Conn CreditAttribution: Shawn Conn commentedSee your post on ubercart.org.
Comment #3
seanrThe problem here appears to be an installation order issue. I think maybe the module weights need to be adjusted so that the required core modules (product/cart/etc.) always get loaded before the others. Otherwise, it's damned near impossible for a non-expert to install this module. Order of installation should never cause a fatal error because the modules should be weighted correctly and have the correct dependencies set.
Comment #4
seanrComment #5
Island Usurper CreditAttribution: Island Usurper commentedBut the Ubercart modules do have all their dependencies set. In fact, I enable them all at once and I have never had this problem. rszrama has, so I've seen it happen, but I can't debug what I can't duplicate. I've looked at Drupal's module installation code, but it looks alright to me.
I just had the thought that maybe we shouldn't be declaring dependencies of dependencies in the .info files. For example: module C depends on B which also depends on A. Would the following line in C.info cause problems?
I would not expect it to, but I would acknowledge that it isn't the best practice.
Comment #6
rszrama CreditAttribution: rszrama commentedfwiw, people following the installation instructions in our documentation will see that they should install the 4 core modules before installing any other modules. We can't force them to do so, but it has been documented. Basically, this is a Drupal issue, not an Ubercart issue... but I don't have the slightest clue on how it should be addressed at the Drupal level. Someone suggested that what's happening is it's going by folder name... so the quote module will get enabled first since it's in the shipping subdirectory which gets loaded before uc_product... but still, it shouldn't be an issue. : ?
EDIT: Oof... my old docs on installation mentioned the install order; I think Shawn took that out in a rewrite. Leaving this open so I can update them. : (
Comment #7
rszrama CreditAttribution: rszrama commentedComment #9
plasticlax CreditAttribution: plasticlax commentedso when doing an update should one disable all but the 4 core modules first? doesn't that reset all kinds of settings? i am getting this error on only one of several sites after doing an update to 5.x 1.7
to solve it i deleted the shipping folder, ran update.php, then reuploaded the shipping folder and ran update.php again.