Can't get past upgrade/index.php page after migration from server (authentication half-working?)

fdelente

Joined: 2010-05-01
Posts: 13
Posted: Sun, 2014-05-25 09:43

Hello.

I had hosted my old Gallery 2 site on my ISP's server, but it's now broken and I can't access it. I can't access any page, not even the admin page.

I copied by FTP all files from the ISP's machine to mine, and did an SQL dump. I then injected the SQL code on my machine.

Now, when I connect to Gallery, I get the upgrade wizard, with lines like

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class on line 275

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/htdocs/lib/adodb/adodb.inc.php on line 921

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/htdocs/lib/adodb/adodb.inc.php on line 1996

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/htdocs/lib/adodb/adodb.inc.php on line 2068

at the top at the page.

Authentication works, I get to "Authentication successful", but at the top of the page, I have tons of lines like

Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class on line 1061

Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class on line 1077

Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class on line 1077

and after theses lines, I have

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class:1061) in /opt/lampp/htdocs/lib/support/GallerySetupUtilities.class on line 75

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /opt/lampp/htdocs/modules/core/classes/GalleryStorage.class:1061) in /opt/lampp/htdocs/lib/support/GallerySetupUtilities.class on line 75

When I click on the button to go to step 2, I get back to the first step, where I choose the language, and then to authentication again.

How can I get past this?

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2014-05-25 11:48
 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2014-05-25 12:58

Set your php.ini error_reporting to:

E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

Restart PHP.

Alternatively, add the following to config.php in G2:

@ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT');
@ini_set('display_errors', 0);

The first option is better as it fixes the trivial warnings for every PHP app on your server while the second only deals with G2.

Once those trivial warnings are gone, you can see what real issues are left.

Btw, your main issue is that you are using an outdated version of G2 and you need to update to v2.3.2 asap.
--
dakanji.com