WYSIWYG Editor Image Files 404 on one of two WYSIWYG Editors after upgrade

4 posts by 2 authors in: Forums > CMS Builder
Last Post: April 6, 2018   (RSS)

By jimfloss - April 2, 2018

Hello,

I had a client recently upgrade CMSB from 2.5.3 to 3.13, all is working fine so far except on their newsletter pages where they have 2 WYSIWYG Editors (description and content) the WYSIWYG editor for the description section will allow me to upload image files perfectly fine, the second one for the content section throws a 404 error in the js console and doesn't populate a preview image, nor add the image properly to the textarea. This happens regardless as to if an image is uploaded into the first WYSIWYG editor or not and I am testing it with the same image. I have removed the old version of TinyMCE from the 3rd Party directory, re-uploaded the TinyMCE 4 directory and even removed the tinymce-temp-x.gz files from the data directory in an effor tot try and address the issue. I'm not really sure where to go from here.

- Jim

By Damon - April 3, 2018

Hi Jim,

From the screenshot, it looks like the 404 error is looking from an image in the uploads folder but then within an /enews/ folder.

Check that the /enews/ folder actually exists and has the correct file permissions to view. If there is an image in the folder, can you see it by going to that URL in a browser?

It looks like you may be using a custom upload directory for that second WYSIWYG editor. Go to CMS Setup > Section Editors and click modify for this section.

Click modify again for the second WYSIWYG editor and scroll down the page to see if the custom upload directory is set and update the Directory Path and Folder URL if not correct.

Let me know if this resolves the issue.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By jimfloss - April 6, 2018

Damon,

The /enews/ directory is present in the uploads directory and has the permissions 755. In the Section Editors area the directory path is set to /home/a926740/ohioca.org/cmsAdmin/uploads/enews/ and the folder URL is set to /cmsAdmin/uploads/enews/ The issue is still happening.

- Jim

By Damon - April 6, 2018

HI Jim,

If the images uploaded in the second WYSIWYG appear broken, here are some things to check:

- check that the sub-folders within the /enews/ folder have 755 file permissions
- check the files within the /enews/ have 666 file persmissions
- try uploading an image in the second WYSIWYG editor and then connect to the site via FTP and see if the image has been uploaded to the correct location.
- if you can see the image in the /enews/ folder, try going to it directly in a URL like this:
http://www.ohioca.org/cmsAdmin/uploads/enews/thumb/php-logo-image_004.png

That was the location of a previous image which returns a 404 page so it may have been removed.

If you can see the image directly in the browser but not in CMS Builder, then your directory path and/or folder URL may not be correct.

We know that uploads are working in CMS Builder for the default uploads directory so the issue should be either permissions or paths.

If you want us to look into it, you can order a support ticket here ($50):
https://www.interactivetools.com/order/?ST=1&INSTALL=0

Let me know if you can resolve it with one the above steps.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/