[SOLVED] Errors with new installation of 3.0.9

tounces_tx

Joined: 2012-03-16
Posts: 5
Posted: Sat, 2013-08-10 03:18

Hi all,

Tyring to install fresh 3.0.9 (using /installer) and the first screen reports that setup was a success, but then when I go to the next step - start using gallery - I get the follow php error..

Quote:
Hey wait, you're an admin! We can tell you stuff.

There's an error message below and you can find more details in gallery3/var/logs (look for the file with the most recent date on it). Stuck? Stop by the Gallery 3 Forums and ask for help. You can also look at our list of open tickets to see if the problem you're seeing has been reported. If you post a request, here's some useful information to include:

Platform information

Operating system: Linux 2.6.32-358.6.2.el6.x86_64
Apache: Apache/2.2.15 (CentOS)
PHP: 5.3.27
MySQL: 5.1.69
Server load: 0.12 0.13 0.09
Graphics toolkit: gd
Gallery stats

Version: 3.0.9 (Chartres)
Albums: 0
Photos: 0
InvalidArgumentException [ 0 ]:
Passed variable is not an array or object, using empty array instead
MODPATH/gallery/helpers/theme.php[ 106 ]

101 }
102
103 static function get_info($theme_name) {
104 $theme_name = preg_replace("/[^a-zA-Z0-9\._-]/", "", $theme_name);
105 $file = THEMEPATH . "$theme_name/theme.info";
106 $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
107 $theme_info->description = t($theme_info->description);
108 $theme_info->name = t($theme_info->name);
109
110 return $theme_info;
111 }
MODPATH/gallery/helpers/theme.php[ 106 ] » ArrayObject->__construct( arguments )

MODPATH/gallery/libraries/Theme_View.php[ 46 ] » theme_Core::get_info( arguments )

MODPATH/gallery/controllers/albums.php[ 63 ] » Theme_View_Core->__construct( arguments )

MODPATH/gallery/controllers/albums.php[ 22 ] » Albums_Controller->show( arguments )

{PHP internal call} » Albums_Controller->index()

SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( arguments )

{PHP internal call} » Kohana_Core::instance( arguments )

SYSPATH/core/Event.php[ 208 ] » call_user_func_array( arguments )

APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments )

DOCROOT/index.php[ 116 ] » require( arguments )

and here's the log file...

Quote:
2013-08-10 03:02:38 +00:00 --- error: InvalidArgumentException [ 0 ]: Passed variable is not an array or object, using empty array instead
/var/www/vhosts/dryline.org/html/gallery-new/gallery3/modules/gallery/helpers/theme.php [ 106 ]
#0 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/modules/gallery/helpers/theme.php(106): ArrayObject->__construct(NULL, 2)
#1 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/modules/gallery/libraries/Theme_View.php(46): theme_Core::get_info('wind')
#2 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/modules/gallery/controllers/albums.php(63): Theme_View_Core->__construct('page.html', 'collection', 'album')
#3 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/modules/gallery/controllers/albums.php(22): Albums_Controller->show(Object(Item_Model))
#4 [internal function]: Albums_Controller->index()
#5 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#6 [internal function]: Kohana_Core::instance(NULL)
#7 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#8 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#9 /var/www/vhosts/dryline.org/html/gallery-new/gallery3/index.php(116): require('/var/www/vhosts...')
#10 {main}

Any ideas? I searched and found a couple references to the InvalidArgumentException error - but they don't seem to apply to this instance.

thanks,
Mark

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-08-10 17:25

Looks to me like some files got corrupt or not all there. I'd start over fresh.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tounces_tx

Joined: 2012-03-16
Posts: 5
Posted: Tue, 2013-08-13 17:11

looks like it was a php config thing. Solved!

 
sswitzer

Joined: 2014-07-14
Posts: 3
Posted: Wed, 2014-07-16 23:26

Do you remember what php config thing needed to be changed/fixed?

UPDATE: My hosting company has disabled parse_ini_file. I'm working on how to re-enable it. http://galleryproject.org/node/113179