Insert images button is trying to load image_form but is returning page not found

internets - May 8, 2009 - 13:17
Project:OpenWYSIWYG Editor
Version:6.x-1.0-beta3
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I installed the latest beta version (5/7/09) of the openwysiwyg editor but have not been able to insert images.

When I click the "insert image" button I get a pop-up that is trying to load

"http://example.com/dev/sitename/openwysiwyg/image_form?wysiwyg=edit-body"

But I get a page not found error. Is there something I'm overlooking?

#1

mcdazz - May 11, 2009 - 08:19

I'm experiencing the same issue with 6.x-1.0-beta3 and 6.x-1.0-beta2.

I've had a look at some of the code - in particular openwysiwyg/library/scripts/openwysiwyg.modified.js and noticed that line 952 reads:

window.open(this.config[n].base_path+'openwysiwyg/image_form'+'?wysiwyg='+n,'popup',

whereas, I believe it should be:

window.open(this.config[n].PopupsDir + 'insert_image.html'+'?wysiwyg='+n,'popup',

After making the change, the popup menu now appears, however, clicking Browse results in another error message (openwysiwyg/image_browse).

A look at the code in insert_image.html shows a reference to the imageBrowse function - however, I haven't been able to find any reference of this function at this point in time.

Of course, I could be on the wrong path completely here, so hopefully someone else can figure it out.

#2

ricky.p - May 11, 2009 - 08:20

abc

#3

drupal-id.com - May 15, 2009 - 07:52

mcdazz: nothing wrong with the code. This window.open(this.config[n].base_path+'openwysiwyg/image_form'+'?wysiwyg='+n,'popup', replace the original code because openWYSIWYG has its own form.

Look like the problem come from installing this module on Drupal subfolder with the changing of settings.php, I will take a look this bug.

#4

mcdazz - May 17, 2009 - 12:24

Many thanks. :)

#5

ascii122 - June 17, 2009 - 02:50

I am evaluating various editors in a subfolder install and get the same page not found error using openwysiwyg-6.x-1.0-beta3.tar.gz

try to figure it out myself but anybody have any luck on this front?

thanks

#6

drupal-id.com - June 18, 2009 - 14:14

ascii122: please try to include below code at line 125 of Drupal settings.php

$base_url = 'http://www.example.com/subfolder'; // NO trailing slash!

#7

ascii122 - June 18, 2009 - 22:36

thanks i ended up creating a test subdomain and just updated to the new version

seems to be working pretty good -- nice job!

#8

ws_aus - June 20, 2009 - 16:10

I'm having the same problem with openwysiwyg-6.x-1.0-beta5

I followed the 'base_url' suggestion, but it didnt work for me. Just get the same error (even after restart).

Are people still having this issue ?

#9

drupal-id.com - June 21, 2009 - 09:14

ws_aus :

I need to re-produce your error report, so I need to know:

1. What is your URL to access your Drupal site: www.domain.tld or www.domain.tld/folder_name ?
2. Show me your $base_url
3. When you got "page not found" then what is the URL in the "pag not found " window?
4. Do you enable Clean-URL and Pathauto module? (In my site both items is enable, because I always use Clean-URL and Pathauto module)

TLD: Top Level Domain, i.e.: .com, .net, .org

#10

a1sauce - July 13, 2009 - 08:36

I had the same problem. I also replaced that string in line 952, which fixed that error.

The image browse call is located in the insert_image.html file, in the popups folder.

You can just ignore the "browse" button and manually paste in the web image url you want to use, then use the interface to set the alignment, vspace, hspace, etc.

The author seems to have something else in mind, based on his comment. I'm just happy it's sort of functional now. Fckeditor won't work for me (no idea why, probably some conflict with something else I installed?). But it's a nice module, otherwise.

#11

HepCat_ - July 17, 2009 - 18:45

Quote:

ws_aus :

I need to re-produce your error report, so I need to know:

1. What is your URL to access your Drupal site: www.domain.tld or www.domain.tld/folder_name ?
2. Show me your $base_url
3. When you got "page not found" then what is the URL in the "pag not found " window?
4. Do you enable Clean-URL and Pathauto module? (In my site both items is enable, because I always use Clean-URL and Pathauto module)

TLD: Top Level Domain, i.e.: .com, .net, .org

=========================================================

1. http://localhost/drupal
2. http://localhost/drupal
3. http://localhost/drupal/openwysiwyg/image_form?wysiwyg=edit-body
note: this is not where my /openwysiwyg dir is located. I installed it where instructed: sites/all/modules/openwysiwyg/
4. No. Neither of those modules are enabled. These are not listed as requirements.

#12

Even Dawn - October 2, 2009 - 02:05

Hi,

I am getting this error "The requested URL was not found on this server." when attempting to insert images with OpenWYSIWYG using Drupal 6.4 for:

1. www.waterevolution.com.au
2. I'm not sure what you mean by $base_url >?
3. This is the URL of the page not found window: http://www.waterevolution.com.au/openwysiwyg/image_form?wysiwyg=edit-body
4. I have enabled Path Auto but don't have Clean-URL installed and can't find it in the modules list.

I have just cleared the cache, but to no avail.
Any more suggestions on how to get it working?

Thanks

#13

Even Dawn - October 14, 2009 - 05:31

Hello,

I am still unable to insert images through the openwysiwyg editor.
The server support staff point out that there is no folder for openwysiwyg directly under the www.waterevolution.com.au root directory.

I tried adding :
$base_url = 'http://www.example.com/subfolder'; // NO trailing slash!
on line 125 but it did not make the image browser load. I don't understand whether I am I meant to replace it with the http://www.waterevolution.com.au/openwysiwyg path or not?

Is there a somewhere I can change the path to the form which points to waterevolution.com.au/modules/openwysiwyg instead?

Thanks,
Even

 
 

Drupal is a registered trademark of Dries Buytaert.