[SOLVED] Error installing Gallery Core

ryujin

Joined: 2005-04-15
Posts: 1
Posted: Fri, 2005-04-15 01:18

I get this error when I try to install Gallery 2 (Beta 2)...

      file_exists(/usr/home/ryujin/g2data//cache/entity)
file_exists(/usr/home/ryujin/g2data//cache/layout)
file_exists(/usr/home/ryujin/g2data//cache/module)
file_exists(/usr/home/ryujin/g2data//cache/derivative)

(mysql): SHOW TABLES   


file_exists(/usr/home/ryujin/htdocs/gallery/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/usr/home/ryujin/htdocs/gallery/modules/core/classes/../../..)
Binding text domain: modules_core ->
/usr/home/ryujin/htdocs/gallery/modules/core/locale
file_exists(/usr/home/ryujin/g2data//versions.dat)
file(/usr/home/ryujin/g2data//versions.dat, )
      

Could somebody explain to me how I fix this problem, please?

Thanks, - ryujin

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-15 09:08

did you activate immediate debug in config.php? do you get then more debug information?
and could you fill out the support template (give us more information)?
in what installation step did it happen? install core module?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-04-15 11:35

I have a similar problem - here are some details which may help. I was tempted to start a new thread as there are some other problems listed, but the main one is the same so I left it here.

I now have 2 servers. I did an upgrade to alpha2 (CVS) on my MacOSX server from a alpha1 CVS version and did not get the error listed in this thread (details below). I did a new install on Linux using alpha2 CVS from last night AND using my MacOSX albums directory and did get the error.

1) MacOSX Server (upgrade)

Gallery URL (optional): Private server
Gallery version: G2 Beta2 (CVS from last night - about 15 files different)
Webserver (with version): Apache/1.3.33 (Darwin)
Datatabase (with version): MySQL 4.0.20
PHP version (eg 4.2.1): 4.3.10
Operating system: MacOSX

2) Linux Server (New install with "albums" copied from MacOSX server)
Gallery URL (optional): Private server
Gallery version: G2 Beta2 (CVS from last night - about 15 files different)
Webserver (with version): Apache-AdvancedExtranetServer/2.0.50 (Mandrakelinux/7.2.101mdk)
Datatabase (with version): MySQL 4.0.20
PHP version (eg 4.2.1): 4.3.8
Operating system: Mandrake 10.1

On MacOSX I was upgrading from an alpha1 CVS from about 10days ago. I did a CVS update. When I viewed the gallery page there was no update screen (just the main screen) as the core was thought to be up to date. I forced it to go to the update screen to see if there would be any problems but it ran through fine. Some concerns though:
- I could not log in (using either Firefox or Safari) as admin - it would go through without error but it woud remain at guest. I had to clear the cache to allow login. Then it worked as one admin ("Admin") but not another with admin priivileges. Now all work OK - I did not unfortunately copy the G2 error and now it cannot be replicated. Sorry.
- No database table is generated for g2_MaintenanceMap and no maintenance link comes up. Is this a module?

On Linux it was a new install using alpha2 CVS version from last night. I was also using the albums directory from my MacOSX install. Reading other threads this should be OK so long as I changed the file owner. I did chown -R apache:apache on the albums dir and got errors (see attachment) in Install Step 7.

I then did a chmod -R 755 on "versions.dat" which reduced the errors but I still got:

   file_exists(/var/www/html/albums//cache/entity)
file_exists(/var/www/html/albums//cache/layout)
file_exists(/var/www/html/albums//cache/module)
file_exists(/var/www/html/albums//cache/derivative)


(mysql): SHOW TABLES   



file_exists(/var/www/html/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/var/www/html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/var/www/html/gallery2/modules/core/locale
file_exists(/var/www/html/albums//versions.dat)
file(/var/www/html/albums//versions.dat, )

I tried setting debug mode (buffered or immediate) but no exra info was generated. Same error if I chmod -R 777 the albums dir - versions.dat seems the key one.

I also tried a cheat, by doing a completely new G2 install with a new database and then removing the database and putting in my old one from MacOSX (not that I expected it to work :wink: ). It came up OK but I noticed that there is one more table g2_MaintenanceMap which was not in alpha1. I copied it from the new install database and the Maintenance option came up. I cleared the first cache line - all OK. I then cleared the 2nd (there are 4 actions that can be taken and it was the 3rd one down) and then when I looked at the maintenance screen no actions came up (sorry I no longer have this install so can't give you a debug trace).

Thanks for all your help.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-15 11:45

kiz_0987, lets first clear some lingo problems.
- i guess by "alpha1" and "alpha2" you actually mean "beta" 1 and 2, right? 'cause, upgrading is only supported for alpha 4 or newer.
- g2 has a g2data directory and in this directory, there is a "albums" directory. when you say you have copied the albums directory, did you just copy this subdirectory, or the whole g2data directory? and why do think it's ok to just copy the albums directory?

@problem nr 1: strange. but if you can't reproduce it, we can't do anything about it.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-04-15 12:41

Valiant

Yes - alpha1/2 = beta1/2. Sorry, I guess I really needed that morning coffee!

The "albums" directory I was refering to is the main "g2data" directory, not its subdir "albums". My understanding is that to move the g2data from one server to another (MacOSX to Linux) I just need to copy the entire g2data dir ("albums" in my case), fix the ownership, and copy the database. I got this info from:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27960#128027
Is this not the correct way to do this?

I'll keep checking on future upgrades regarding the inability to login.

Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-15 12:50

well, i wrote the instructions, so it must be correct. j7k :)

yes, just follow the instructions in my other post for migrating a G2 from one server to another. i just added another step (new step 1), deactivate the url rewrite module before you copy the g2data/db to the new server.
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=128027#128027

@login problems:
maybe try the following:
- empty the browser cookie cache for this domain
- empty g2data/sessions/

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2005-04-16 22:57

I got the installation to work finally without any errors:

file_exists(/var/www/html/albums//cache/entity) 
file_exists(/var/www/html/albums//cache/layout) 
file_exists(/var/www/html/albums//cache/module) 
file_exists(/var/www/html/albums//cache/derivative) 

i closed my browser and reopened to the gallery. It then went into Upgrade mode instead of install mode and quite happily upgraded my core (which was what it would not do in step 7 of the install). Now all is OK. Not sure why upgrade worked but install did not.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-04-16 23:10

if you followed the instructions, then you had to upgrade G2 on the old server before copying the data to new server. if that was the case, then the installer should have nothing to do on the new server.
however, i mark the topic as solved. thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-04-16 23:12

ps:
ryujin, if you can't fix your problem, feel free to reopen this topic (i.e. edit the first post and remove the [SOLVED] from the title).