I can't install G2

top2sky

Joined: 2005-04-19
Posts: 4
Posted: Tue, 2005-04-19 11:42

When I go to the step 6:

Warning: fgets(): supplied argument is not a valid stream resource in /wwwroot/site/sunson/gallery2/install/steps/CreateConfigFileStep.class on line 93

Warning: fclose(): supplied argument is not a valid stream resource in /wwwroot/site/sunson/gallery2/install/steps/CreateConfigFileStep.class on line 119

It would be thanks if someone can help me.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-04-19 12:17

please fill out the support template.
(g2 version, ...)
and do you get any warnings in the systemcheck step of the installer?

 
top2sky

Joined: 2005-04-19
Posts: 4
Posted: Tue, 2005-04-19 12:34

I use G2 beta
and I get this warning:

exec() allowed Warning

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-04-19 14:12

so exec() calls are disallowed on the system? that's a problem for G2, but i guess the core functionality should work without the exec call, i.e. i fail to understand why it should fail while creating the config.php file in the installer.

mindless, bharat, any ideas?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-19 15:30

top2sky, edit your CreateConfigFileStep.class at line 93 and remove the @ character from before the fopen call, then retry the install.. post any error message you see at this step. gallery2/install/config.php-template exists and is readable by your webserver/php user, right?

 
top2sky

Joined: 2005-04-19
Posts: 4
Posted: Tue, 2005-04-26 12:28

Core module is only partially installed.

Error installing Gallery Core
Something went wrong when we tried to install the core module. In the boxes below you can find some debug information. Report this in the Gallery Forums and we'll help you diagnose the problem.

Stack Trace:

Debug Output:
file_exists(/wwwroot/site/sunson/gallery2/g2//cache/entity)
file_exists(/wwwroot/site/sunson/gallery2/g2//cache/layout)
file_exists(/wwwroot/site/sunson/gallery2/g2//cache/module)
file_exists(/wwwroot/site/sunson/gallery2/g2//cache/derivative)
--------------------------------------------------------------------------------
(mysql): SHOW TABLES
--------------------------------------------------------------------------------

file_exists(/wwwroot/site/sunson/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/wwwroot/site/sunson/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/wwwroot/site/sunson/gallery2/modules/core/locale
file_exists(/wwwroot/site/sunson/gallery2/g2//versions.dat)

This is when I go to 7 step,This time the file config.php is created successfully

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-26 15:11

try again with an empty db and empty g2data dir.

 
top2sky

Joined: 2005-04-19
Posts: 4
Posted: Sun, 2005-05-01 03:27

ok,but I can't delete g2data dir.
I exchange another dir,but I have no empty db,so it's not effect.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-05-01 03:40

see G2 FAQ for how to delete g2data.
clear out your db to make it empty.
then try again with empty db and empty g2data dir.