I already had a fully functional wysiwyg/tinymce installation. I extracted the content of codemagic.zip into sites/all/libraries/tinymce/jscripts/tiny_mce/plugins, so that I have a new subdirectory here, called codemagic, that has editor_plugin.js and all other stuff inside.
That's all, but no new button populates the toolbar. Instead, I get a warning message in admin/config/content/wysiwyg/profile/full_html/edit:
Warning: file_exists(): open_basedir restriction in effect. Warning: file_exists(): open_basedir restriction in effect. File(sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/codemagic/editor_plugin.js/images/codemagic.gif) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in wysiwyg_profile_form() (linea 133 di /home/giancarlo/sviluppo/webdev/livingnu/sites/all/modules/wysiwyg/wysiwyg.admin.inc).
Commenting out the open_basedir directive makes the warning disappear, but the button isn't still where it should be.
TinyMCE version is 3.4.5
Thanks for any help
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | show_button.patch | 701 bytes | hermes14 |
Comments
Comment #1
fizk commented1. Did you enable the Wysiwyg CodeMagic module?
2. Did you go to your WYSIWYG profiles under /admin/config/content/wysiwyg, and enable "CodeMagic" under "Buttons and Plugins"?
Comment #2
hermes14 commented1. Yes
2. Yes
Maybe it's something related to my local setup. Strange though, since all other modules work without any problems. I'll move the project to the remote site ASAP and then see if it works there. Anyway, if you have further suggestions you're welcome ;)
Comment #3
ezchile commentedI'm having the same issue. I'm running my installation of Drupal 7.2 locally using Xampp on Windows.
Did uploading to an external server help?
Comment #4
hermes14 commentedHaven't tried yet. I'll let you know as soon as I do it.
Still have a lot of things to do, before uploading it...
Comment #5
ezchile commentedHi, Just so that you know, I uploaded it to a live server and the button still does not show for me.
Comment #6
fizk commentedezchile, Do you get an error message?
Comment #7
krima commentedI have the same problem, but I see no screen error. I also tried to add the missing language (Italian) but without result.
Comment #8
ezchile commentedNo. All seems to be fine, Codemagic installed into the following location: sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/codemagic/ (this path is from the xampp installation, but it's the same live)
In the Wysiwyg configuration, I've enabled Codemagic for both filtered and full HTML but when creating new content, the last icon I get is teaser break (which I've enabled), no Codemagic icon at all.
Odd.
Comment #9
krima commentedI also install the module in a production site and gives me the following errors:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/codemagic/editor_plugin.js/images/codemagic.gif) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in wysiwyg_profile_form() (linea 133 di /var/www/vhosts/site.com/httpdocs/sites/all/modules/wysiwyg/wysiwyg.admin.inc).
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/codemagic/editor_plugin.js/images/codemagic.gif) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in wysiwyg_profile_form() (linea 136 di /var/www/vhosts/site.com/httpdocs/sites/all/modules/wysiwyg/wysiwyg.admin.inc).
Comment #10
hermes14 commentedOk, I found a way to get the plugin work. Just digged into the wysiwyg APIs (namely the hook_wysiwyg_plugin() implementation). Hope this works for everybody.
Comment #11
ezchile commentedThanks SO much, that works a charm for me.
(does a little dance)
Comment #12
krima commentedThanks!
It works perfectly!!!
Comment #13
hermes14 commentedTo the devs: can this patch go upstream?
Comment #14
fizk commentedhermes14, thanks for the patch. I'll test it and commit it to git.
Comment #15
fizk commentedFixed in 6.x-1.0-beta2 and 7.x-1.0-beta2.
Thanks hermes14!
Comment #16
fizk commented