Error after installation: unserialize() [function.unserialize]

drhender

Joined: 2006-07-09
Posts: 3
Posted: Sun, 2006-07-09 18:53

Gallery version: 2.1.1
PHP version: 5.1.1
PHPInfo: www.hendersite.com/phpinfo.php
Webserver: IIS
Database: MySql 4.1.7
Operating system: Windows XP
Gallery2 address: www.hendersite.com/gallery

After uploading Gallery2 to my webserver and running what appears to have been a successful installation, I am seeing errors when I open Gallery2...

Notice: unserialize() [function.unserialize]: Error at offset 9 of 78 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GallerySession.class on line 932

Notice: unserialize() [function.unserialize]: Error at offset 5 of 311 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GallerySession.class on line 935

Notice: unserialize() [function.unserialize]: Error at offset 5 of 97 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryDataCache.class on line 800

Notice: unserialize() [function.unserialize]: Error at offset 18 of 263 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 744

Warning: Invalid argument supplied for foreach() in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 747

Notice: unserialize() [function.unserialize]: Error at offset 18 of 60 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 744

Warning: Invalid argument supplied for foreach() in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 747

Notice: unserialize() [function.unserialize]: Error at offset 18 of 107 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 744

Warning: Invalid argument supplied for foreach() in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryTheme.class on line 747

Notice: unserialize() [function.unserialize]: Error at offset 5 of 97 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryDataCache.class on line 800

Notice: unserialize() [function.unserialize]: Error at offset 5 of 97 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryDataCache.class on line 800

Notice: unserialize() [function.unserialize]: Error at offset 5 of 97 bytes in C:\Sites\Single25\drhender\webroot\gallery\modules\core\classes\GalleryDataCache.class on line 800

Anyone have any suggestions?

Login or register to post comments
drhender

Joined: 2006-07-09
Posts: 3
Posted: Fri, 2006-09-08 17:54

Still stumped on this one. I've tried wiping out the entire install and starting from scratch, but the errors are the same.

Can anyone give me any advise on this? I am about ready to give up and install a different gallery.

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32324
Posted: Fri, 2006-09-08 20:11

g2 uses php's serialize() and unserialize() methods to put the session data and cached page data into the database and to retrieve it from there.

it looks like the data retrieved from the database is not the same as the data that was put into the database. thus, unserialize() fails because the serialized data has been corrupted.
as to why this doesn't work in your case, i have no idea.

mysql does silent truncation. so if the data inserted into the database is too long, we could have this problem. but given that we don't see the same problem on other setups, i don't know why you should have this problem.

Login or register to post comments
drhender

Joined: 2006-07-09
Posts: 3
Posted: Wed, 2006-09-13 12:43

Can I run a SQL query or two and provide you with the results in an effort to better diagnose the problem?

Login or register to post comments