Jump to content

Can't attach images to Categories or upload jpg's to Products


Recommended Posts

Hi Guys

 

This issue has just started to occur and I don't know why or how to fix it.

 

When I try to attach an image to a Product and press "upload", I get the following error:

 

crankshaft001.jpg : Image format not recognized, allowed formats are: .gif, .jpg, .png

 

The file is definitely a jpg file.

 

The issue I have with Category images is that I go through the correct steps to attach the image including saving the record but the image is NOT being attached. There is no error message.

 

I have successfully created numerous product and category records previously and attached images....

 

What's going on?

 

I have also "Regenerated Thumbnails"....

 

I'm using 1.6.0.6.

 

Thanks for your help.

 

Regards

Greg

Link to comment
Share on other sites

I have exactly the same issue, seems to be some issues with the php files in 1.6 I googled the error message and presta shop and there are some prototype php files that you can patch, and one edited by a user, When applied I get further than the cannont upload error and now get

 

adt.jpg : Error while uploading image; please change your server's settings. (Error code: Missing a temporary folder)

 

I found another suggesting changing the settings to 777 for the images directory and another to create a tmp folder in a php file, tried all these but not further forward..

Link to comment
Share on other sites

Hmmm. This is strange.

 

It was working ok and then stopped working. I'll have another look at what you are referring to.

 

If got a funny feeling it may related to something at my hosting end.

 

I'll keep updating this thread.

Link to comment
Share on other sites

After some more testing it appears that if I create a new Category and attach a JPG, sometimes it works but displays a different jpg and sometimes it works and doesn't display anything.

 

When I say "it works", I mean that it does not display an error message.

 

If I try to upload a thumbnail to a Category, I get the same error message as when I upload an image to a Product record (Image format not recognized, allowed formats are: .gif, .jpg, .png)

 

I cannot upload jpg's to a Product record without getting the following error:

 

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

 

Update:

 

I have also given the folders the highest permissions possible and the error still happens....I'm getting more convinced that its something on the Host side...

Edited by lateral (see edit history)
Link to comment
Share on other sites

Does anyone have a solution to this issue????

 

I have checked with my Host provider and everything is fine at their end.

 

If I can't solve this issue I can't use Prestashop therefore I will need to find another Ecommerce solution........

 

Regards

Greg

Link to comment
Share on other sites

I decided to turn on the Console of the browser I'm using, Firefox.

 

I have no clue if any of this is meaningful but it may help one of the experts to determine what's happening:

 

POST http://www.greghanley.com.au/prestashop/admin123/index.php [HTTP/1.1 200 OK 844ms]
POST http://www.greghanley.com.au/prestashop/admin123/index.php [HTTP/1.1 302 Moved Temporarily 781ms]
GET http://www.greghanley.com.au/prestashop/admin123/index.php [HTTP/1.1 200 OK 531ms]
Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. requestNotifier.js:63
Unknown property '-moz-osx-font-smoothing'.  Declaration dropped. admin-theme.css:683
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:730
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:732
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:734
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:736
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:738
Unknown pseudo-class or pseudo-element '-webkit-inner-spin-button'.  Ruleset ignored due to bad selector. admin-theme.css:1552
Unknown pseudo-class or pseudo-element '-webkit-search-cancel-button'.  Ruleset ignored due to bad selector. admin-theme.css:1556
Expected declaration but found '@-webkit-keyframes'.  Skipped to next declaration. admin-theme.css:1570
Expected declaration but found '@keyframes'.  Skipped to next declaration. admin-theme.css:1572
Expected declaration but found '@-ms-viewport'.  Skipped to next declaration. admin-theme.css:1574
Expected color but found 'auto'.  Expected color but found '-webkit-focus-ring-color'.  Expected end of value but found '-webkit-focus-ring-color'.  Error in parsing value for 'outline'.  Declaration dropped. admin-theme.css:1583
Expected end of value but found '\9 '.  Error in parsing value for 'margin-top'.  Declaration dropped. admin-theme.css:1924
Expected color but found 'auto'.  Expected color but found '-webkit-focus-ring-color'.  Expected end of value but found '-webkit-focus-ring-color'.  Error in parsing value for 'outline'.  Declaration dropped. admin-theme.css:1928
Unknown pseudo-class or pseudo-element '-ms-input-placeholder'.  Ruleset ignored due to bad selector. admin-theme.css:1933
Unknown pseudo-class or pseudo-element '-webkit-input-placeholder'.  Ruleset ignored due to bad selector. admin-theme.css:1934
Unknown property 'user-select'.  Declaration dropped. admin-theme.css:1988
Expected color but found 'auto'.  Expected color but found '-webkit-focus-ring-color'.  Expected end of value but found '-webkit-focus-ring-color'.  Error in parsing value for 'outline'.  Declaration dropped. admin-theme.css:1989
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:1992
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2061
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2340
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2343
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2345
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2347
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2349
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:2350
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2456
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2457
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2459
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2460
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2525
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2526
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2561
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2562
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2562
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:2563
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2563
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:2564
Expected end of value but found '\9 '.  Error in parsing value for 'background-color'.  Declaration dropped. admin-theme.css:2573
Error in parsing value for 'color'.  Declaration dropped. admin-theme.css:2597
Expected declaration but found '@-webkit-keyframes'.  Skipped to next declaration. admin-theme.css:2819
Expected declaration but found '@-webkit-keyframes'.  Skipped to next declaration. admin-theme.css:2821
Expected declaration but found '@-webkit-keyframes'.  Skipped to next declaration. admin-theme.css:2823
Expected declaration but found '@-moz-keyframes'.  Skipped to next declaration. admin-theme.css:2825
Expected declaration but found '@-ms-keyframes'.  Skipped to next declaration. admin-theme.css:2827
Expected declaration but found '@-o-keyframes'.  Skipped to next declaration. admin-theme.css:2829
Expected declaration but found '@keyframes'.  Skipped to next declaration. admin-theme.css:2831
Expected end of value but found '0'.  Error in parsing value for 'border-spacing'.  Declaration dropped. admin-theme.css:2881
Error in parsing value for 'word-wrap'.  Declaration dropped. admin-theme.css:2883
Error in parsing value for 'word-wrap'.  Declaration dropped. admin-theme.css:2890
Expected color but found 'none'.  Error in parsing value for 'background-color'.  Declaration dropped. admin-theme.css:2935
Expected media feature name but found '-webkit-min-device-pixel-ratio'. admin-theme.css:3130
Error in parsing value for 'font-variant'.  Declaration dropped. admin-theme.css:3183
Error in parsing value for 'animation-direction'.  Declaration dropped. admin-theme.css:3224
Error in parsing value for 'background'.  Declaration dropped. admin-theme.css:3230
Expected color but found 'top'.  Error in parsing value for 'background'.  Declaration dropped. admin-theme.css:3230
Error in parsing value for 'box-shadow'.  Declaration dropped. admin-theme.css:3276
Error in parsing value for 'box-shadow'.  Declaration dropped. admin-theme.css:3328
Unknown property 'user-select'.  Declaration dropped. admin-theme.css:3356
Unknown property '-moz-box-shadow'.  Declaration dropped. admin-theme.css:3393
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3404
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3404
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3412
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3412
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3423
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3435
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3435
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3436
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3436
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3472
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3504
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3506
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3506
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3515
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3515
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3525
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3526
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3530
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3546
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3573
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3579
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3579
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3581
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3585
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3600
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3604
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3617
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3631
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3635
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3651
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3654
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3657
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3685
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3716
Expected declaration but found '*'.  Skipped to next declaration. admin-theme.css:3723
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3733
Unknown property 'zoom'.  Declaration dropped. admin-theme.css:3733
Error in parsing value for 'height'.  Declaration dropped. admin-theme.css:3892
Unknown pseudo-class or pseudo-element 'span'.  Ruleset ignored due to bad selector. admin-theme.css:3899
Unknown pseudo-class or pseudo-element 'abbr'.  Ruleset ignored due to bad selector. admin-theme.css:3900
Unknown pseudo-class or pseudo-element 'abbr'.  Ruleset ignored due to bad selector. admin-theme.css:3901
Unknown property '-moz-background-clip'.  Declaration dropped. admin-theme.css:3909
Unknown property '-moz-background-clip'.  Declaration dropped. admin-theme.css:3918
Error in parsing value for 'background-image'.  Declaration dropped. admin-theme.css:3918
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. admin-theme.css:3918
Error in parsing value for 'background'.  Declaration dropped. admin-theme.css:4057
Error in parsing value for 'background'.  Declaration dropped. admin-theme.css:4093
Expected color but found 'none'.  Error in parsing value for 'background-color'.  Declaration dropped. admin-theme.css:4109
Unknown property '-moz-border-radius'.  Declaration dropped. gamification.css:147
Unknown property '-moz-border-radius'.  Declaration dropped. gamification.css:160
Unknown property '-moz-border-radius'.  Declaration dropped. gamification.css:173
Unknown property '-moz-border-radius'.  Declaration dropped. gamification.css:192
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.fancybox.css:33
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.fancybox.css:43
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.fancybox.css:231
Expected media feature name but found '-webkit-min-device-pixel-ratio'. jquery.fancybox.css:261
Expected media feature name but found 'min-device-pixel-ratio'. jquery.fancybox.css:263
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.alerts.css:9
Unknown property 'zoom'.  Declaration dropped. jquery.chosen.css:6
Expected declaration but found '*'.  Skipped to next declaration. jquery.chosen.css:7
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:17
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:27
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:28
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:30
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:31
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:32
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.chosen.css:34
Unknown property '-moz-background-clip'.  Declaration dropped. jquery.chosen.css:36
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:41
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:98
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:99
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:101
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:102
Expected color but found 'top'.  Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:103
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.chosen.css:113
Unknown property '-moz-background-clip'.  Declaration dropped. jquery.chosen.css:115
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:129
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:130
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:132
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:133
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:134
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:164
Unknown property '-moz-border-radius'.  Declaration dropped. jquery.chosen.css:173
Unknown property '-moz-background-clip'.  Declaration dropped. jquery.chosen.css:175
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. jquery.chosen.css:179
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:180
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:181
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:183
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:184
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:185
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:187
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. jquery.chosen.css:244
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:245
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:246
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:248
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:249
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:250
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:303
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:311
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. jquery.chosen.css:315
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:316
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:317
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:319
Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:320
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. jquery.chosen.css:321
Unknown property '-moz-border-radius-bottomleft'.  Declaration dropped. jquery.chosen.css:324
Unknown property '-moz-border-radius-bottomright'.  Declaration dropped. jquery.chosen.css:325
Unknown property '-moz-box-shadow'.  Declaration dropped. jquery.chosen.css:338
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:379
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:380
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:382
Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:383
Expected color but found 'top'.  Error in parsing value for 'background'.  Declaration dropped. jquery.chosen.css:384
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.core.css:56
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.theme.css:138
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.theme.css:145
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.theme.css:149
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.theme.css:397
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. jquery.ui.theme.css:404
Unknown property '-moz-box-shadow'.  Declaration dropped. nv.d3.css:17
Unknown property '-moz-border-radius'.  Declaration dropped. nv.d3.css:22
Unknown property 'user-select'.  Declaration dropped. nv.d3.css:49
Unknown property '-moz-border-radius'.  Declaration dropped. nv.d3.css:81
Unknown property 'user-select'.  Declaration dropped. nv.d3.css:152
Unknown property 'zfill'.  Declaration dropped. nv.d3.css:268
Unknown property 'zfill'.  Declaration dropped. nv.d3.css:272
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create d3.v3.min.js:3
POST http://www.greghanley.com.au/prestashop/admin123/index.php [HTTP/1.1 200 OK 625ms]
POST http://www.greghanley.com.au/prestashop/admin123/ajax.php [HTTP/1.1 200 OK 1515ms]
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. enquire.min.js
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. admin-theme.js
GET https://gamification.prestashop.com/api/getAdviceImg/324.png [HTTP/1.1 200 OK 1531ms]
GET http://gamification.prestashop.com/api/getBadgeImg/88/1.png [HTTP/1.1 200 OK 844ms]
GET http://gamification.prestashop.com/api/getBadgeImg/89/0.png [HTTP/1.1 200 OK 953ms]
 

Link to comment
Share on other sites

  • 3 weeks later...

I'm having this same issue, someone PLEASE PLEASE answer this...  I could upload pictures to my products using prestashop 1.3 but after I updated prestashop to 1.6 I could no longer do it.

 

I REALLY need to upload more products! PLEASE HELP!!!

 

(I'm using godaddy for hosting by the way, if it is a hosting problem...)

Edited by Copa85 (see edit history)
  • Like 1
Link to comment
Share on other sites

Hi mate. I don't know why but I installed a trial version of Store Commander to see if I could add images using another tool other than the Prestashop back office and it worked! I could add images via both Store Cimmander and the back office. Try it and let me know.

Link to comment
Share on other sites

  • 1 month later...

Well still no solution I see. I have tried every single "fix" listed here or elsewhere. Nothing works. It appears every release has had this same issue. I wonder if some of the dev's made the wrong person mad and this is there revenge.

 

P.S. to Lateral I could not find Store Commander. Were you talking about Store Manager? Either way The trial expires and I am not willing to pay to have access to basic functionality of an open source program.

Edited by alienhead (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...