Discussion
Error in fb, no pics(back to index)Hello,
since yesterday I got the following error-message from fb when I try to upload pics:
Warning: imagejpeg(): Unable to access thumbs/Platte2c.jpg in ... on line 79
Warning: imagejpeg(): Invalid filename 'thumbs/Platte2c.jpg' in ... on line 79
Warning: imagejpeg(): Unable to access thumbs/Platte2c.jpg in ... on line 79
Warning: imagejpeg(): Invalid filename 'thumbs/Platte2c.jpg' in ... on line 79
Warning: Cannot modify header information - headers already sent by (output started at .../index.php:79) in .../fb_mimetype.php on line 58
Warning: Cannot modify header information - headers already sent by (output started at .../index.php:79) in .../extensions/fb_mimetype.php on line 59
Pictures and thumbnails weren't shown. Tried to upload via ftp - same error.
Until yesterday everything works fine (ok, strange rss behavior but I can live with it). Were is the mistake?
I'm using newest fb with relaxation template.
Thanx for help.
Jens
posted by
Jens on 3 Nov 05 at 3:55 AM
Sorry, I meant: pics from 2.11. til now weren't shown.
Jens
posted by
Jens on 3 Nov 05 at 3:57 AM
So did you change something yesterday before the crash began?
General attempts could be
1) delete all files in your Thumbs folder (this to do something against the error messages)
2) check if all the folders have writing permissions where needed. See the fb3 installation manual for details
posted by
ikue on 3 Nov 05 at 4:41 AM
Now I found that my provider changed php from 4.3.6 to 4.4.1 I think this is the reason for my trouble.
posted by
Jens on 3 Nov 05 at 8:04 AM
Should not be, but could be... an update of PHP usually includes backward-compatibility.
posted by
ikue on 3 Nov 05 at 8:16 AM
Now I tried this: rename index.php to index.php5 so that I can execute php5 on my server. Seems that I can upload pics now without receiving error messages. But there is no archiv for example. Does anyone know where to make changes in fb to get it to work properly with php5?
posted by
Jens on 3 Nov 05 at 8:45 AM
Got answer from my provider. Seems to be that there is a bug in php 4.4.1. This versions might have problems in processing jpegs together with GD-Libs and command "imagejpeg()" .
Don't know what that mean I know nothing about php.
They recommend to change to php5 via ".htaccess"
Does anyone know how to do that?
Thanx for your help.
Jens
posted by
Jens on 4 Nov 05 at 1:53 PM
The trick about the .htaccess is not that difficult and can be easily found via google, but if I understood you right it doesnt help because the archive disappears? You have to be more precise, otherwise it is difficult to examine the problem.
posted by ikue on 5 Nov 05 at 5:01 AM
The archive disappears only when I rename index.php to index.php5 so that I can use fb with php 5 on the server. It only disappears because new path and folders had do be created. Renaming *.php to *.php5 is not using .htaccess or am I wrong?
Jens
posted by
Jens on 5 Nov 05 at 10:52 AM
No the effective renaming has nothing to do with the .htaccess
htaccess is a file which influences your server behaviour. Meaning, you can teach you server to simply take all .php as .php5 files. Look out in Google for exact details, it is not difficult.
posted by ikue on 5 Nov 05 at 10:59 AM
OK, doing so by using:
AddType x-mapp-php5 .php
I receive a 404 with index.php/post. Without /post the whole fb code is shown. Hmmmm don't know what to do.
posted by
Jens on 7 Nov 05 at 4:20 AM
Look into google for a solution, your problem is a general server issue, not specifically about folderblog.
posted by
ikue on 7 Nov 05 at 4:56 AM
Just a further hint, look into all the files of folderblog and try to change the coded strings like ".php" into ".php5", maybe this solves the issue in a more elegant way.
posted by
ikue on 7 Nov 05 at 5:03 AM
OK, thank you I'll try that.
posted by
Jens on 7 Nov 05 at 5:06 AM
I have not been successful with renaming the coded strings.
It's a known bug in php 4.4.1 and 5.1. There is a workaround using touch($filename); in context with imagejpeg. The only place I found imagejpeg was in fb.php line 79ff
imagejpeg($thumb, $thumb_directory . basename($filename), 95);
if ($altname) {
imagejpeg($thumb, $thumb_directory . $altname, 95);
I tried a few combinations with touch() and this code but wasn't successful too.
Sooner or later this bug will affect a lot of fb-users 'cause php 4.4.1 shuts some critical gaps in former versions so providers are going to update php.
posted by
Jens on 7 Nov 05 at 7:21 AM
Without having direct access to a webserver with these problems it is impossible to do effective debugging.
Until there is really a majority of servers with that buggy php version (what I doubt, as there will be new versions which are bug free) folderblog is unlikely to be modified. Your problem is very specific and I am sure there is a simple solution available on Google.
posted by
ikue on 7 Nov 05 at 8:11 AM
Post a Reply:
(back to index)