When enabling Orders, I receive a 500 error, then after refreshing the page I have the following error at the top:

Warning: require_once(uc_order.order_pane.inc) [function.require-once]: failed to open stream: No such file or directory in require_once() (line 13 of /Users/Kristen/Dropbox/.../sites/all/modules/ubercart/uc_order/uc_order.module).

I have verified that the uc_order.order_pane.inc file is there and the reference in uc_order.module is correct. My memory_limit is 128MB (verified on phpinfo. I had a similar problem with other modules before bumping it up), but even at 160MB I had this issue. I tried this again on a clean Drupal install with the same error. I'm running locally using MAMP Pro.

Any thoughts? My PHP logs say the same thing as the error on the top of the modules page. Are there any MAMP settings that might be off? Any help would be awesome.

Thanks!

Comments

pixelsticks’s picture

Category: bug » support
pixelsticks’s picture

Status: Active » Fixed

Success! I changed lines 13 and 14 in the uc_order.module to

require_once(dirname(__FILE__).'/uc_order.order_pane.inc');
require_once(dirname(__FILE__).'/uc_order.line_item.inc');

(Use __DIR__. for PHP 3.x

If there is any reason I shouldn't have done this, let me know. Otherwise, I'll find out soon whether it works.

longwave’s picture

Category: support » bug
Status: Fixed » Active

This looks like a reasonable change, although it isn't needed for most users looks like it is required on some platforms. If the Orders module works for you now, let us know and this change will be added to the next release so you don't have to edit the code yourself.

longwave’s picture

Status: Active » Fixed

Fix committed for uc_order plus similar references in uc_cart and uc_payment.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pixelsticks’s picture

Thanks for the fix. Sorry -- not used to checking post statuses yet. In case it helps anyone, I moved to BlueHost from MAMP using 5.2.x and didn't need to make the change.