Image Linking in WYSIWYG incorrect

5 posts by 3 authors in: Forums > CMS Builder
Last Post: January 21, 2010   (RSS)

When I first installed CMSB, I had the address set to http://174.143.92.42/waxahachiechamber.com in General Settings in order to work on it before it went live. Now, after going live, everywhere it should in the admin panel, it reads http://waxahachiechamber.com as it should....

However...

When adding an image in the WYSIWYG editor for ANY page, it lists the image URL as http://174.143.92.42/emediacms/uploads/Website_File.jpg when it is SUPPOSED to read http://waxahachiechamber.com/emediacms/uploads/Website_File.jpg. (Website_File.jpg is of course being used for any image....)

I can find absolutely no way to fix this aside from manually changing it every time I post a new image, which is unacceptable to our end-user.

Re: [misery217] Image Linking in WYSIWYG incorrect

By Dave - January 20, 2010

Hi misery217,

So is it just previously uploaded images that don't work or do images uploaded on the new server not work either?

Here's some suggestions. First, check that this option is unchecked under: Admin > General:
WYSIWYG Options [ ] Save full URL for local links and images (for viewers on other domains)

Next, uploaded image store their url (without the domain), so if the url on the development server was different you'll need to update the uploads in the database.

The easiest way to do that is to:
- Make sure you're running a recent version with Backup/Restore functions
- Go to: Admin > General > Database Backup
- Create a backup and download it.
- Create a backup of your backup.
- Open the backup file and search and replace http://174.143.92.42/waxahachiechamber.com/ with /
- Search for any other instances of 174.143.92.42
- Upload your backup file and restore it.

Let me know if that works for you. If it doesn't we can take a closer look at the server and see what the issue might be.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Image Linking in WYSIWYG incorrect

Hey Dave,

I tried replacing the offensive address and got returned this error:

MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&#65279;-- <?php die('This is not a program file.'); exit; ?> DROP TABLE IF EXI' at line 1

So I have no idea what to do for that...

The initial problem DID, however, fix itself after I had the client log in to the admin panel using the correct address and not the IP Addy...

Sorry to change the topic mid-stream, but any ideas as to why the DB backup is behaving as it is?

Re: [chris] Image Linking in WYSIWYG incorrect

Thanks Chris,

yeah, I tried that to the no avail as well... I'm sending it along to you...