Upgrade failed, plugin validation failed, "Cannot load wpg22Fg2admin.php"

batman129

Joined: 2006-08-25
Posts: 31
Posted: Mon, 2007-09-17 17:51


Gallery version = 2.1 core 1.1.0
PHP version = 5.1.2 cgi-fcgi
Webserver = Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.1.4
Database = mysql 5.0.24a-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux mento 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322)

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

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

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

Fatal error: main() [function.require]: Failed opening required './wp-config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') 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!
-Aaron

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-09-17 23:24

Please grab the latest copy of WPG2 2.13 -> http://wordpress.org/extend/plugins/wpg2/ and install that..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Tue, 2007-09-18 02:03

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

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-18 02:28

Please see the README, Extend Documentation or http://wpg2.galleryembedded.com/index.php?title=WPG2:Plug-in_Requirements_V2.x
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Tue, 2007-09-18 03:51

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

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-18 06:55
 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Tue, 2007-09-18 14:52

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.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2007-09-19 01:41

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Wed, 2007-09-19 02:41

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Wed, 2007-09-19 05:06

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?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-20 01:07

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-09-20 14:10

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. :(

 
evilzenscientist

Joined: 2006-11-22
Posts: 29
Posted: Fri, 2007-09-28 23:30

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.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2007-09-30 00:47

Grab a copy of WPG2 3.0 it is just about ready for Gold Release..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Wed, 2007-10-03 02:43

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

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2007-10-03 11:01

Batman, do you have the G2 ImageBlock module installed and activated? See the requirements for links.

From Gallery2:Installing Additional Components

Quote:
*Gallery 2.2+: You can install plugins via "Site Admin" -> "Plugins" in the "Get More Plugins" tab. No need for any manual tasks. And if there is a new version of a specific plugin, you can upgrade just as easy.
** The "Plugins" tab shows all modules and themes that are already part of your Gallery. Here you can install, activate, uninstall and configure plugins.
** The "Get More Plugins" tab gives you an opportunity to easily get more modules and themes with a few mouse-clicks. Read the instructions on the ''Get More Plugins'' tab.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 01:12

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.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 01:38

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 02:20

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?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 02:29

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 02:42

Sounds good, thanks Capitan. ;)

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 10:43

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 17:49

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!

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 18:17

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 19:36

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?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 20:02

Sorry. No idea.

Ozgreg, have you seen anything like this?

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-10-04 20:56

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.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-04 22:29

Go to edit album and rebuild the thumbnails.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-10-04 22:31

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Fri, 2007-10-05 07:33

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-11-08 01:35
capt_kirk wrote:
Go to edit album and rebuild the thumbnails.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

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?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-11-08 05:27

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

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Thu, 2007-11-08 06:07

In Edit Album > Resize Images, it's set to 600x400. I didn't see an option for default image sizes (fullsize)...

 
batman129

Joined: 2006-08-25
Posts: 31
Posted: Sun, 2007-11-18 15:05

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?