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 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 |

Posts: 3
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.
Posts: 32324
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.
Posts: 3
Can I run a SQL query or two and provide you with the results in an effort to better diagnose the problem?