Installation issues

mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Wed, 2011-09-21 20:34

I am not able to install gallery properly

Tried to install gallery 3.0.2 on my vps

got this error msg:

Quote:
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[ 41 ] » 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 )

SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance( arguments )

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

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

need help, my current configs

Operating system: Linux 2.6.18-238.12.1.el5.028stab091.1
Apache: Apache/2.2.17 (EL)
PHP: 5.2.17
MySQL: 5.0.92
Graphics toolkit: gd

Thank you

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-09-22 04:11

you go that message during the the install?
Looks to me like some files got corrupt of not all there. or perhaps some functions are disabled in our PHP configuration.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Thu, 2011-09-22 12:17

thanks for the reply Dave.

Yes, after entering the sql details, the next window showed the above error.

If some functions are disabled how can I know that ? I have an un-managed vps using kloxo

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2011-09-22 14:03

First, I'd try uploading the files again to make sure nothing is corrupt. Heck, don't even use FTP, just SSH into your box and wget the files directly, then unpack them and try again.

On a default install, there is only 1 theme that ships with G3 (well 2 technically) Wind (and admin_wind)
____________________________________________
Like Gallery? Like the support? Donate now!

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Fri, 2011-09-23 11:36

Thanks Nive, I used ssh this time around.

I again did that and again I had the same prob.
Actually I got the gallery admin login, after that the next page when I try to view gallery/ it gives the above error. It happened the same way earlier occasion too :(

what can I do ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2011-09-24 03:20

Either post a link to phpinfo or verify that you have everything installed listed here:
http://codex.gallery2.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading#Before_you_start_.2F_System_requirements
____________________________________________
Like Gallery? Like the support? Donate now!

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Sat, 2011-09-24 16:35

Thanks for the reply again Nive, I don't know how to post a link to phpinfo :o
I had cross checked the server requirements with my host ,

they gave me the following answer:
******************
I can ensure that all the server setups are meeting the gallery2 requirements. Unfortunately we do not support for any such third party script installations even scripts other than some usual wordpress which we can get assistance from their community.

We are recommending you to remove the old installation and install it anew.
********************

I actually re-installed twice and nothing seems to progress at the moment :(
do u want to look into my server nive ? I can pm u my server logins.

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Sat, 2011-09-24 18:05

I just took a look into the logs folder in var and here was the content:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2011-09-24 23:21:06 +05:30 --- error: InvalidArgumentException [ 0 ]: Passed variable is not an array or object, using empty array instead
/home/admin/site/gallery/modules/gallery/helpers/theme.php [ 106 ]
#0 /home/admin/site/gallery/modules/gallery/helpers/theme.php(106): ArrayObject->__construct(NULL, 2)
#1 /home/admin/site/gallery/modules/gallery/libraries/Theme_View.php(41): theme_Core::get_info('wind')
#2 /home/admin/site/gallery/modules/gallery/controllers/albums.php(63): Theme_View_Core->__construct('page.html', 'collection', 'album')
#3 /home/admin/site/gallery/modules/gallery/controllers/albums.php(22): Albums_Controller->show(Object(Item_Model))
#4 [internal function]: Albums_Controller->index()
#5 /home/admin/site/gallery/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#6 /home/admin/site/gallery/system/core/Event.php(208): Kohana_Core::instance(NULL)
#7 /home/admin/site/gallery/application/Bootstrap.php(67): Event_Core::run(Array, Array)
#8 /home/admin/site/gallery/index.php(102): require('/home/admin/site...')
#9 {main}
2011-09-24 23:33:24 +05:30 --- error: InvalidArgumentException [ 0 ]: Passed variable is not an array or object, using empty array instead
/home/admin/site/gallery/modules/gallery/helpers/theme.php [ 106 ]
#0 /home/admin/site/gallery/modules/gallery/helpers/theme.php(106): ArrayObject->__construct(NULL, 2)
#1 /home/admin/site/gallery/modules/gallery/libraries/Theme_View.php(41): theme_Core::get_info('wind')
#2 /home/admin/site/gallery/modules/gallery/controllers/albums.php(63): Theme_View_Core->__construct('page.html', 'collection', 'album')
#3 /home/admin/site/gallery/modules/gallery/controllers/albums.php(22): Albums_Controller->show(Object(Item_Model))
#4 [internal function]: Albums_Controller->index()
#5 /home/admin/site/gallery/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#6 /home/admin/site/gallery/system/core/Event.php(208): Kohana_Core::instance(NULL)
#7 /home/admin/site/gallery/application/Bootstrap.php(67): Event_Core::run(Array, Array)
#8 /home/admin/site/gallery/index.php(102): require('/home/admin/site...')
#9 {main}

[/quuote]

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2011-09-24 19:49

Here are instructions for creating a phpinfo page:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Sun, 2011-09-25 15:55

Nive, I was able to sort out the issue. Now the gallery works fine.
The owner/group permission of files was causing the issue, its a little problem with kloxo, had to chown to make it work.

Thanks Nive & Dave for your time in helping me out :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-09-25 16:54
Quote:
its a little problem with kloxo

Care to create some docs/instructions/tutorial so others can benefit?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Sun, 2011-09-25 17:03

Dave, I am not sure how to do that exactly as my host helped me out even though they are un-managed provider, as courtesy of me being a good client for over half-an-year :)
And this doesn't happen to all kloxo users, for some it does happen like mine and for some it doesn't.

All I know is my host followed a procedure similar to this : http://forum.lxcenter.org/index.php?t=msg&goto=86892&&srch=chown+-R#msg_86892