Issue Installing ZP 1.5 on WAMP

I have tried to install ZenPhoto 1.5 on WAMP 3.1.0 64 bit but nothing seems to happen when going to zp-core/setup.php or zenphoto/ in the virtual host. The zenphoto folder is in the www folder & the virtual host has been created & DNS reset. Can anyone help?

I am somewhat familiar with WAMP and have multiple programs like WordPress, Osclass, etc running with no issues.

Comments

  • JatB Member
    edited July 2018

    I haven’t tried WAMP, but I did run into an issue recently trying to run Zenphoto on MAMP-

    https://github.com/zenphoto/zenphoto/issues/1143

    The answer is that Zenphoto will not run on newer versions unless you are using Apache on port 80. Hope that helps.

  • acrylian Administrator, Developer
    edited July 2018

    Yes, use the "standard ports" and it should work. Zenphoto never did support any other besides that actually since it is primarily aimed at "standard hosting". We did not change anything in that regard at all.

  • Nezzy Member

    The WAMP version I originally tried uses: Listen 0.0.0.0:80
    Listen [::0]:80. In addition, i installed the 32 bit version 2.4 WAMP & had the same issue, which also listens on port 80.

    To test if WAMP issue, I tried to install WP & had no issue.
    Apparently, the server & Zen cannot communicate.

    Can anyone please help
    Has anyone else tried to install on WAMP with the same issue?

    Thank you

  • acrylian Administrator, Developer

    Anything in the WAMP php error log or else? We really haven't change anything and it works in MAMP as ever (sadly can't test WAMP).

  • Nezzy Member

    I retried again this AM on WAMP 2.4 & reviewed the Apache error log:
    [Sun Jul 08 09:57:50.875388 2018] [:error] [pid 8404:tid 1920] PHP Notice: Use of undefined constant SERVERPATH - assumed 'SERVERPATH' in C:\wamp\www\zenfolder\zp-core\reconfigure.php on line 72, referer: http://localhost/
    There are over 80 lines in the error log on this one attempt - above is the first.

    I can forward more...

  • acrylian Administrator, Developer
    edited July 2018

    That undefined constant is indeed a bug in 1.5. But that should actually not be a "show stopper". For now you can manually fix that by adding 'gallery'=> array('define'=>'_GALLERY_INDEX_', 'rewrite'=>'_PAGE_/gallery') to the $conf['special_pages'] = array(…) define in your config file (you can also copy the whole define from the template within zp-core). Or you delete the config file and let setup re-generate a new one (you will need you mysql credentials.)

  • Nezzy Member

    I am not familiar with .CFG files, but i believe this code is already in the ZP 1.5 .cfg file. As far as letting setup regenerate... ZP does not even start to setup...
    I cannot run an initial install setup

  • acrylian Administrator, Developer
    edited July 2018

    Hm, but there must be any error that gives us a clue… Have you checked file/folder permissions already?

  • Nezzy Member

    Are there any older clean versions of ZenPhoto without issues on WAMP? The main main reason for the WAMP install is building a theme.

  • Nezzy Member

    As stated above, the error log has over 80 error lines, I only posted the first error above.
    I know how to check file permission with filezilla, how do you check with WAMP since the files are on the computer?

  • acrylian Administrator, Developer

    Are there any older clean versions of ZenPhoto without issues on WAMP? The main main reason for the WAMP install is building a theme.

    You can try 1.4.14 but we don't recommend using old and now unsupported versions. We need to find out what the issue on your end is. We really didn't change anything specific as far as I recall all the changes.

    As stated above, the error log has over 80 error lines, I only posted the first error above.

    If there are more and other errors post them as well (one example of a kind in case there are duplictates should be enough)

    I know how to check file permission with filezilla, how do you check with WAMP since the files are on the computer?

    Basicall the same way, you access the file system via your FTP program directly. That is at least what I do using Transmit on Mac.

    Or more inconvenient via PHP itself: http://php.net/manual/en/function.fileperms.php

  • Nezzy Member

    Will review the link you posted

    Here is today's try error log - there were many repeats, but these cover it pretty well: -the original post was too long times edited out

    [Mon Jul 09 17:45:16.479273 2018] [:error] [pid 7816:tid 1908] [client ::1:60750] PHP Notice: Use of undefined constant SERVERPATH - assumed 'SERVERPATH' in C:\wamp\www\zenfolder\zp-core\reconfigure.php on line 72, referer: http://localhost/
    [Mon Jul 09 17:45:16.479273 2018] [:error] [pid 7816:tid 1908] [client ::1:60750 ] PHP Stack trace:, referer: http://localhost/
    1. {main}() C:\wamp\www\zenfolder\index.php:0, referer: http://localhost/
    2. include() C:\wamp\www\zenfolder\index.php:31, referer: http://localhost/
    3. require_once() C:\wamp\www\zenfolder\zp-core\index.php:14, referer: http://localhost/
    4. require_once() C:\wamp\www\zenfolder\zp-core\functions.php:17, referer: http://localhost/
    5. reconfigureAction() C:\wamp\www\zenfolder\zp-core\functions-basic.php:112, referer: http://localhost/
    6. checkSignature() C:\wamp\www\zenfolder\zp-core\reconfigure.php:12, referer: http://localhost/
    [Mon Jul 09 17:45:16.479273 2018] [:error] [pid 7816:tid 1908] [client ::1:60750] PHP Warning: file_get_contents(SERVERPATH/zp-core/Zenphoto.package): failed to open stream: No such file or directory in C:\wamp\www\zenfolder\zp-core\reconfigure.php on line 72, referer: http://localhost/
    PHP Stack trace:, referer: http://localhost/
    1. {main}() C:\wamp\www\zenfolder\index.php:0, referer: http://localhost/
    2. include() C:\wamp\www\zenfolder\index.php:31, referer: http://localhost/
    3. require_once() C:\wamp\www\zenfolder\zp-core\index.php:14, referer: http://localhost/
    4. require_once() C:\wamp\www\zenfolder\zp-core\functions.php:17, referer: http://localhost/
    5. reconfigureAction() C:\wamp\www\zenfolder\zp-core\functions-basic.php:112, referer: http://localhost/
    6. checkSignature() C:\wamp\www\zenfolder\zp-core\reconfigure.php:12, referer: http://localhost/
    7. file_get_contents() C:\wamp\www\zenfolder\zp-core\reconfigure.php:72, referer: http://localhost/

  • acrylian Administrator, Developer

    Those are all downstream issues of the undefined constant error. As said you can fix that easily by copying/adding the defines from zp-core/zenphoto_cfg.txt to your existing config file in zp-data/zenphoto.cfg.php.

  • Nezzy Member

    There is nothing but .gitignore file in the zp-data folder - this error is from the install setup, if that is what creates the zp-data/zenphoto.cfg.php file.

  • acrylian Administrator, Developer

    Sorry, completely my fault. You cannot fix that manually. Please try the support build (master) from Github.

  • Nezzy Member

    The master version installed on WAMP 3.1.0 64 bit on the first attempt.
    Thank you

  • acrylian Administrator, Developer

    Thanks for the confirmation!

  • Guys, I have had the same problem yesterday evening, it was really an unsolvable puzzle driving me mad. An attempt to install a clean installation of Zp1.5 in WAMP3.1.4 failed whatever I tried. I ended up in sacrificing my other local sites and reinstalling wamp, but nothing helped.

    This morning I have found a workaround -- install an older version of Zp (I've used 1.4.14) and upgrade it to 1.5. Then everything works flawlessly.

  • acrylian Administrator, Developer

    As mentioned the support build has the fix for this.

  • Yes, thanks, I have overlooked this

Sign In or Register to comment.