Hello
I am using Drupal 7 beta on a shared hosting with multisites, and get the same results with CKeditor & TinyMCE as the wysiwyg editor. I am using IMCE with IMCE bridge to add images both via the upload button as well as via FTP. In the Edit screen I am able to add my image and it displays correctly, but when I press save, the image disappears, with an image placeholder in its place, with a question mark. If I open the image it shows image not found but the image address has additional characters added like this http://www.mysite.co.za/%22/sites/mysite.co.za//files/projects/large_Gav... if I delete both the /%22 my browser takes me to the image. If I insert the image, save it , go back to edit then this is the code I find
. I have been running a fewdrupal 6 sites for over a year, but what I know about html and php is pretty small
thanks
Paul
Comments
Comment #1
Paul M commentedHi I did get the following errors on configuring the wysiwyg editor.
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Notice: Undefined index: advanced in _overlay_region_list() (line 610 of /usr/www/users/simplyyi/modules/overlay/overlay.module).
• Notice: Undefined index: advanced in _overlay_region_list() (line 610 of /usr/www/users/simplyyi/modules/overlay/overlay.module).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: call_user_func_array(): First argument is expected to be a valid callback, '' was given in theme_get_registry() (line 249 of /usr/www/users/simplyyi/includes/theme.inc).
• Warning: call_user_func_array(): First argument is expected to be a valid callback, '' was given in theme_get_registry() (line 249 of /usr/www/users/simplyyi/includes/theme.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
• Warning: Invalid argument supplied for foreach() in drupal_alter() (line 931 of /usr/www/users/simplyyi/includes/module.inc).
Comment #2
twodI just tried this on a fresh D7 installation with just the wysiwyg + imce + imce_wysiwyg modules and noticed no URL problems. (There were a couple of unrelated errors during upload, but they didn't interfere with the image.)
It looks like this could be a filter problem. The image I uploaded did not get the domain name in its URL, just the path (I was using localhost and that part was left out). %22 is the double quote ("), maybe a filter mistakenly includes this when joining the path to the base url during rendering? (My rendered images did not include the domain, just the path.)
If the URL looks alright if you click the "Disable rich-text" link, it's not a problem with the editor or Wysiwyg module. The editor is disabled right before the form is submitted so what you see there is what will be put in the database, any other modifications are done by the filters during rendering.
Comment #3
Paul M commentedHi thanks for this.
Basically every time I push save it adds these extra characters each time, I disabled the wysiwyg module and used the image picker module- again I am getting some additional characters (not the %22-this time though) but I can correct the link and it works while I was unable to do this with the wysiwyg on. I'll experiment some more but I suspect it may be the "media module" thats giving this problem.
Paul
Comment #4
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.