dw250100785 / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Error msgs #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Either log or give meaningful error messages when update preview fails.
It is not possible to debug at the moment.

Original issue reported on code.google.com by zetapri...@gmail.com on 19 Dec 2009 at 11:54

GoogleCodeExporter commented 9 years ago

Original comment by Anatoly....@gmail.com on 5 Jan 2010 at 2:32

GoogleCodeExporter commented 9 years ago
All interation with zp is logged in magento log file.

Possible error situations are in ajax request and in requests to.

In case ajax request errors you get "Can't get preview image: <textStatus>" 
message.

In case errors in requests to zp you get "There was an error in generating or
receiving preview image. Please try again" message.

Original comment by Anatoly....@gmail.com on 7 Jan 2010 at 9:01

GoogleCodeExporter commented 9 years ago
How to test:
1. pick a template, make sure preview updates work
2. re-upload the same template with some sort of an error to make it fail, same 
fields
You should see "There was an error in generating or
receiving preview image. Please try again." 

3. Restore the template
4. Make sure it generates previews correctly
5. Change the API key.
You should see "Can't get preview image: <textStatus>" message.

Original comment by zetapri...@gmail.com on 7 Jan 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Code is in 1.6.0.0beta2 (installed on magedev).

Original comment by Anatoly....@gmail.com on 8 Jan 2010 at 9:52

GoogleCodeExporter commented 9 years ago
Wrong API err msg:
There was an error in generating or receiving preview image. Please try again.
Not sure if the messages are reversed, I thought I was suppose to get the other 
one
for the wrong API (Can't get preview image: <textStatus>).

Failed preview update:
Still need to test the err msg after uploading a template that fails on preview 
update.

Original comment by agur...@gmail.com on 10 Jan 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Tested a template that fails on preview generation. 
http://www.zetaprints.com/magedev/index.php/realestate-signs/century21-yard-sign
s/century21-horizontal-sign-02-2-photos-24-x-19.html?personalization=1
Note. Don't provide text for the "Web address" field to get the err.
Got the same message:
There was an error in generating or receiving preview image. Please try again.

I think it works fine, although I should note that in both cases I got the same
message which is different than what I was suppose to get:

Preview update err:
There was an error in generating or receiving preview image. Please try again.

Wrong API err:
Can't get preview image: <textStatus>

Original comment by agur...@gmail.com on 10 Jan 2010 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 13 Jan 2010 at 11:30