Validation Error

werelax

Joined: 2007-09-24
Posts: 12
Posted: Tue, 2007-09-25 05:02

System status

Gallery version : 2.2.2
PHP version: 4.4.7
PHP memory 16 mb
WP version: 2.2
WPG2 version 3.0 final

Wordpress Compatible? Success
URI to Gallery2 Ok? Failed
Gallery2 can be located in G2 File Path?Skipped Due to Validation Error

Error message:
The Gallery2 Embedded Page http://www.we-relax.com/gallery/embed.php http://www.we-relax.com/gallery/embed.php returned HTTP/1.1 406 Not Acceptable

I have set the path manually to the correct directories,
After it failed I tried deactivating and using the snapshot from http://www.wpg2next.com/snapshot/wpg2snapshot.zip and reactivating the plugin.

Same error

I was able to install gallery two and the older version of wpg2 2.13 and get it to work.

it is not embeding it in my pages and I can not get it to work with FCKeditor.

What is the next step to check to get 3.0 to work?

Tried reinstalling 3.0 and it still did not work.

 
ozgreg
ozgreg's picture

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

*sighs* Looks like I have to refine that check to only fail on 404 errors.. It be a day or two until I can alter the code to only check for 404 errors..

Sorry..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-09-25 10:43
werelax wrote:
I can not get it to work with FCKeditor.

You have to copy the g2image directory to the FCKEditor plugins directory: wp-content/plugins/fckeditor-for-wordpress-plugin/fckeditor/editor/plugins (Copy, not move. WPG2 still needs a copy in its directory.) And then edit the FCKEditor config file as documented here: http://g2image.steffensenfamily.com/index.php?title=FCKEditor

Since FCKEditor is not the official WordPress editor, there are no hooks to do this automatically like there are for TinyMCE and the code editor.

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Tue, 2007-09-25 15:10

Hi, well I'm glad the 3.0 problem was not just a stupid oversight on my part. Sorry it is going to cause you some more work.

I am having a problem getting the fckeditor to work with gallery2 and wpg2 2.13

I made the changes in http://g2image.steffensenfamily.com/index.php?title=FCKEditor
as you suggested

Here they are: I bolded the changes

Quote:
<?php
require_once('deans_fckeditor_class.php');
$fck_browser_url = $deans_fckeditor->plugin_path .'filemanager/browser/browser.html?Connector=connectors/connector.php';
$fck_upload_url = $deans_fckeditor->plugin_path .'filemanager/upload/upload.php';
$fck_can_upload = $deans_fckeditor->can_upload() ? 'true' : 'false';
?>
FCKConfig.Plugins.Add( 'g2image');
FCKConfig.Plugins.Add( 'wpMore');
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['G2Image',,'Flash','Table','Rule','Smiley','SpecialChar','PageBreak','-','wpMore'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
] ;

when I attempt to use the flckeditor I get a not found file error
/public_html/wp-content/plugins/fckeditor_for_wordpress/fckeditor/editor/plugins/g2image/fckplugin.js

I the file did not exist in the wpg2 2.13 plugin I downloaded from here http://downloads.wordpress.org/plugin/wpg2.2.13.zip

I tried copying fckplugin.js from the verision wpg2 3.0 download into the subdirectory. It seemed to work there is an unknown toolbar item "undefined" error, but the G2 button shows up in the tool bar, the pop window comes up and everything is there and I can navigate the ablums but clicking on the thumb nail or the the insert button in advanced setting does not insert the image into the post.

I left the wpg2 setup options in the sub memus in the default

Any thoughts?
I appreciate the help,

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-09-25 17:18

Make sure you do a refresh on the "Write Posts" page. This will force the javascript to reload.

I have not used 2.1.3 with FCKEditor, so I don't know for sure if it will work. Other people have definitely gotten it to work with 2.0, and it definitely works with 3.0, but 2.1.x had some kludges so that we could get it out the door. I'm not sure if those kludges will keep it from working with FCKEditor.

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

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Mon, 2007-10-08 03:02
ozgreg wrote:
*sighs* Looks like I have to refine that check to only fail on 404 errors.. It be a day or two until I can alter the code to only check for 404 errors..

Sorry..
____________________________________
Wordpress / Gallery2 (WPG2) Author

Any progress? I would like to get it all working the gallery works fine standalone

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-08 03:25
werelax wrote:
Any progress? I would like to get it all working the gallery works fine standalone

It's been done for a while. It's in the final WPG2 3.0 release.

Please confirm that it works for you.

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

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Thu, 2007-10-11 07:22

Well it is not failing on 404 errors now it is failing on 406 errors

Trying to insert a picture in a post error message is

Fatal Gallery2 Error: Cannot activate the Gallery2 Embedded functions.

For WordPress users, Validate WPG2 in the Options Admin panel.

For other platforms, please verify your Gallery2 path in config.php.

the validation check is provides the following error:

Warning: Possible invalid URL to Gallery2
Possible Validation Problem of Gallery2 URL http://www.we-relax.com/gallery/embed.php returned HTTP/1.1 406 Not Acceptable

Well then I thought maybe it was because I did not have the latest gallery2 installed. I installed the latest version 2.2.3, what a process. Had to permission problems several interactions with hosting service, trying the lib/support tools, then ftp then cache problems finally got it working.

Still the same embed.php error 406 not acceptable

I am still trying, any more suggestions

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-11 13:53

Please try WPG2 3.0.2, and let me know if that changes anything or fixes it.

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

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Thu, 2007-10-11 15:28

Sorry same problem
Fatal Gallery2 Error: Cannot activate the Gallery2 Embedded functions.

For WordPress users, Validate WPG2 in the Options Admin panel.

For other platforms, please verify your Gallery2 path in config.php.

Warning: Possible invalid URL to Gallery2
Possible Validation Problem of Gallery2 URL. The error returned reads: "http://www.we-relax.com/gallery/embed.php returned HTTP/1.1 406 Not Acceptable"

by the way - I do not think this is a problem but, re-reading the readme.txt files included I noticed "If you are upgrading from WPG2 version 2.0, delete all of the files in the wp-includes/js/tinymce/plugins/g2image/ directory." when I checked wp-includes/js/tinymce/plugins/ there was no g2image directory, I am using FCKeditor

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-10-11 15:41

What does it say when you click on the WPG2 tab and WPG2 Paths tab in the WP admin panel?

Also, just to be clear, you deleted the old G2Image files in your FCKEditor plugins directory and copied the g2image/ directory there from the wpg2/ directory, when you upgraded, right?

EDIT: Also, trying to get to the root of the 406 problem, check out this post, this post, and this post.

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

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Fri, 2007-10-12 06:21
Quote:
lso, just to be clear, you deleted the old G2Image files in your FCKEditor plugins directory and copied the g2image/ directory there from the wpg2/ directory, when you upgraded, right?

Ahhhh.... Ummmm..... hummmmmmm welllllll no.

When I did it got rid of the 406 problem, but still have a problem.

The paths look ok to me
http://www.we-relax.com/gallery/
URL to WPG2 Output: http://www.we-relax.com/gallery/main.php
http://www.we-relax.com/gallery/
http://www.we-relax.com/gallery/

clicking on the icon in fckeditor brings up the popup window I can select a gallery subdirectory/album check a picture and it inserts it but this is what is inserted,

<p><wpg2>338</wpg2></p>

this http://www.we-relax.com/gallery/main.php?g2_itemId=338 is the path to the picture in the gallery

So I am still at a lost, futher down the trail but lost

 
werelax

Joined: 2007-09-24
Posts: 12
Posted: Fri, 2007-10-12 06:22
Quote:
lso, just to be clear, you deleted the old G2Image files in your FCKEditor plugins directory and copied the g2image/ directory there from the wpg2/ directory, when you upgraded, right?

Ahhhh.... Ummmm..... hummmmmmm welllllll no.

When I did it got rid of the 406 problem, but still have a problem.

The paths look ok to me
http://www.we-relax.com/gallery/
URL to WPG2 Output: http://www.we-relax.com/gallery/main.php
http://www.we-relax.com/gallery/
http://www.we-relax.com/gallery/

clicking on the icon in fckeditor brings up the popup window I can select a gallery subdirectory/album check a picture and it inserts it but this is what is inserted,

<p><wpg2>338</wpg2></p>

this http://www.we-relax.com/gallery/main.php?g2_itemId=338 is the path to the picture in the gallery

So I am still at a lost, futher down the trail but lost

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Fri, 2007-10-12 13:22

It's doing what it's supposed to do. Those are wpg2 tags. WPG2 will translate them into the image in the post. The 338 is the Gallery2 itemId from the URL for the image.

That's because you have "WPG2 Tag of Image" selected in "How to Insert Image:"

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