acrylian:
Once again I want to thank you for your patience with someone who is just starting using ZenPhoto. I have been on the support end of products myself, so I know the frustrations that can arise. I do appreciate you diligence in providing support. Keep up the good work!
I have two things I want to discuss.
#1 – I am using the latest version of XAMPP (installed with all defaults) and the current version of ZenPhoto. I spent a bit of time getting the Zen setup to run. I kept getting errors at the MySQL database setup. I was using “Localhost” as the server in the database setup area. As a workaround, I manually setup the database using XAMPP.
Later, I wanted to make sure that everything was correct so I went deleted the XAMPP install and started over. I was still having the same problem creating the data base. Just by chance I substituted “127.1.1.0” for the server address and the setup completed correctly. I’m not absolutely sure that this is repeatable. I’ll try again in a few days and let you know.
#2 – I’m still learning ZenPhoto, so bear with me. I copied the code from the User Guide (http://www.zenphoto.org/news/integration-with-existing-sites-and-other-cms) and created a standalone *.php file. I then made sure that my php/ZenPhoto structure was the same as outlined in the comments.
I added a couple of php variable to look at the SERVERPATH and WEBPATH values. They appeared to me to be correct. Then I used phpDesigner8 to single step through the code. Passing through several includes everything seemed OK until I get to the first three lines of global-definations.php i.e.
<?php
if (!isset($_SERVER['HTTP_HOST']))
die();
When I step through this line of code, the program stops like it should. That told me that I wasn’t setting the value, so I did a search for $_SERVER[‘HTTP_HOST’] in the entire zenphoto folder (including subfolders) and found 5 references.
However, none of the references were places where the $_SERVER[‘HTTP_HOST’] was being set or defined.
I could have missed it. Anyway, would you take a minute and point me to the proper location for setting this value.
Thanks again,
Bob Miers