Syntax Error on Upgrade

2»

Comments

  • The script checks for PHP5 in the nightly builds. `lib-Imagick.php` should be able to be independently updated from Zenphoto's core files, so you could either try using the nightly or simply replace the aforementioned script.

    It is possible, however, that your server is lying about having PHP5 and Imagick available, in which case only your provider can alleviate this problem.
  • Thank you very much for your quick answer.

    I uploaded the nightly build, but unfortunately got the same error:

    Parse error: syntax error, unexpected ',', expecting '(' in /homez.65/patrician/www/albums/zp-core/lib-Imagick.php on line 92

    Where can I find out whether I am using PHP5?
  • I just re-read the technical details given my provider. It says for my subscription:

    PHP 4 Inclus
    PHP 5 Inclus
    PHP 5.3 Inclus
    PHP 6 Inclus
  • Your provider may give you the option to switch between PHP versions. I would assume that you're currently running PHP4, though your server reports it's running PHP5. I know that my provider allows me to switch PHP versions through CPanel, for instance. If that fails, you will need to contact your provider about the issue.
  • acrylian Administrator, Developer
    Contacting the host is the best (mine allows switching via htaccess, just to add).
  • Thanks for your advice.

    I changed the htaccess, writing SetEnv PHP_VER 5, according the host advice.

    I manage now to open the setup but I get flowing message under "htaccess"

    Error!
    The .htaccess file in your root folder is not the same version as the one distributed with this version of Zenphoto. If you have made changes to .htaccess, merge those changes with the zp-core/htaccess file to produce a new .htaccess file. Click here to have setup replace your .htaccess file with the current version.

    If I click I get again the same error (imagick...).
  • You should do as the error message says. Compare the .htaccess file you have with the template in zp-core. (That one does not have the period in front of the name.) Make sure that all the lines from the "template" are in your new copy.

    If you have never modified the .htaccess file before then you can just add your line to the template, move it to the root folder of your installation and rename it .htaccess.
  • I managed this. The error message for the htaccess disappeared, but now I get an error message for MySqlSetup

    Access denied for user 'adminXXXX'@'10.0.70.30' (using password: YES)
  • Well, at least that is progress :)

    This error indicates that the user id and password you gave Zenphoto for access to your database is either incorrect or the user had not got the priviledges to let Zenphoto access the database.

    If you belive the user/password is correct you will have to contact your provider to see what might be wrong.
  • Everything OK now. PHP5 was necessary.

    Thank you for your help !!!!!
  • What version of PHP were you using before?
Sign In or Register to comment.