Problem adding picture to product

tarzan

No avatar

2005-06-22 17:51

Adding a picture to a product and hitting the 'save'-button results this messages:

Warning: Unable to open 'files/products/produkt_270602_w' for reading: No such file or directory in /htdocs/shop/libraries/FotoJobs.php on line 255

Warning: Unable to access files/products/produkt_270602_w_m.jpg_backup.jpg in /htdocs/shop/libraries/FotoJobs.php on line 256

Warning: getimagesize: Unable to open 'files/products/produkt_270602_w_m.jpg_backup.jpg' for reading. in /htdocs/shop/libraries/FotoJobs.php on line 256



the image is uploaded and stored in /files/products/
the file /db/product_files.php contains this line for the new product:

1$1$produkt_270602_w^@jpg$test$1$

and this is the problem, the separator '^@' for the filenameextension is the character NULL. so i get the warnings from the copy-function, because the file 'produkt_270602_w' does not exist. adding some text to the variable containing the filename works fine, even there is an NULL character in there.

so my question, which function manipulates the filename this strange way?

tarzan

No avatar

2005-06-22 21:57

Found the problem by myself:

there was a bug in the php-version of my isp.
php-version was 4.1.2

php-version now 4.3.9

and it runs without problems

Extreme Ninja

No avatar

2005-09-25 15:03

Ok...

I upload images with product.

Following errors appear.

#Warning: Unable to open 'files/products/wavescooter_1[4]' for reading: No such file or directory in /home/httpd/vhosts/extremeninja.co.uk/httpdocs/x-shop/libraries/FotoJobs.php on line 254

Warning: getimagesize: Unable to open 'files/products/wavescooter_1[4]_m.gif_backup.jpg' for reading. in /home/httpd/vhosts/extremeninja.co.uk/httpdocs/x-shop/libraries/FotoJobs.php on line 255

Then goes on to say Upload Successful.

Product photos appear and upload successfully into /files/products/

...brilliant.

But photos not shown in main site with product description.

Am I doing something wrong? What do i need to do to ensure that these images are visible in the front-end of my site?

Any help apreciated.

Thanks

Pete

extremeninja

Si

No avatar

2005-09-27 11:22

I get the same problem

Extreme Ninja

No avatar

2005-10-03 18:46

Sorted. I contacted my ISP who told me that my server did not have GD2. They moved me to a different server and this consequently solved all of my problems.

www.extremeninja.co.uk

extremeninja

Back to top
about us | contact