Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
I've just uploaded a 70kb .jpg file and the attachment just displays the file name. No image and no link. My max file size to display inline images is set to 500kb.

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Test
Attachments
remote.jpg

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Test above shows that it works on here. confused

Worked fine on my forum before I upgraded to 7.5b2 from 7.4.2

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
I've just checked my attachments directory. Path is correct and permissions.

I have attached the image file again and it has uploaded to the attachments directory.

I have uploaded a different image with a known good image to check that it wasn't a file error with the same outcome.

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Another update: All posts with existing inline attachments are now only displaying the file name and not the image.

Example post from 2007.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Same issue here.
For thrills turned off the nofollow options in the cp and rebuilt content. Still no inline image or link to image.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Error log:

PHP Fatal error: Call to undefined function apache_request_headers() in /home/******/public_html/ubbthreads/scripts/download.inc.php on line 82

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
No errors on my side. Server or control panel.
Just does not work.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Okay I will try a test here also. Don't know what the inline setting is but in any case should at least have a link to the file here.

Okay it works here but not on my site with 7.5b2
Attachments
calendar.GIF

Last edited by Ruben; 02/22/2009 4:32 PM. Reason: added test result comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Originally Posted by Ruben
No errors on my side. Server or control panel.
Just does not work.
Look for error_log in your ubb directory.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Huh?
I Have error logs turned on in the control panel of ubb. Even just tested for logs it works.
Also checked in the site control panel for errors.

Okay finally found it.
Same error as you posted.

For my info what creates the file never seen it before? But then I am new to apache.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
For now I just commented out the new portion.
just below:
Quote
$file = rawurlencode($file);
and before
Quote
// Display inline

And it works again.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2007
Posts: 18
J
stranger
stranger
J Offline
Joined: Jun 2007
Posts: 18
I see exactly the same symptoms and the same error in the error_log file.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Looks like not everyone has this function available, so going to have to alter this a bit so it doesn't request the headers when the function isn't available. Will have this fixed for the final release.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Havenofsobriety, rootman), 624 guests, and 106 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)