I am having problems with image uploads in v3.7. I've applied the 3 "Known Bug" fixes (rss.php, modfileupload.php; and functions.php)
This started as a problem with thumbnails not displaying, even though the JPEG file had been uploaded. For the record, at least in v3.7 if the file extension is UPPERCASE, as in mypic.JPG, the script has issues. Change it to mypic.jpg (lower case extension) and that is all good.
Now that I've solved that, when I edit an article and insert an image, all I get is the text "Image" displayed where I've attempted to insert it into the article.
Sure. Here's a link to a Full Story. This story has both Summary and Article, and the jpg was inserted immediately before the first character in the Artcle, set to Align Left. The word [Image] appears at the start of the second paragraph.
I think I see what's happening, but not quite sure why: The path to the jpg file is wrong.
The word [Image] actually appears to be a graphic. If I right-click and try to "view image" I get:
Quote:
Not Found
The requested URL /mavtest/html/uploads/Soar-200.jpg was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
In System Configuration, for Image Uploads path, I have:
http://xxxxxx.com/mavtest/newsscript/uploads/
But the article is looking for the image through the above relative link at:
http://www.xxxxxx.com/mavtest/html/uploads/Soar-200.jpg
The calling page is in the /html/ subfolder, and I used a relative path for the include.
Code:
<?php include '../newsscript/index.php'; ?>
Could that have something to do with it?
I'm sure you're just going to because it's painfully obvious, so...
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Are you using firefox when inserting the images to an article? reason I ask is there is a known bug in firefox which pretty much broke CKEditor by changing image paths, it changed absolute paths like http://example.com/news/uploads/image.jpg to uploads/image.jpg, which sucks.
They've released a beta build of version of firefox 3.6 that apparently fixes this problem - ftp://ftp.mozilla.org/pub/firefox/nightly/3.6.11-candidates/build3/win32/en-US/
Well, that was it. Wow -- I would NEVER have gone there.
I feel a little guilty for promoting integration of the CK-Editor thing. Now you've got one more thing to keep track of. I'm glad I picked a news script that someone cares about.
Any idea about why .JPG extension in UPPERCASE
is treated differently from .jpg in lowercase?
Not critical. Now that I know, I'll keep my eyes open for it. Just curious in case you happen to know off hand. And you may need to file that away for future reference.
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I renamed a few images to uppercase .JPG extensions then uploaded, the upload + inserting into an article worked fine, although I am testing with version 4.0 so maybe that has something to do with it. Solution is upgrade to 4.0! :D