Blank setup.php

I am trying to set this up on my Mac running Apache with PHP5. I put everything a folder called zenphoto but when I go to http://www.gotdangit.com/zenphoto/zen/setup.php the page is blank. I can't get past step 2 in the install instructions, so I must be making a major/stupid mistake, but I can't see what it is. I know my server is working... I have both wordpress and gallery running just fine, but my setup.php won't show anything!
I am seeing this error in my httpd error log:
[Tue Feb 21 01:12:31 2006] [error] PHP Parse error: syntax error, unexpected $end in /Library/WebServer/Documents/zenphoto/zen/setup.php on line 140
Are there more instructions other than "get the files on the server and go to setup.php" that I'm missing? What am I doing wrong this early in the installation?

Comments

  • trisweb Administrator
    No, that should work..... did you try redownloading and reextracting? That kind of sounds like an incomplete or corrupt file...
  • Yes, I did. The first time I had the tar.gz version and it would create a folder named "1.0b" and it contained 8 items.
    Then I downloaded the .zip version, and when unpacked it created a folder named "zenphoto-1" which had the same 8 files/folders. Same results with both. For the sake of disparity, I downloaded the files again with Firefox instead of Safari, and I still get the same thing.
    I have a feeling the problem lies in my build of php5 but I only say that because I was able to get zenphoto to work just fine on my Mac at work and as near as I can tell the only difference is that my Mac at work has php 4.3.11 and my problem Mac has 5.1.2. I'm just not smrt enough to know how to trouble shoot this. And like I said, both wordpress and gallery are running just fine on this Mac.
  • trisweb Administrator
    I develop with PHP5, so it's not that specifically. Could be something with the build of it you have, sure. D

    Line 140 in setup.php is the end of the file.

    Do you have php's "short tags" feature enabled?
  • According to this "short_open_tag" is off.
    This is frustrating because I know it's going to be one little thing that needs to be changed and then it will work beautifully. I just can't figure out what the one little thing is.

    One more thing to note, and I can't imagine it would be important this early in the install, but, I had to make a change in my php.ini file to get mysql to work. I had to change the MYSQL_SOCKET to /tmp/mysql.sock but I haven't even gotten to the stage where I fill in my db details.
  • trisweb Administrator
    That's it then-- short_open_tag needs to be on unfortunately.

    You can do a find-and-replace (without the quotes):

    Replace `'and `'<?='` with `'<?php echo '`

    On every core zenphoto php file. Most good text editors should let you do that on a whole directory (ConTEXT, jEdit come to mind).

    Trust me, it's definitely that. I'll have that fixed by the next release so it works by default.
  • Naturally, you're right! It works now. Thank you very much for the help!
  • qtrc Member
    Just in case anyone gets the following error:

    Parse error: syntax error, unexpected $end in C:\http\www\gallery\zen\sortable.php on line 202

    By turning "On" "short_open_tag", my windows setup was also able to get zenphot to work properly. I'm running wamp5_1.6.1 services.

    Thanks Trisweb!!!
  • trisweb Administrator
    qtrc - (if you come back) what version are you using? Version 1.0.2b shouldn't require short_open_tag anymore; just want to make sure you still don't have a problem with it if you upgraded.
Sign In or Register to comment.