404 Error After Install
efl - November 13, 2007 - 07:14
| Project: | EasyLink |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
Hey --
I just got the plugin installed following the supplied instructions as well as comments from this site...very helpful...thanks!
After adding it to my TinyMCE menu and then going to a document I want to edit, I click on the EasyLink icon and a pop-up window opens with the following error.
-----
Not Found
The requested URL /modules/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/index.php was not found on this server.
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 Server at ***.***.***.*** Port 80
-----
Any ideas?
Thanks for your help!
Erik

#1
Do you have tinymce installed in drupal/modules? I was able to reproduce this situation when I placed the TinyMCE module in the main Drupal modules directory. Modules should be installed in drupal/sites/*/modules The following lines of code in editor_plugin.js are what is causing your problem:
var base_url = tinyMCE.baseURL;base_url = base_url.substring(0, base_url.indexOf('sites/'));
template['file'] = base_url + 'index.php?q=easylink/load';
Since there is no "sites/" in your string, the URL that is generated is invalid and therefore gives a 404. If you want a quick fix, use the following line:
base_url = base_url.substring(0, base_url.indexOf('modules'));The fix I would recommend for you is to use the proper Drupal location for modules. It will provide benefits other than fixing this problem. If I am wrong about your module setup, please give me more details about what your configuration is and I will work to solve this issue with you.
#2
HI,
I also am having this problem. I have changed:
var base_url=tinyMCE.baseURL;base_url=base_url.substring(0,base_url.indexOf('sites/'));template['file']=base_url+'index.php?q=easylink/load
to
var base_url=tinyMCE.baseURL;base_url=base_url.substring(0,base_url.indexOf('modules'));template['file']=base_url+'index.php?q=easylink/load
and I am still getting the exact same error. If i go to /?q=easylink I do see the module working within the template independant of the editor however.
Gary