Insert button in Image chooser still not working!

ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Mon, 2007-10-22 21:48

Hello,
please, if anybody can help me with this problem:
after upgrading to WP 2.3 and WPG 3.0.2 versions, my Insert button in Image chooser stopped working both in visual and source. I know that some other people on this forum had pretty much the same problem, but it was resolved when they refreshed/cleared cache/disabled malfunctioning plugins. Well, none of these simple ones works in my case. I tried to deactivate all of the plugins apart from WPG2, cleared the cache, everything. Nothing has changed.
In Mozilla and Opera, after pressing Insert button, it doesn't say or do anything, but when I do it on IE, it indicates in Image chooser window "Error on the page"
When I opened the note about error, it showed me this:
Line: 158
Character: 3
Error: window.opener.document.forms[...]elements' es nulo o no es un objeto
Code: 0
Address URL: http://happy2travel.eu/sk/wp-content/plugins/wpg2/g2image/g2image?.php
current_album=2717&sortby=title_asc&images_per_page=15

BTW, the same thing was showing to ep01 who posted about it and had it solved by removing old plugin. I have exactly the same symptoms, ie. Image chooser allows me only to insert WPG tag of the recent album and only once per session. Again, all of my WP plugins are up-to-date and this problem occcurs even when I desactivate all the WP plugins. Also the validation seems to work well (apart from Gallery2 rewrites that has probably nothing to do with it).

Normally, I am using a couple of WP plugins that may cause some malfunctioning of WPG2, e.g. Tiny MCE advanced, WP Super edit etc. But, the weird thing is that Image chooser was working perfectly in the first days after the upgrade. My girlfriend has the blog with identical settings like me and after upgrading it, Image chooser does not work for her, too. Shortly before this problem occured I was adjusting the settings for the new Lightbox thing in WPG2, but after I realized Image Chooser does not work, I changed all the settings in WPG2 to default.

Furthermore, since I started experiencing problems with Image chooser, there occured problem with uploading pictures via Gallery Remote and G2 built-in web browser upload. Does not make sense, I would say these two things are pretty different stuff, but still, both Image chooser and uploading stopped working at the same time, without me changing any settings in Gallery2 itself.
My webpage: http://happy2travel.eu/sk
and gallery 2: http://happy2travel.eu/sk/gallery2
Thank you very much in advance.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-10-23 01:09

Hiya,

You might want to have a look at the following thread -> http://gallery.menalto.com/node/70272 to see if that helps. You might have a new line issue which is preventing the images being displayed..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Tue, 2007-10-23 13:54

Hello, thanks.
I saw the post you mentioned already before, but it seems to me that it is a different problem. My pictures and folders are displaying alright. I just cannot insert them in the post, because "Insert" button in Image Chooser doesn´t work. Anyway, just in case, I tried to write the post after viewing my blog, embedded page, revaluating WPG2 and still nothing.
Is this problem just in my settings (I wasn´t really changing anything since the upgrade), or is it something in WPG2/Gallery2?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2007-10-24 04:00

ozembuch,

What other Wordpress Plugins have you active, we have had a few posts where other Wordpress Tinymce Plugins have caused problems when trying to insert Images.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Wed, 2007-10-24 12:22

Hi,
at the moment, I have active
All in one SEO pack
Flexi pages Widget
Google XML sitemaps
Page Link Manager
Quick Stats
Tiny MCE advanced
Worpress.com stats
Wordpress database backup
WPG2
WP Navigation tool (NAVT)
WP Super edit
I already tried to desactivate all Tiny MCE plugins as well as the rest of plugins (apart from WPG2) and after clearing cache and revalidating WPG2 I checked Image chooser and no result. I even deleted all the plugins manually and still no difference...

 
ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Wed, 2007-10-24 22:41

PS: I just tried again to deactivate all the plugins and also reinstalled whole WP. After that, it is still the same and "Insert button" is not working...

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-25 12:57

The TinyMCE Advanced plugin requires separate installation. Check out these two posts to see if you've configured it properly.

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

 
ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Thu, 2007-10-25 13:39

Hi, thanks.
I am not sure if I understand you well, though.
I know Tinymce Advanced and WPG2 are two separate plugins - right after experiencing problems with WPG2 I deactivated Tinymce as well as other plugins that may cause the malfunctioning, but so far it has no effect on "Insert" button in Image chooser. It is so weird now, that the situation did not change even after reinstalling whole Wordpress system (as well as all the plugins).
I don´t know what´s going on, I am quite new to this stuff - maybe, if you want to see by your own, I created the new temporary username for login to my WP and you can check it - Ill send it to you as a PM. At the moment, I have deactivated most of the plugins I normally use, WP is right after being reinstalled and there is still the same problem...
Tomas.

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Mon, 2008-09-29 00:18

Just wanted to unfortunately keep this post alive. I'm going to go through and see what I can find based on these posts but I'm having the same problem trying to insert an image into my post using the Gallery2 Image Chooser - I have tried 2 browsers on one machine and another browser on a different machine and still cannot insert an image.

I get an Error on page warning:

Line: 162
Char: 3
Error: 'window.opener.document.forms[...].elements' is null or not an object
Code; 0

WordPress Version 2.6.2
WPG2 Version 3.0.7

I'll let you know if it's just "operator error" of if it's something else.

Thanks!
Leslie

 
ozembuch

Joined: 2007-10-19
Posts: 10
Posted: Mon, 2008-09-29 07:11

Dear Leslie,
I don't really know what's wrong with your installation, I can only tell you how I managed to fix this problem after I got really desperate. In Wordpress installation folder, there has to be temporary folder 'tmp' with values 755 or higher. I deleted it by accident while changing WP version without even noticing it. When I made it again, everything was back to perfect. Actually, I have one tmp also in wp-content; I'm not sure which one is required for Image chooser to work properly.
Best regards,
Tomas.

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sun, 2008-11-02 15:02

Hi Tomas,

Since I was not sure where to add the 'tmp' (my install of WP is at the root level) I created at the root and one in the wp-content. I still was not able to insert images using the Gallery2 Image Chooser. I am still getting a report of javascript error

window.opener.document.forms[g2ic-form] has no properties at line 161 in the functions.js

I also have the latest version of WP 2.6.3

Thanks,
Leslie

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Tue, 2008-12-09 01:57

Still having this problem with version 2.6.5

 
texassaluki

Joined: 2006-04-08
Posts: 24
Posted: Thu, 2008-12-11 18:10

Lesienord,

I tried something... and no idea why it worked...

renamed my current version of Gallery 2.6.7 (I believe) to gallery-old
I created a directory gallery (use what ever you renamed the old version from)
and then uploaded the same version (clean) into the new empty directory
moved my old config.php to the new directory

then went to WPG2 and went through the validation process again.

It now works... so not sure what I fixed...but I assume there was a corrupt file somewhere that a clean install fixed

Good luck

Chris Noland
Flower Mound, TX

www.thenolands.com