Gallery3 3.0.4 running on local machine
I've spent ages getting Gallery3 to look just the way I want (and have uninstalled and reinstalled more than once). Today I went to what I thought was going to be the final thing before going live - install a shopping cart. I downloaded the module ages ago (28 June to be precise) but only moved it to modules today. When I clicked on Update I got the message 'An error occurred while installing the Shopping Basket module'. A quick check on the website identified that there were known problems - so downloaded basket-rwedit.zip, dropped the updated basket module into the directory...
...and got exactly the same error. Extracted the following info from the log and, to my untrained eye, it looks pretty serious.
2012-12-06 12:47:48 +00:00 --- error: exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in G:\Website-Sandpit\secure\gallery3\system\libraries\ORM.php:735
Stack trace:
#0 G:\Website-Sandpit\secure\gallery3\system\libraries\ORM.php(735): gallery_error_Core::error_handler()
#1 G:\Website-Sandpit\secure\gallery3\system\libraries\ORM.php(778): ORM_Core->validate()
#2 G:\Website-Sandpit\secure\gallery3\modules\gallery\libraries\MY_ORM.php(34): ORM_Core->save()
#3 G:\Website-Sandpit\secure\gallery3\modules\basket\helpers\postage_band.php(77): ORM->save('No Postage', 0, 0)
#4 G:\Website-Sandpit\secure\gallery3\modules\basket\helpers\basket_installer.php(83): postage_band_Core::create()
#5 [internal function]: basket_installer::install(Array, Array)
#6 G:\Website-Sandpit\secure\gallery3\modules\gallery\helpers\module.php(177): call_user_func_array('basket')
#7 G:\Website-Sandpit\secure\gallery3\modules\gallery\controllers\admin_modules.php(94): module_Core::install()
#8 G:\Website-Sandpit\secure\gallery3\modules\gallery\controllers\admin_modules.php(54): Admin_Modules_Controller->_do_save()
#9 [internal function]: Admin_Modules_Controller->confirm(Array, Array)
#10 G:\Website-Sandpit\secure\gallery3\modules\gallery\controllers\admin.php(62): call_user_func_array('modules', Array)
#11 [internal function]: Admin_Controller->__call(Object(Admin_Controller), Array)
#12 G:\Website-Sandpit\secure\gallery3\system\core\Kohana.php(331): ReflectionMethod->invokeArgs(NULL)
#13 [internal function]: Kohana_Core::instance(Array, Array)
#14 G:\Website-Sandpit\secure\gallery3\system\core\Event.php(208): call_user_func_array('system.execute')
#15 G:\Website-Sandpit\secure\gallery3\application\Bootstrap.php(67): Event_Core::run()
#16 G:\Website-Sandpit\secure\gallery3\index.php(113): require('G:\Website-Sand...')
#17 {main}
Can anyone suggest my next step(s)
Thanks
Yes, I am testing on Windows , Apache 2.2.22 PHP 5.2.17. I don't want to put this on a live site until I am sure it does what I want
Posts: 11
FIXED!!!
Haven't a clue what I was doing but looked at the install script - got the names of all the tables, checked the database and found they already existed so tried dropping them all. This made no difference and when trying to install basket after dropping the tables they were all recreated - so at least I knew that that part of the install works! then noticed that there was no reference to 'basket' in the modules table - I knew that it came up in the module interface because of its presence in the directory structure but had no idea what should cause it to be added to the modules table? Still - decided 'nothing ventured, nothing gained', inserted a row for 'basket' (with all the correct info - that was funny because I had one 'missing' id and weight [so one 'missing' row]), selected 'Shopping Basket' in the module interface, clicked 'update' - and it successfully installed???
One question if anyone is reading this - if 'basket-rwedit.zip' has bug fixes - why is it still Version 5?