New Install Parse Error

Zenphoto comes as an option on my server and looks to be exactly what I need. I installed it and can get admin access and upload etc but when viewing the gallery I get

Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web018/b183/glo.zorgon/gallery/zp-core/template-functions.php on line 4516

Any help on fixing this would be appreciated. Also I am not that fluent in php yet

Thanks

Comments

  • The error you are getting is a PHP syntax error. Unfortunately we do not know the version of Zenphoto your site is supplying, but certainly there is no such error in the current released version.

    The error is most likely caused by some sort of file corruption, though since such an error would prevent the script from loading and the template-functions script is pretty integral to any Zenphoto insatallation.
  • I also had this error with a brand new ZenPhoto install (my host uses SimpleScripts through CPanel). The admin interface worked fine, but when I went to view my uploaded images the error appeared:

    [code]Parse error: syntax error, unexpected T_STRING in /homefolder/zenphotos/zp-core/template-functions.php on line 4516[/code]

    This seems to have something to do the call to the printZenphotoLink function, which included an optional link to SiteLock. Commenting out the function (near the referened line 4516) seemed to fix the problem:

    [code] function printZenphotoLink() {
    echo gettext("Powered by...
    }
    [/code]

    I'm guessing that this is auto-generated somehow during the install process and that there is some single-quote/double quote confusion, but I haven't had the time to go through it.
  • acrylian Administrator, Developer
    Please install Zenphoto as decribed on our installation page. We don't support installs done using install helpers like SimpleScripts (as stated there and on the forum rules). These are known to frequently cause errors we can't help with as we don't know what they are doing. You have to ask the providers of SimpleScripts otherwise.
  • Well, since the standard `printZenphotoLink()` function has no optional link I would guess this was caused by a malfunctioning change made by simplescripts. Yet again establishing why we do not support these third party scripts.
Sign In or Register to comment.