Forum Moderators: coopster

Message Too Old, No Replies

Parse error: parse error, unexpected $ in ...

Can a script fail after be working fine without change?

         

mikel4u

3:36 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Hi guys,
My script was working fine and suddenly without a change in the script i get that error msg i don't know what could be the reason or what i need to do?

Thanks in advanced.

storevalley

3:53 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Maybe some kind of hosting problem? Contact your hosting company and see whether your server is having any problems or (eek!) they have upgraded PHP on the server without telling you.

mikel4u

4:07 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Thanks storevalley,

but I already check that my server is up an running and the php version is the same, any other clue?.

regards.

jatar_k

4:51 pm on Jan 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld mikel4u,

did you look through the code? What line of code is giving you the error message?

mikel4u

5:00 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



i'm glad you acept me jatar_k, yes i look through the code it seems with no change, the error is in the last line, :(

Regards.

jatar_k

5:42 pm on Jan 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



last line errors often mean unmatched braces or parentheses.

dreamcatcher

6:12 pm on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Its almost impossible for a script to give you this error on one server and not another unless you have altered the code. Are you sure you did not make any alterations?

As jatar_k mentions, this error is most probably a missing brace. Check all your opening braces to make sure they are closed properly. Some text editors have a brace matching function.

Good luck.

storevalley

10:21 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



unless you have altered the code

It could also be that the script (or a necessary resource) has been altered in some other way. Other possibilities might be file corruption or a change of permissions ...?

mikel4u ... if you have a backup of the script and any others it depends on, perhaps you could pull them back from your server and compare them with your original copies?

dreamcatcher

12:17 am on Jan 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It could also be that the script (or a necessary resource) has been altered in some other way. Other possibilities might be file corruption or a change of permissions ...?

That is a possible solution, but for a brace to go missing its more likely to be a change of code. Thats if that is the problem.

storevalley

9:24 am on Jan 7, 2005 (gmt 0)

10+ Year Member



but for a brace to go missing its more likely to be a change of code

That would have been my first thought if the original poster hadn't said ...

suddenly without a change in the script

mikel4u

4:40 pm on Jan 7, 2005 (gmt 0)

10+ Year Member



thanks guys for the help, i change the script for an early version for now tili review the entire script for a missing brace

Regards