Warning: move_uploaded_file(files/img/jbnmedialogo.jpg): failed to open stream: Permission denied in /home/johan/public_html/test/shop/libraries/FileJobs.php on line 186
Warning: move_uploaded_file(): Unable to move '/tmp/phpul4k1W' to 'files/img/jbnmedialogo.jpg' in /home/johan/public_html/test/shop/libraries/FileJobs.php on line 186
Warning: getimagesize(): Read error! in /home/johan/public_html/test/shop/libraries/FotoJobs.php on line 202
Warning: unlink(files/img/): Is a directory in /home/johan/public_html/test/shop/core/preferences.php on line 120
//Johan
Jadzia
2005-10-12 04:34
I have a similar problem except that when I add a product I can add images without problems. If I try to add pictures to products that already exist nothing shows up - no error messages, no image showing. I don't want to have to remove all products and redo them!
Jadzia
esu
2005-11-08 12:42
Warning: imagejpeg(): Unable to access files/products/AberlouFlasche._m.jpg in /mnt/be1/02/288/00000026/htdocs/php1/shop/libraries/FotoJobs.php on line 309
Warning: imagejpeg(): Invalid filename 'files/products/AberlouFlasche._m.jpg' in /mnt/be1/02/288/00000026/htdocs/php1/shop/libraries/FotoJobs.php on line 309
esu
2005-11-08 15:52
Hi, I will explain the error above, Whenever i post a new product the image is uploaded but i get that error message. The QC version is the latest (Hard modified) i tried with diffrent extention files (*.gif, *.jpeg, *.jpg) with sizes from 10 kb to 80 kb max. PHP Version is 4.4.1 Build Date Nov 1 2005 15:57:43 , GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled ....and i still have that errors. lines are: else { imagedestroy( $mImgCreate ); switch( $sImgExt ) { case 'jpg': $Image = ImageJPEG( $mImgDest, $sImgDestDir.$sImgOutput, $iQuality ); break; case 'jpeg': $Image = ImageJPEG( $mImgDest, $sImgDestDir.$sImgOutput, $iQuality ); break; case 'png': $Image = ImagePNG( $mImgDest, $sImgDestDir.$sImgOutput ); break; case 'gif': $Image = ImagePNG( $mImgDest, $sImgDestDir.$sImgOutput, $iQuality ); } if ( $Image ) { imagedestroy( $mImgDest ); return $sImgOutput; } imagedestroy( $mImgDest ); } return null; from 304 to 325 I really don`t know hot to fix Warning: imagejpeg(): Unable to access files/products/AberlouFlasche._m.jpg in /mnt/be1/02/288/00000026/htdocs/php1/shop/libraries/FotoJobs.php on line 309
Warning: imagejpeg(): Invalid filename 'files/products/AberlouFlasche._m.jpg' in /mnt/be1/02/288/00000026/htdocs/php1/shop/libraries/FotoJobs.php on line 309 ..... i`ve read this forum twice...checked GD checked php version removed lines described by Daniele.....followed install orders..chmoded my directories to 777 ... With the first 6 photos i had no problem...then i paused uploading 3-4 days (did`nt worked at the shop at all) and then this error... Can u help me somehow?
Philip
2005-12-08 14:31
Hello i also have problems when uploading new pictures, both to products and to catagories:
http://atv-direct.dk/phpinfo.php
Does this mean i dont have GD enabled on my remote server?
Acidbarrel
2005-12-08 19:56
Philip! You have safe_mode ON ;) It should be OFF
..
Philip
2005-12-08 22:10
Ok, how do i do that? :)
juan
2005-12-11 11:35
Exactly the same problem happens to me. No solution found.
HELP!!!
juan
2005-12-11 11:39
Same Problem like esu!!! Upload image is OK. But NO thumbnail is created. This happend "suddenly". I did not change anything!!!!!!!
quer
2005-12-12 14:14
think i'm hosting like esu on a "strato-server". --> same problem! --> no solution because there is no way to turn safe_mode OFF (one config for all users)
is there a solution in changing "FotoJobs.php"? any code available?
juan
2005-12-15 06:28
Strato updated php on 1.11.05 (phpinfo.php). So thats where our (my) problem is.
perhaps register globals?
Looking for a solution.
juan
2005-12-16 06:18
OK. Problem detected. If you have php 4.4.1, then you have this problem. Its a bug in php 4.4.1 in imagejpeg() Result: no more thumbnails created!!!!
Solution (in german): http://www.miraculous.de/wissenswertes.php
quer
2005-12-16 21:43
thanx juan for your solution. great - it works :-))
BTW: only "touch($sImgDestDir);" doesn't work in my case
i had to change in FotoJobs.php: 306 imagedestroy( $mImgCreate ); 307 switch( $sImgExt ) {
[QUOTE=Johnjee]I think I have the solution, after many many many trials and even more errors or blanks. - add a directory "products" to the directory files - don't forget to CHMOD to 777
problem solved...........( for me it works) [/QUOTE] For me it works too. :)
my problem was: tmp directory had no rights to save
simpledosage
2006-03-08 06:42
I have found a similar error in /Apache2/logs/error.log PHP Parse error: parse error, unexpected '[' in C:\\www\\webroot\\shop\\config\\general.php on line 44, referer: mydomain.com/shop/admin.php?p=otherConfig&sOption=save Now here is a wierd thing. I used the word 'true' in the name, description, keywords and image. Man it did not like parsing that. It would strip the " or ' from the string container and assume it was a user variable and crash the program after save. I fixed those instances of 'true ' (at the beginning of the line with a trailing space as shown) and it loaded back up just fine. However when I attempt to reload the logo file it places this in the general.php line 44: $config['logo_img'] = truepath.jpg;
I forced the file to look like this: line 44: $config['logo_img'] = "truepath.jpg"; and it worked.
I believe that Daniele is on the right track about that code, but removing it is not the answer. I believe what it is doing is: Capturing the filename Capturing the filetype adding to the filename passing on its upload/change proceed, correct suffix to the save function What it is not doing is writing the " to the beginning and end of the string containers in general.php
This is my guess. Tight program overall though people.
simpledosage - to fix this problem edit core/preferences.php in saveConfig( ) function and change
checkCorrect( $sValue, 'true|false' ) == true
to
preg_match( '/^(true|false)$/', $sValue ) == true
eztrumpet
2006-03-08 21:57
Thanks to Jonjee I have php 4.3.11 & GD 2.0.28 after I add a directory "products" in the directory "files" and chmod to 777 Problem simply solved. I hope this can be share to somebody who haven't success. Thanks to Johnjee again!
eztrumpet
2006-03-08 22:14
I find a important thing it might be forbidden when I use FTP software like Filezilla These 2 files "products" and "categories" won't upload into diretory files" If anybody occur this situation please creat these 2 files manually in your FTP server. Hope could help somebody!