meeech / shopify.tmbundle

A bundle for interacting with Shopify Theme Assets.
http://meeech.github.com/shopify.tmbundle/
136 stars 31 forks source link

Trying to upload an asset works in one shop but not another. #59

Open slate71 opened 12 years ago

slate71 commented 12 years ago

I'm trying to send selected assets which works fine in one shop but not another. Config seems to be set up correctly. The shop in question will allow me to send asset to shopify but will not let me send selected assets. I instead get this error.

Warning: finfo_file(/Volumes/IOMEGA HDD/Web Sites/Amanda'\''s Shop/Royale Theme (TM)/assets/baby_knits.jpeg): failed to open stream: No such file or directory in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php on line 14 Warning: file_get_contents(/Volumes/IOMEGA HDD/Web Sites/Amanda'\''s Shop/Royale Theme (TM)/assets/baby_knits.jpeg): failed to open stream: No such file or directory in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/assets/upload_multi.php on line 23 Sending asset: /Volumes/IOMEGA HDD/Web Sites/Amanda'\''s Shop/Royale Theme (TM)/assets/baby_knits.jpeg... *Error: Could not upload /Volumes/IOMEGA HDD/Web Sites/Amanda'\''s Shop/Royale Theme (TM)/assets/baby_knits.jpeg to royale. Warning: SimpleXMLElement::construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php on line 45 Warning: SimpleXMLElement::construct(): 4 in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php on line 45 Warning: SimpleXMLElement::construct(): ^ in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php on line 45 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php:45 Stack trace: #0 /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php(45): SimpleXMLElement->construct('4') #1 /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/assets/upload_multi.php(41): output_error('404', Array) #2 /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/runner.php(16): include('/Users/lukaslar...') #3 {main} thrown in /Users/lukaslars771/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/functions.php on line 45

meeech commented 12 years ago

you mention it works fine in one shop, but not another. Are you trying to upload the same assets to the 2 different shops? or is it different assets each shop?

slate71 commented 12 years ago

Each shop is set up as its own project and has separate assets.
However, I did test uploading the same jpeg file to the assets folder in each shop. In the 'broken' shop the jpeg will not load but it will load in the other shop. Trying to upload changes I made to an asset with command+u works fine in both shops. The problem only occurs when I use shift+command+u or when I attempt to upload a selected asset to the broken shop.

On Thu Aug 9 18:59:16 2012, mitchell amihod wrote:

you mention it works fine in one shop, but not another. Are you trying to upload the same assets to the 2 different shops? or is it different assets each shop?

— Reply to this email directly or view it on GitHub https://github.com/meeech/shopify.tmbundle/issues/59#issuecomment-7632392.

meeech commented 12 years ago

can you humour me, and remove the ' from the containing folder Amanda's Shop?

slate71 commented 12 years ago

That worked! Thank you!!

On Thu Aug 9 19:28:15 2012, mitchell amihod wrote:

can you humour me, and remove the ' from the containing folder Amanda's Shop?

— Reply to this email directly or view it on GitHub https://github.com/meeech/shopify.tmbundle/issues/59#issuecomment-7632739.

meeech commented 12 years ago

Great. I'm gonna leave this ticket open:

todo: Look at escaping code.