Jump to content

Problems with the upload of products image.


Recommended Posts

:snake: :snake: :snake: :snake:

Hi!

I've installed prestashop, and now as i was creating a new product, i had an upload image problem.
I can upload images, but they don´t appear.

When i try to resize the images, it shows an error that says that i don´t have permission, but i already have 777 permissions in the folder.

Can anyone help?

Thanks in advance.

Link to comment
Share on other sites

First - check inside /img folder subfolder permissions. all these subfolders need to have 777 and their subfolders (when You have some) also.

When this doesnt help - then at /config/config.inc.php file.
@ini_set('display_errors', 'off'); - set to 'on'
Lets see, what is the problem.

Link to comment
Share on other sites

4 errors
Cannot write no-picture image to the product images folder. Please check the folder's writing permissions.
Cannot write no-picture image to the category images folder. Please check the folder's writing permissions.
Cannot write no-picture image to the manufacturer images folder. Please check the folder's writing permissions.
An error occured while thumbnails' regeneration.

this is the error while trying to regenarate the thumbnails.

Link to comment
Share on other sites

I found the error, it was my mistake, when i translated prestashop, i also translated the name of the generated images, so when i remembered, i put them back as they were and they appeared...


Sorry.........

I still can regenerate the thumbnails, it's all set to 777 and it gives the permission error..

Thanks for your time...

:cheese:

Link to comment
Share on other sites

I'm struggling to get the connection to PayPal sandbox to work.

Using a test customer who checks out through PayPal, everything seems to work including logging into PayPal and OKing the payment. When I click on the Return to My Store link in the PayPal payment confirmation screen, I get

FA000005 2008-09-12 $ 0.00 PayPal Payment error

on the Order History screen.

Looking at PayPal accounts, the customer is charged the correct amount and the shop is credited the correct amount. I think the problem has to do with the URL PayPal sends back to PS. Looking at revealed code, PayPal is sending back: <form method="get" id+"merchantReturn" name="merchant_return" action="http://www.suncitypeople.com/prestashop/order-confirmation.php?key=e19abunchofcode">

I have error checking set on, but do not find any error logs. I cannot show my work to my customer until this works.

Anybody have any ideas?

tnx/pjs

Link to comment
Share on other sites

Solved! My checkout problems seem to have been solved.

I had the PayPal Sandbox customer's account to enable Payment Review and so a Payment error was being returned to Prestashop as would be expected. Once Payment Review was turned off, everything else fell into place.

Although my problem was self-inflicted, I learned a lot about PayPal and Prestashop over past few hard days.

Thank you developers. If this system makes me some money, I'll be sharing a little of it with you. tnx/pjs

Link to comment
Share on other sites

  • 2 months later...

hello guys!
i get this error while trying to upload product images:

1 error

1. image format not recognized, allowed formats are: .gif, .jpg, .png


i tried many different images and i also have permissions set to 777

i have set the error reporting to on.
where can i see the errors?
thanks

Link to comment
Share on other sites

  • 2 months later...

I did a little easier fix, that should be inserted into the code I suppose.
The problem (for me at least) was that php:s finfo_open function can't find the magic.mime file that
helps out with the file identifying.
To the solution,
I changed the function in image.inc.php to this:

    if (function_exists('finfo_open'))
   {
       $finfo = @finfo_open(FILEINFO_MIME, "/etc/magic.mime");
       $mime_type = @finfo_file($finfo, $file['tmp_name']);
       @finfo_close($finfo);
   }



I added ,"/etc/magic.mime"
You can look for the file in your system with for example the locate-command:
locate magic.mime
or with find as a last resort:
find / -name magic.mime -print |grep magic.mime

// Fredrik

Link to comment
Share on other sites

  • 8 months later...
I did a little easier fix, that should be inserted into the code I suppose.
The problem (for me at least) was that php:s finfo_open function can't find the magic.mime file that
helps out with the file identifying.
To the solution,
I changed the function in image.inc.php to this:
    if (function_exists('finfo_open'))
   {
       $finfo = @finfo_open(FILEINFO_MIME, "/etc/magic.mime");
       $mime_type = @finfo_file($finfo, $file['tmp_name']);
       @finfo_close($finfo);
   }



I added ,"/etc/magic.mime"
You can look for the file in your system with for example the locate-command:
locate magic.mime
or with find as a last resort:
find / -name magic.mime -print |grep magic.mime

// Fredrik


this works gr8
thanks
Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...