Wordpress crashed when wpg2 is Activated

Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 01:00

Hi:

I write here because i need some help with the following problmem.

I installed in my server the last version of Wordpress (2.5.1) and the last one of Gallery2. Then i installed Wpg2 plugin and when i activated it, Wordpress Crashed.

This is what appears on the index page in wordpress when i active the wpg2 plugin

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName)
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2embed.inc at line 199 (GalleryCoreApi::fetchUserByUserName)
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2embed.inc at line 105
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2functions.inc at line 510
* in ??? at line 0
* in /home/content/p/e/r/perkin/html/wp-includes/plugin.php at line 311
* in /home/content/p/e/r/perkin/html/wp-includes/general-template.php at line 866
* in /home/content/p/e/r/perkin/html/wp-content/themes/Blue3/header.php at line 24
* in /home/content/p/e/r/perkin/html/wp-includes/theme.php at line 472
* in /home/content/p/e/r/perkin/html/wp-includes/general-template.php at line 8
* in /home/content/p/e/r/perkin/html/wp-content/themes/Blue3/index.php at line 1
* in /home/content/p/e/r/perkin/html/wp-includes/template-loader.php at line 24
* in /home/content/p/e/r/perkin/html/wp-blog-header.php at line 20
* in /home/content/p/e/r/perkin/html/index.php at line 4

Please, if you know why this is produced please tell me. By the way.. i've read in some other posts that similar problems are caused by apache rewrite mod.. i have to say i activated it in Gallery2.

Thanks for your help!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-14 02:37

No your issue is slightly different, that line is calling the Create User function and trying to look up a user that is being rejected by Gallery2..

Do you get the same error when you visit the WPG2 Gallery2 Users Tab?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 03:02

When you say WPG2 gallery users tab.. are you refering to a tab inside wordpress? or in the gallery2?

Let me give you some answers to see if one of them is what you're asking me.

First of all, there is no Users tab in wpg2 inside Wordpress.

I can see users configuration from the admin panel in Gallery2 and that works fine. I think there's no problem with that. In guest view i cant find an users tab in Gallery.

By the way, i don't use the same user in WP and Gallery, the first one is admin but the second is "Perkin".. Can this cause trouble??

Please, feel free to enter my site and check my gallery as guest if you need to see something.

http://raskmelaspelotas.com.ar/gallery2

Thanks a lot!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-14 03:05
Quote:
First of all, there is no Users tab in wpg2 inside Wordpress.

Should be under the Wordpress User Menu -> Gallery2 Users

I presume you have validated the WPG2 Plugin?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 03:22

I found what you said under User Menu and this is the output:

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName)
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2embed.inc at line 199 (GalleryCoreApi::fetchUserByUserName)
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2embed.inc at line 105
* in /home/content/p/e/r/perkin/html/wp-content/plugins/wpg2/wpg2usersadmin.php at line 37
* in /home/content/p/e/r/perkin/html/wp-admin/admin.php at line 69
* in /home/content/p/e/r/perkin/html/wp-admin/users.php at line 2

What do you refer with "validate wpg2 plugin"? ... If you ask if i "activated" the plugin of course i did. I can tell you more, before uploading wpg2 into the server i tried it under Wamp in my computer and everything worked just fine.

 
Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 03:27

Sorry, i saw what did you say about "validate wpg2"

Quote:
WPG2 Validation Check: Valid (Help)
1. Wordpress Compatible? - [ Success]
2. URI to Gallery2 Ok? - [Success]
3. Gallery2 can be located in G2 File Path? - [Success]
4. Gallery2 can be initialised? - [Success]
5. Gallery2 Version Compatible? - [Success]
6. Gallery2 Module: ImageBlock Active? - [Success]
7. Gallery2 Module: ImageBlock Version Compatible? - [Success]
8. Gallery2 Module: ImageFrame Active? - [Success]
9. Gallery2 to WPG2 Relative Path Validate? - [Success]
WPG2 Page Generation Rules: (View WPG2 Output Page »)
1. WPG2 Output Style? - [Look like a Gallery2 Page]
2. WPG2 Gallery2 Rewrites Status? - [Off]
3. Embedded Page is using what Header type? - [Simple]
4. Embedded Page is using what Footer type? - [Simple]
5. Using Which WPG2 Stylesheet? - [Internal]

Everything is ok. I have installed Imageframe and imageblock.. As i said, i tried everything in my PC under Wamp and it worked ok.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-14 03:27

I am pretty sure it is a Gallery2 user issue.. Can you please read this topic and re-visit the Gallery2 Users Tab (it will crash) then cut and paste the Debug log for me..

Thanks..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 03:44

This is what i could obtain from the BTEV Tool mentioned in the topic you told me to read:

Quote:
2008-05-14 00:43:32 ERROR WPG2 G2 USER (WP:1) COULD NOT BE CREATED DUE TO HASHING
2008-05-14 00:43:32 NOTICE WPG2 COULD NOT FIND G2 USER:admin
2008-05-14 00:43:32 NOTICE WPG2 INITALISED G2
2008-05-14 00:43:31 NOTICE FUNCTION: WPG2 Manage G2 Users
2008-05-14 00:42:58 ERROR WPG2 G2 USER (WP:1) COULD NOT BE CREATED DUE TO HASHING
2008-05-14 00:42:58 NOTICE WPG2 COULD NOT FIND G2 USER:admin
2008-05-14 00:42:58 NOTICE WPG2 INITALISED G2
2008-05-14 00:42:58 NOTICE FUNCTION: WPG2 Manage G2 Users
2008-05-14 00:42:51 ERROR WPG2 G2 USER (WP:1) COULD NOT BE CREATED DUE TO HASHING
2008-05-14 00:42:51 NOTICE WPG2 COULD NOT FIND G2 USER:admin

Thanks for your help again!

 
Perkin

Joined: 2008-05-14
Posts: 6
Posted: Wed, 2008-05-14 03:48

After reading the log i realized what you said about users problem, so i changed the username of gallery2 from "perkin" to "admin".. matching the gallery2 admin with wordpress admin.. and now everything seems to work fine!...

I'd like to help to solve the problem, so anything you need just tell me..

Thanks for your help!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-14 03:58

I see the issue, I never tested the possibility that WPG2 cannot find any matching users, thus the routine just cannot cope with no users being returned..

Oversight on my behalf, I have opened a bug ticket on this for the next release..

Loving that debug log, makes my job sooo much easier ;)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo