0
Welcome Guest! Login
0 items Join Now

PHP 5.2.14 and I have a "Parse error: syntax error" ??

  • PHP 5.2.14 and I have a "Parse error: syntax error" ??

    Posted 14 years 4 months ago
    • Hello.

      Today I have uploaded a rocketlauncher somaxion package on a website I'm workin' on and after installation I've got this error:
      Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/htdocs/www.marianobrusca.it/home/components/com_gantry/core/gantry.class.php on line 31

      I also searched for similar issues on the forum and everytime someone got this he had PHP < 5.2 but I have 5.2.14 on my server...

      What can I do?? :)

      Thanks!
    • <gl web agency /> | Web Design & SEO Palermo
  • Re: PHP 5.2.14 and I have a "Parse error: syntax error" ??

    Posted 14 years 4 months ago
  • Re: PHP 5.2.14 and I have a "Parse error: syntax error" ??

    Posted 14 years 4 months ago
    • I encountered a similar problem with the JaguarPC provider. My backend was set up to run on Default, which is PHP 4. I had to change it to read .php as PHP 5.

      So a heads up for anyone getting this problem... check what PHP you are running.
  • Re: PHP 5.2.14 and I have a "Parse error: syntax error" ??

    Posted 14 years 3 months ago
    • You can also put following info in your .htaccess file

      SetEnv PHP_VER 5

Time to create page: 0.092 seconds