Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jul 2016
    Location
    TOLEDO ESPAŅA
    Posts
    11
    Plugin Contributions
    0

    Default unexpected T_STRING in class.zcConfigureFileReader.php

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/julianoliva/www/carro/zc_install/includes/classes/class.zcConfigureFileReader.php on line 20

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,440
    Plugin Contributions
    9

    Default Re: Zen-cart v1.5.5a-05052016

    Quote Originally Posted by Julian Oliva CB View Post
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/julianoliva/www/carro/zc_install/includes/classes/class.zcConfigureFileReader.php on line 20
    First time I hear/see that happening, did more than 20 (most likely more) 1.5.5a installs since release.

    You may want to download a fresh copy of the 1.5.5a file system and try your installation with that new / fresh file set.

  3. #3
    Join Date
    Jul 2016
    Location
    TOLEDO ESPAŅA
    Posts
    11
    Plugin Contributions
    0

    Default Re: Zen-cart v1.5.5a-05052016

    itīs the third time I try, and all the time itīs the same error

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    6,979
    Plugin Contributions
    63

    Default Re: Zen-cart v1.5.5a-05052016

    What version of PHP are you running? It "sounds like" you're running a variant of PHP 4.x.
    Last edited by lat9; 5 Jul 2016 at 02:56 PM. Reason: Additional information

  5. #5
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: Zen-cart v1.5.5a-05052016

    Agreed. It's rejecting the PHP keyword "protected", which was added in PHP 5. So that means the site must be running an ancient version of PHP.
    You'll need a modern version of PHP (5.6 is recommended) to use Zen Cart, or any other modern system for that matter.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jul 2016
    Location
    TOLEDO ESPAŅA
    Posts
    11
    Plugin Contributions
    0

    Default Re: Zen-cart v1.5.5a-05052016

    PHP 5.6.x php-cgi is the version

  7. #7
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: unexpected T_STRING in class.zcConfigureFileReader.php

    There's nothing wrong with the syntax in the file. See line 20 here: https://github.com/zencart/zencart/b...FileReader.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: unexpected T_STRING in class.zcConfigureFileReader.php

    Quote Originally Posted by Julian Oliva CB View Post
    PHP 5.6.x php-cgi is the version
    I'm pretty sure that's not what your Zen Cart folder is using. Otherwise you wouldn't get the message you're reporting.

    To find out what specific PHP setup is actually being used, edit your /zc_install/index.php file, and on line 2 add a new line:
    Code:
    phpinfo();die();
    Then run zc_install again, and it should report a ton of info about your server.

    Who's your hosting company?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jul 2016
    Location
    TOLEDO ESPAŅA
    Posts
    11
    Plugin Contributions
    0

    Default Re: unexpected T_STRING in class.zcConfigureFileReader.php

    I see, The syntax are ok, but......

  10. #10
    Join Date
    Jul 2016
    Location
    TOLEDO ESPAŅA
    Posts
    11
    Plugin Contributions
    0

    Default Re: unexpected T_STRING in class.zcConfigureFileReader.php

    PHP Version 5.6.16

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. PHP Parse error: syntax error, unexpected T_STRING
    By derek53 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 08:09 PM
  2. Replies: 20
    Last Post: 21 Nov 2010, 02:48 AM
  3. syntax error, unexpected T_STRING in ipn_main_handler.php
    By saplanet in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 3 Oct 2010, 01:52 AM
  4. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM
  5. unexpected T_STRING error in create_account.php
    By LadyHLG in forum General Questions
    Replies: 0
    Last Post: 13 Mar 2007, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR