G2 and WPG2 completely stopped working. (Servage.net upgrade)
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
My Gallery2 and WPG2 have been working smoothly for a year and half on my website hosted with Servage.net ... ...all until tonight. Servage.net performed a server upgrade and for a while, I couldn't access the database associated to my Gallery. Once it came back, I had to disable the function printing out the latest albums on the WP-powered site frontend, as otherwise the site wasn't loading anything at all. Then I logged in and tried to validate G2 input through WPG2. However, wp-admin/admin.php?page=wpg2/wpg2functions.inc isn't loading at all. If I try to access G2 without using WPG2, IE gives me an error 500 and Firefox gives me this: Error * in main.php at line 346 (GalleryCoreApi::error) I tried to go to gallery/lib/support/index.php and delete all the caches apart from the last one, but the results page won't load. Was this relevant to my problem, in any way? What should I do to get my WPG2 work again? I miss it. If this matters, my PHP version is 5.2.X-servage6. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Error * in main.php at line 346 (GalleryCoreApi::error) Debug Output file_exists(/home34b/sub001/sc27969-FHUU/www/gallery/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) (mysql): SET NAMES "utf8" file_exists(/home34b/sub001/sc27969-FHUU/www/gallery/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) (mysql): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=5 AND realpath(/mounted-storage/home34b/sub001/sc27969-FHUU/www/gallery/modules/core/classes/../../../) |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
No, it does not work. If I put it in debug mode, it displays all of the above, if I put it in normal mode, IE gives me an error 500 and Firefox gives me the error bolded in the first post of this thread. Yes, I did, nothing changed. I just tried to export/backup the database and it stopped at certain point, so I think it might be an error at their end after all. However, they won't admit it, they keep on telling me to move the database to a different cluster or to view the gallery from a different browser...which is really lame, as it doesn't work for anyone, not just the admin (me). |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
And now I got something new in WPG2: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /mounted-storage/home34b/sub001/sc27969-FHUU/www/gallery/modules/core/classes/GalleryPlatform.class on line 1122 |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
If I increase php memory limit, I get this: Error * in modules/core/classes/GalleryTemplate.class at line 251 (GalleryCoreApi::error) ...and the most of other plugins stop functioning and return errors related to G2's sidebar grid module. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted? |
|
pcvroon
Joined: 2008-09-25
Posts: 3 |
![]() |
Do you have a resent backup of the database? Something is wrong, but it not the server. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Re: PHP Memory Limit. Re: Backup. And...it works? How come? O_O I can't see it from the embeeded interface on the site and I get the infamous error (this time with CSS) when I try to see the standalone gallery. Servage have not done anything yet. Instead, ALL the files on my server suddenly appeared to be CHMODed to 777 and I don't know how to mass CHMOD them back. Is there a way to do it? I FTP with Total Commander, if there's a program that could mass CHMOD, it would be good. This is like hell. And all they did was upgrading the database. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Security Violation Back to the Gallery Error Detail - ...I just tried to open it. How come it's not permitted? |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Also, this opens in a separate window: Smarty Debug Console assigned template variables assigned config file variables (outer template scope) |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
These are the four "stuck" tables. johnf_gallery.g2_ImageBlockCacheMap optimize status Table is already up to date |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
This is what I get if I increase the memory limit: Notice: Undefined index: wpg2_sidebargridblocksimageframe in /mounted-storage/home34b/sub001/sc27969-FHUU/www/wp-content/plugins/wpg2/wpg2functions.inc on line 556 Notice: Undefined variable: cssappendoutput in /mounted-storage/home34b/sub001/sc27969-FHUU/www/wp-content/plugins/wpg2/wpg2functions.inc on line 559 |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
(deleted) |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
If all your files have "suddenly appeared to be CHMODed to 777" and gallery is in debug mode without you editing config.php. I'd start changing my passwords and talking to my host. If you are not making those changes someone is. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
So, it all comes down to this: However, there still are issues, mostly related to error-reporting (even though everything works): 1) Unless I manually increase php memory limit, I can't get G2 to work at all. This was not an issue before the server upgrade. 2) When I enable WPG2 without the Imageblock G2 module, I cannot render the embeeded gallery page through WordPress, as I obviously cannot validate the plugin. 3) However, when Imageblock is active, I get errors all around the site (look at http://www.invisible-movement.net to see what I'm talking about) even though all the things supposedly influenced by those errors are working normally. 4) I constantly get Smarty popups. The only editable thing in all this was the sidebar grid block module which I have in my site's footer.php file. I noticed that it claimed that recentAlbum was undefined and that it was assuming it's 'recentAlbum', with quotes, so I tried to work around that. It looked like this: <?php print g2_sidebargridblock(recentAlbum, 4, 80); ?> I changed it to this: <?php print g2_sidebargridblock('recentAlbum', 4, 80); ?> And now it reports one error less. Does this mean that I would have to manually go through all scripts on my site and add quotes? That makes no sense. I assume there still is something going on on my host's behalf; but I know what actually to tell them. To disable error reporting except for fatal errors (I tried to do so myself and it did not function)? Something else? Thanks for listening to my issues and helping me out, by the way. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
nivekiam wrote:
If all your files have "suddenly appeared to be CHMODed to 777" and gallery is in debug mode without you editing config.php. I'd start changing my passwords and talking to my host. If you are not making those changes someone is. It turned out they were doing it as they also installed another gallery themselves in a totally random directory of a subdomain. And yes, it was quite a hassle to get it all back to normal. I got the gallery into debug mode, but I don't remember that I changed any settings for smarty, which is constantly opening popups. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Quote:
but it seems that my file permissions were messed up on server upgrade This happens at hosts who don't either plan or know what they are doing Quote:
1) Unless I manually increase php memory limit, I can't get G2 to work at all. This was not an issue before the server upgrade. Another undocumented change that your host probably didn't related to their customers. Heck they probably didn't even realize they made the change. Don't know about the WP integration errors as I've never done it, however I think it's related to your Smarty popup issue. Open up config.php in your gallery directory, and take it out of debug mode. This explains how to put Gallery into debug mode, do the opposite to take it out: Oh, I see it doesn't say what it was, change that line to Once you get it taken out of debug mode, then let's see if you are still getting errors. I would take a look at your site, but it's just plain not coming up for me. Server down? Slow server? Slow connection? I don't know. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
The site opens in Firefox but not in IE at the moment. I assume the server is currently running slow. Normally, it has about 2000 uniques and 12000-ish page views per day, so this is probably (surprisingly, yet another) server issue. I just double-checked if I did what you said and yes, that's what I did. Even with debug mode set to false, the smarty pop up keeps on showing up and I'm getting this on all gallery frontend pages apart from the single image page: Notice: Undefined index: child in /mounted-storage/home34b/sub001/sc27969-FHUU/www/gallery/g2data/smarty/templates_c/%%3591683896/%%E7^E75^E7536FAA%%album.tpl.php on line 32 Notice: Undefined index: child in /mounted-storage/home34b/sub001/sc27969-FHUU/www/gallery/g2data/smarty/templates_c/%%3591683896/%%E7^E75^E7536FAA%%album.tpl.php on line 32 And I'm getting a bunch of such errors on the site frontend as well, but some of them aren't related to G2. However, when G2/WordPress integration is disabled, there aren't any errors. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
I still have this weird feeling that the system wants all PHP variables to start and end with a ', which is fairly odd. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Did the first two already, twice...doing the third one for both Firefox and IE. EDIT: No change. No change when I remove smarty files manually either (I cleaned contents of the g2data/smarty/templates_c/ subfolder manually). - The smarty popup is still there and debugging even though everything actually works. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
What would be the correct permission for smarty's cache files? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
That all depends on how your server is configured. If PHP is running as the webserver, then most likely 644 for files and 755 for directories, but that all depends on who owns the files and who the server and/or PHP runs as. For example, on my server PHP runs as myself so my files are set to 600 and directories set to 700. If you're not sure then set them to 777 and you or the webserver (along with anyone else on the server, again depending on how the server is setup) can delete them. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Quote:
I still have this weird feeling that the system wants all PHP variables to start and end with a ', which is fairly odd. If you're setting it to 'false' instead of false, it's not going to work. It must be false |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
I set it to false. And it still acts weird. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Can you post a link to phpinfo under your actual Gallery directory? This link explains how: |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
http://www.invisible-movement.net/gallery/info.php As you can see, the errors are ON. They have just told me this: Quote:
So, I do hope that the admin will just fix that little thing. And if Smarty debug console is not gone after that, I guess I'll eat this keyboard. |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
They have managed to fix it. Finally! |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Well, two things: messed-up permissions after server upgrade (which caused ERROR_PERMISSION_DENIED) and badly set stuff in php.ini. And there are still some errors as all the email I receive through forms has ">" in the form field instead of a name, but that's a different story and unrelated to this. Either way, this has been a complicated week. But once again, thank you so much for having patience with me. |
|