Author Topic: Problem after update php to 5.3.3 unexpected T_CONSTANT_ENCAPSED_STRING  (Read 8497 times)

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
After the update from php 5.1 to 5.3.3 my website doesn't work.

I have this error in the error log.

Quote
[Mon Oct 03 04:03:25 2011] [error] [client 65.99.235.248] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in .../httpdocs/tophits3.php on line 29

I need help to fix it, I don't know where is the error to fix.
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Rembrandt

  • Guest
Re: Problem after update php to 5.3.3 unexpected T_CONSTANT_ENCAPSED_STRING
« Reply #1 on: October 03, 2011, 02:39:18 PM »
i think you have a problem with single and double quotes

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem after update php to 5.3.3 unexpected T_CONSTANT_ENCAPSED_STRING
« Reply #2 on: October 03, 2011, 02:53:24 PM »
You forgot attach the file (tophits3.php) or show first 50 lines from that file.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Problem after update php to 5.3.3 unexpected T_CONSTANT_ENCAPSED_STRING
« Reply #3 on: October 03, 2011, 07:51:44 PM »
wow  You are right Rembrandt. It was that. A bad double quote with concatenation.
But I don't understand, why this error has happened after the installation of php 5.3. I have not changed tophits3.php for years. Now I have fear that it happens again in another php file and in another page, with no notice of me.
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more