Gallery2 Whitepage since server change

regn

Joined: 2010-08-29
Posts: 3
Posted: Sun, 2010-08-29 10:57


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
Webserver (e.g. Apache 1.3.33): Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
Operating system (e.g. Linux): Debian
safemode is off
apache modules: core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_include mod_mime mod_negotiation mod_php5 mod_python mod_rewrite mod_setenvif mod_ssl mod_status mod_suexec

I already checked the FAQ under whitepage. Enabling errors in php still displays no error messages.
I get this error when trying to clear the cache (through lib/support/index.php):
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/web71/html/joomla/gallery2/config.php on line 58

The Mysql username changed, but I modified the config.php.

---

I havent tried http://codex.gallery2.org/Gallery2:FAQ#How_can_I_move_my_gallery_installation_from_one_server_to_another.3F yet.
"Deactivate AND uninstall the url rewrite module if it is active because it will generate incorrect urls after your move."
- How can i do that without the Webinterface?

Thanks for your help :)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-08-29 11:20
Quote:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/web71/html/joomla/gallery2/config.php on line 58

fix config.php line 58 as indicated by the error

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
regn

Joined: 2010-08-29
Posts: 3
Posted: Sun, 2010-08-29 11:44

Oh wow, somehow i have overlooked that :<
Thanks

The /lib/support/ Page works fine now, when clearing the cache i get:

Error deleting page cache!
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/cache/entity
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/cache/entity
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/cache/module
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/cache/module
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/cache/theme
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/cache/theme
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/smarty/templates_c
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/smarty/templates_c
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/tmp
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/tmp
Deleting dir: /var/www/web71/html/joomla/gallery2/g2data/cache/repository
Recreating dir: /var/www/web71/html/joomla/gallery2/g2data/cache/repository

I gave 777 rights recursively to the g2data folder. The other lines seem to imply that it worked?

And the normal index.php shows:

<h2>Error</h2>

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-08-29 13:10

go ahead and manually delete the listed directories, gallery will recreate them

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
regn

Joined: 2010-08-29
Posts: 3
Posted: Tue, 2010-08-31 11:02

Only that one line was red.
I deleted the folders manually, still the same.

When i click on database import i get this:

Errors Occurred

Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage.class at line 494 (GalleryCoreApi::error)
* in modules/core/classes/Gallery.class at line 202 (GalleryStorage::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 317 (Gallery::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 222 (GalleryPluginHelper_simple::_fetchAllParameters)
* in modules/core/classes/GalleryCoreApi.class at line 302 (GalleryPluginHelper_simple::getParameter)
* in modules/core/classes/GalleryUrlGenerator.class at line 383 (GalleryCoreApi::getPluginParameter)
* in init.inc at line 112 (GalleryUrlGenerator::init)
* in modules/core/classes/GalleryEmbed.class at line 99
* in lib/support/import.php at line 48 (GalleryEmbed::init)
* in lib/support/index.php at line 18

After a quick google search i checked my database and the gallery tables seem to be empty :/
I'll look if I can find a backup. :O

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-31 11:57

Before you move from server to server, you need to do a fresh export of gallery's tables in your DB.
did you import the tables through phpMyAdmin or similar?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-08-31 13:33

Do it :) Those steps are known to work, follow them carefully.

Quote:
"Deactivate AND uninstall the url rewrite module if it is active because it will generate incorrect urls after your move."
- How can i do that without the Webinterface?

FAQ: I enabled mod_rewrite, but it's not working, and now I can't get back to disable it - how else can I do this?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here