Upgrade failed, plugin validation failed, "Cannot load wpg22Fg2admin.php"
batman129
Joined: 2006-08-25
Posts: 31 |
Posted: Mon, 2007-09-17 17:51 |
I can't access this information (as far as I know), since my install is not working. The above is from my last post, which should be current or at least similar (I switched hosts several weeks ago) I had gallery 2.1 and wanted to upgrade to the newest version. I downloaded 2.3 and uploaded it to my server, but since then I cannot get it to work. My plugin validation fails, citing this error: Quote:
Cannot load wpg22Fg2admin.php. Also, when I try to access my gallery page (www.danielpotratz.com/gallery2/wp-gallery2.php) I get this error: Quote:
Warning: main(./wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/aaronp23/public_html/gallery2/wp-gallery2.php on line 31 I'm so lost when it comes to gallery2... Please help - I'll do my best to answer any questions you ask to guide me to the solution. Thank you in advance! |
|
Posts: 1378
Please grab the latest copy of WPG2 2.13 -> http://wordpress.org/extend/plugins/wpg2/ and install that..
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
Installed, but couldn't validate:
Gallery2 API located in G2 Path? Success
Gallery2 init? Success
Gallery2 Version Compatible? Success
Wordpress Version Compatible? Success
Gallery2 Module: ImageBlock Active? Failed
Gallery2 Module: ImageFrame Active? Skipped Due to Previous Error
Gallery2 Module: Rewrite Active? Skipped Due to Previous Error
Gallery2 URL Rewrite Rules Updated? Skipped Due to Previous Error
Using Simple Header? Success
Using Simple Footer? Success
Posts: 1378
Please see the README, Extend Documentation or http://wpg2.galleryembedded.com/index.php?title=WPG2:Plug-in_Requirements_V2.x
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
I uploaded the imageblock files to my server (overwriting the current files) but I still can't access my gallery. It loads as a blank page. Thus, I can't access any Site Admin pages to configure...
Posts: 1378
http://wpg2.galleryembedded.com/index.php?title=Plug-in_FAQ#Q:How_come_the_embedded_page_just_returns_blank.3F
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
Thanks for the help, but it's just not working. I added php_value memory_limit 16M to the first line of my .htaccess file but it just gives me a 500 Internal Server Error each time I do that.
Posts: 1378
Sorry but you will need to take this up with your Hosting Provider. Gallery2 + Wordpress + WPG2 require 16MB to run, without that, you tend to get the blank page issue..
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
Thanks for your help ozgreg. Does this mean that is *IS* a hosting issue for sure? I just switched to HostGator from DreamHost... I thought it was an upgrade...
Posts: 31
Also, before I tried upgrading my version of Gallery 2 worked okay (with the same host as I still have now) - I just had a small db problem with uploading photos, but I could generally access everything and it was displaying random images in the sidebar and everything. Would that indicate that maybe it's NOT a hosting issue?
Posts: 1378
You will need to check how much php memory you have access to (phpinfo will display this), the fact you get a blank page usually indicates you have a lack of php memory, the fact you can see sidebar images etc indicates WPG2 is working correctly, you just do not have enough memory to display the Gallery2 output within Wordpress..
It is not uncommon for Webhosts to restrict php memory to very low limits like 8mb which is just not enough memory. Sometimes lack of memory errors are also reported in the error_log which you should be able to display from your hosting control panel.
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
Here's what my phpinfo says in regards to memory:
memory_limit 40M 40M
I checked my error log in cpanel, but there were no errors logged.
Posts: 29
I run G2 and Wordpress and I'm allocating about 256MB to PHP5 right now.
If you've got a lot of photos and a busy site then you'll need RAM.
Posts: 1378
Grab a copy of WPG2 3.0 it is just about ready for Gold Release..
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 31
I just don't get it. I installed WPG2 3.0, checked my php memory limit (it is 40mb), but I still cannot validate. I still get an error:
Gallery2 Module: ImageBlock Active? Failed
Gallery2 Module: ImageFrame Active? Skipped Due to Validation Error
Posts: 492
Batman, do you have the G2 ImageBlock module installed and activated? See the requirements for links.
From Gallery2:Installing Additional Components
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
I thought I did, but I'm questioning everything now. I downloaded it, now where do I install it? The documentation says site admin->modules, but doesn't say where to put it on my server and doesn't help me if I still can't access my gallery's site admin page.
Posts: 492
Put it in gallery2/modules/
You should be able to get to your G2 admin from the direct G2 page. http://www.danielpotratz.com/gallery2/main.php
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
In that case, ImageBlock is already there. And when I try to access the G2 page, I still get a blank page. ?????
If you'd like, I could create you an admin account and you could browse around my server to see if there's something I've done wrong?
Posts: 492
I'd be happy to sometime. (About to head to bed, and busy day tomorrow. But, I'll try to take a quick look tomorrow at lunch.)
PM me the info.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
Sounds good, thanks Capitan. ;)
Posts: 492
Batman,
Please delete and reinstall your Gallery2 files with a fresh copy from here.
Somewhere in one of the "include" files that gets called before anything else fires, there's an extra "?>" which is messing everything up. It's preventing the cookie from being set to allow further configuration. Something got corrupted when you moved hosting services, but it's too hard to find. (I searched several files, but couldn't find it.) At this point it's easier to reinstall. That should get you up and running.
Make sure to save a copy of your /gallery2/config.php in a different file (or just print it out). That will make it easier to get the values you'll need for the fresh installation.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
Okay, first the good news. GALLERY2 IS FINALLY INSTALLED AGAIN! YEAH! :D I deleted and reinstalled, keeping the config.php file and it worked. I had to do some updating, but that was a piece of cake.
The bad news is that now I get these code errors on my page. I think they're easier to fix, and they might have to do with the fact that I kept my previous gallery2 _g2_data files (since they had all of my previous pictures already loaded). Any ideas on how to fix that?
You rock, Captain Kirk! I'm SOOOOOOOO glad to have Gallery2 back! It's the best!
Posts: 492
Sorry. I had turned on G2 debugging. I'll turn it off...
EDIT: I'm getting FTP timeouts. You need to change config.debug to FALSE in gallery2/config.php.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
Yup, that was the spot. I changed it to: $gallery->setDebug(false); and that worked perfectly. ;)
Seriously, thank you so much for your help! It looks great! I'll let you know if I have any other problems with it!
EDIT:
One other thing I just noticed... Do you know why some pictures are not showing up properly? For example, in this album beginning with this page (and all photos going forward), the photos do not work. Any ideas why?
Posts: 492
Sorry. No idea.
Ozgreg, have you seen anything like this?
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 31
I think it's a database problem, but I'm not sure...
EDIT: I did some more checking and it looks like it's a thumbnail problem. The thumbnails aren't showing at all for new pictures (including newly uploaded), but when the broken thumbnail icon is clicked, the photo loads properly. I'll do some more snooping around on the issue and my G2 settings and see if that fixes anything.
Posts: 492
Go to edit album and rebuild the thumbnails.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 1378
Hiya Batman,
Unfortunately I cannot get into your Gallery2 to have a look but have a check your apache error_log
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 31
Rebuilding thumbnails didn't seem to do it...
Here's what my error log reads, though:
script not found or unable to stat: /home/myaccount/public_html/gallery2/wp-gallery2.php
Posts: 31
I think this is where I'm getting the problem. When I try and rebuild the thumbnails (both in Edit Album and in Site Admin), it doesn't seem to make a difference.
Another issue is that the photos are showing up HUGE, rather than getting fixed to the specified size in each album (600x400). Is that normal?
Posts: 1378
Check your Album image sizes, is the 600*400 fullsize or a resized image..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation, WPG2 Demo Site
Posts: 31
In Edit Album > Resize Images, it's set to 600x400. I didn't see an option for default image sizes (fullsize)...
Posts: 31
I just don't know how else to make the photos display properly, both as thumbnails (they currently appear as broken images) and as full (resized to 600x400) images. Any other ideas?