Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Image Problems in 3.7
Rayc
Posted on 15 Oct 2010, 03:27:07

Access: Member
Total Posts: 74
Joined: 2010-06-13

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.

Any ideas?

-RayC
#2940
Chris
Posted on 16 Oct 2010, 13:09:44

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Can you insert one of the images where it only shows "Image" to an article then link me to it so I can see if I can see what's wrong?
#2942
Rayc
Posted on 16 Oct 2010, 14:02:13

Access: Member
Total Posts: 74
Joined: 2010-06-13

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 :rolleyes: because it's painfully obvious, so...

-RayC
#2946
Chris
Posted on 16 Oct 2010, 14:09:13

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/
#2947
Last edited by Chris at 2010-10-16 14:09:43 Reason:
Rayc
Posted on 16 Oct 2010, 14:10:46

Access: Member
Total Posts: 74
Joined: 2010-06-13

As a matter of fact...

Let me try with IE :ermm: and see what happens.
#2948
Rayc
Posted on 16 Oct 2010, 14:27:11

Access: Member
Total Posts: 74
Joined: 2010-06-13

Well, that was it. Wow -- I would NEVER have gone there.:blink:

I feel a little guilty :innocent: 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.

Thanks for being there, Chris. :flowers:

-RayC
#2949
Chris
Posted on 16 Oct 2010, 14:39:54

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
#2950
Network-13.com © 2013