Closed (fixed)
Project:
Hotel Booking System for Ubercart
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Anonymous (not verified)
Created:
21 Oct 2009 at 03:41 UTC
Updated:
26 Feb 2019 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedWhen I reviewed the order, in the store admin, the same warning displays:
warning: Invalid argument supplied for foreach() in .../sites/all/modules/uc_hotel/hotel_booking/hotel_booking.module on line 1214.Comment #2
willvincent commentedThis warning is appearing because it's trying to check values of an array related to upgrade/addon products. That array doesn't exist in the order object unless addon products are added. This patch should solve that problem by adding an empty array even if there are no addon items added to the order.
The attached patch should take care of the invalid foreach argument warning. I don't believe the unable to send email message is related to the module.
Apply this patch from the uc_hotel directory.
Edit: Use the patch in comment #3, rather than this one.
Comment #3
willvincent commentedScratch that.. use this patch instead... the previous patch wasn't made properly, and didn't include both files that need altering to fix this issue; this one should.
Comment #4
larowlanTo get the admin email you need to set the store email address at admin->store->settings->contact settings
Comment #5
Anonymous (not verified) commentedCan't apply the patch to hotel_booking.module file:
I tryed to correct the patch, but I am not very good with patches system...
Comment #6
Anonymous (not verified) commentedOops! [#4] Thank you for help @larowlan. I installed this module on a clean drupal and I forget to fill the store settings.
Comment #7
willvincent commentedplace the patch file into your /modules/uc_hotel directory (or wherever your installed to)...
at the command prompt, type:
patch -p0 < 610230-1.patch
should apply just fine...
Comment #8
Anonymous (not verified) commentedAfter applying the patch everything it's ok. Thanks
Comment #9
willvincent commentedCommitted to CVS.
Continue to use patch from post #3 until next release if not installing from cvs.
Comment #10
pepemty commentedThanks, Will!
Somehow I don't have SSH access :-(
Pepe
Comment #11
willvincent commentedI've added a devel snapshot for those who can't access cvs for various reasons. As of now (Oct. 30, 2009 10:25am CST) the only changes between the official release and devel snapshot are this patch and the patch to fix occupancy modifier updates from issue 618248.
Comment #12
pepemty commentedWill, as always, much obliged! :-)