meeech / shopify.tmbundle

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

Cannot download full theme due to parse error #44

Closed JungleJap closed 12 years ago

JungleJap commented 12 years ago

Hello there,

I am getting the following error message when I try to download Shopify theme using TextMate. Does anyone know why?

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}'' in /Users/Rio/Library/Application Support/TextMate/Pristine Copy/Bundles/Shopify.tmbundle/Support/config.php on line 51

Thanks in advance,

Rio

meeech commented 12 years ago

What version of php you have installed on your machine? Any idea? you can open terminal and do php -v to check

JungleJap commented 12 years ago

Ah, it still says PHP 4.4.9. I thought I installed 5.x, though... I'll try to install 5.x again and test it. Thanks for telling me where to look.

JungleJap commented 12 years ago

HI there, I checked my machine again and PHP 5.x seems to be installed.

As I use OS 10.4, I installed PHP 5.2.4 on Apache 1.3 using a pacage from www.entropy.ch.

When I do http://127.0.0.1/~Username/phpinfo.php in my browser it says "PHP Version 5.2.4 www.entropy.ch Release 1 (Universal Binary)".

However, when I check it on Terminal as you've suggested it still says PHP 4.4.9. I'm really puzzled...

Do you know why this is?

meeech commented 12 years ago

entropy php package doesn't overwrite the system php. you would have to update your path to include entropy php, or symlink to it i believe. (its been a while since using entropy php package)

JungleJap commented 12 years ago

Oh, I see... I've been looking around the net to find out how to update the path but I cannot find it. Do you know how to do this?

I'm sorry to bother you but I'm a complete newbie when it comes to server setup.

I really appreciate your input.

meeech commented 12 years ago

no problem. Maybe we could move this to email? mitchell.amihod@gmail.com

JungleJap commented 12 years ago

Thanks for all your help. It's working now.

meeech commented 12 years ago

For anyone else having this issue this was the resolution:

We rename your old php, and then symlink in the entropy php.

When you do these commands, you will be prompted for your password

in terminal do:

sudo mv /usr/bin/php /usr/bin/php4

and then:

sudo ln -s /usr/local/php5/bin/php /usr/bin/php

JonGerlach commented 11 years ago

Hi, Meeech.

I was getting an error when tried the Download Full Theme command in TextMate.

Terminal said I was running php5, but in my haste to fix the error I tried your above terminal commands. Now when i php -v in Terminal I get -bash: php: command not found. And, not surprisingly, in my Download Full Theme request returns this error: env: php: No such file or directory

Any idea how I can undo my destruction?

Thanks in advance.

JonGerlach commented 11 years ago

I'm assuming it would be something like this:

sudo ln -f /usr/local/php5/bin/php

sudo mv /usr/bin/php4 /usr/bin/php

But I don't want to test it and do further damage.

meeech commented 11 years ago

hi jon,

i think you can just remove the link you did by

sudo rm /usr/bin/php

and then move your old php back

sudo mv /usr/bin/php4 /usr/bin/php

JonGerlach commented 11 years ago

Thanks, meeech. That did the trick—I'm happy to see my original error is back!

It's saying:

Error: Assets list not returned. Could just be a temporary error. Feel free to try again.

I tested the Url from the error in Safari and it worked, but was first blocked by the "Possible Phishing Site" warning. I'm wondering if this might be the problem?

JonGerlach commented 11 years ago

Solved. It was being blocked by my firewall. Thanks for sharing this great resource and for your help!