Posted by internets on May 8, 2009 at 1:17pm
Jump to:
| Project: | OpenWYSIWYG Editor |
| Version: | 6.x-1.0-beta3 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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?
Comments
#1
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
abc
#3
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
Many thanks. :)
#5
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
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
thanks i ended up creating a test subdomain and just updated to the new version
seems to be working pretty good -- nice job!
#8
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
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
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
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
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
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
#14
I had the same problem, having my Drupal installation in /new, and no Clean URLs.
There are two "Clean URLs" related problems.
The first is in openwysiwyg/library/scripts/openwysiwyg.modified.js, and since there's no PHP evaluation in there I had to just make it work without Clean URLs:
diff -r openwysiwyg/library/scripts/openwysiwyg.modified.js openwysiwyg_new/library/scripts/openwysiwyg.modified.js951c951
< window.open(this.config[n].base_path+'openwysiwyg/image_form'+'?wysiwyg='+n,'popup',
---
> window.open(this.config[n].base_path+'?q=openwysiwyg/image_form'+'&wysiwyg='+n,'popup',
The second is in openwysiwyg/openwysiwyg.module, and this can be fixed rather pretty due to Drupal's url() function:
diff -r openwysiwyg/openwysiwyg.module openwysiwyg_new/openwysiwyg.module575c575
< $output .= ' window.open(\''.$base_path.'openwysiwyg/image_browse\', \'browseImage\', \'location=0,status=0,scrollbars=1,width=600,height=500,top=100
,left=100\').focus();'."\n";
---
> $output .= ' window.open(\''.url('openwysiwyg/image_browse').'\', \'browseImage\', \'location=0,status=0,scrollbars=1,width=600,height=500,top=100,le
ft=100\').focus();'."\n";
By the way, something ought to be done about the includeCSS() function. It isn't even used in popups/create_table.html.
Edit: Sorry, I'm using 1.0-rc1
#15
Same problem to me
Please Fix somebody
#16
I was having the same problem, but I got it to work.
I had to enable Clean URLs in Administer->Site Configurations
In order to enable Clean URLs I had to make sure I copied over the .htaccess file from the drupal 6.20 installation package to the server.