G2Image won't Insert

Jason13

Joined: 2007-03-07
Posts: 3
Posted: Sun, 2008-05-25 02:46

WordPress 2.5.1
Gallery 2.2.4
WPG2 3.0.6
G2Image 3.0.3
All other plugins deactivated.

WPG2 validates just fine. Not using Rewrites. Gallery2 is installed in http://[Base URL]/photos/

G2Image launches from either "view" or "html" editing windows. Album tree is functional and I can check photos.

If I don't select an item from the album tree and click "Insert" for "Insert a WPG2 Tag for current album: Gallery," it will place an image in the edit window.

If I select an album from the tree and attempt to insert a WPG2 tag for it, I get this error after clicking "Insert":

Line: 162
Char: 3
Error: 'window.opener.document.forms[...].elements' is null or not an object
Code: 0
URL: http://[BASE URL]/wp-content/plugins/wpg2/g2image/g2image.php?current_album=298&sortby=title_asc&images_per_page=15

I get the same error when checking a single image from an album and trying to insert a WPG2 Tag or even full-sized image for that image.

Results the same whether Firefox (Linux and Windows) or Internet Explorer.

Where can I look for more information?

I've tested on the demo site and everything works fine, so this must be some conflict between my installation of WordPress and Gallery/WPG2.

I'll continue to update this post as I find more information that may be helpful, but my knowledge of PHP and Javascript is extremely limited.

Thanks,

Jason

 
Jason13

Joined: 2007-03-07
Posts: 3
Posted: Fri, 2008-05-30 14:31

Well, I've exhausted my abilities to research this. It's been a week and no other suggestions. I'm a little concerned about performing complete reinstalls of wordpress and gallery. At this point I'm at a loss. I don't want to abandon gallery because of this one issue, but this is a feature I'd really like to be able to use. There must be some simple solution since it is apparently an isolated issue with my instance.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 20:21

Jason,

Sorry for the delay. Life and work keep getting in the way of G2Image...

Can you make me a temporary author account on your site and PM me the username and password, so that I can do some troubleshooting with Firebug?

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

 
Darius_B

Joined: 2008-05-30
Posts: 1
Posted: Mon, 2008-06-23 20:11

Nevermind.

 
texassaluki

Joined: 2006-04-08
Posts: 24
Posted: Wed, 2008-07-09 21:10

Jason,

Did you get this solved? I maybe having a similar problem... I figure it has to be a simple solution that I am just missing

Let us know what the solution was

Thanks

Chris Noland
Flower Mound, TX

www.thenolands.com

 
Jason13

Joined: 2007-03-07
Posts: 3
Posted: Fri, 2008-07-11 04:01

Chris,

No, not yet. I haven't heard from Capt Kirk since I sent him a login account. I've tried messing with a few things, but it hasn't worked.

Firebug shows an error when the Wordpress page with TinyMCE comes up...

post-new.php (line 560)

Quote:
window.opener.document.forms[g2ic_form] is undefined
buttonsnap_addbuttons()post-new.php (line 560)
(?)()post-new.php (line 443)
[Break on this error] var edit = document.getElementById(window.tinyMCE.getEditorId('content'));

When I attempt to insert a picture, I get this in Firebug...

function.js (line 161)

Quote:
window.opener.document.forms[g2ic_form] is undefined
insertHtml("<div class="g2image_float_left"><wpg2>179</wpg2></div>", form)functions.js (line 161)
insertItems()functions.js (line 373)
onclick()g2image....r_page=15 (line 1)
[Break on this error] insertAtCursor(window.opener.document....s[g2ic_form].elements[g2ic_field],html);

 
texassaluki

Joined: 2006-04-08
Posts: 24
Posted: Mon, 2008-08-25 05:34

Jason,

Seems Capt_Kirk maybe on summer vacation....

What plugin's are you using? Maybe this is a java script error and it is conflicting with it's ability to insert??

We can cross reference and see if there is any common programs we use that could be doing something screwy

I have

Plugin Version
All in One SEO Pack 1.4.6.13
cforms 8.7
Custom Smilies 1.2
Events Calendar 6.4
Smart Youtube 2.1.4
WeatherIcon 2.99.125
WPG2 3.0.7
WP Super Cache 0.6.7

Chris Noland
Flower Mound, TX

www.thenolands.com

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Mon, 2008-09-29 01:25

I'm having the same issue with not being able to insert.

Gallery version 2.2.6
WordPress version 2.6.2
WPG2 version 3.0.7

If you learn anything, please let me know.

Thanks,
Leslie

 
texassaluki

Joined: 2006-04-08
Posts: 24
Posted: Mon, 2008-10-20 17:46

Who is your host? Maybe this is the common thread.

I have ipower, and since they transitioned to their "new" platform my site has been extremely slow. Maybe there is a server setting that we have that is causing a common problem.

yea... I am guessing at this point but trying to get something to work

Chris Noland
Flower Mound, TX

www.thenolands.com

 
jjoss

Joined: 2008-04-09
Posts: 17
Posted: Tue, 2008-10-21 21:49

Same problem as well but only with IE 6 and 7. It's OK with FF 3.0.3.
Any idea ?

Josselin
-----------
WPG2 v3.0.7
WP v2.6.2
Gallery version = 2.3
PHP version = 5.2.5 cgi-fcgi