June 19, 200718 yr Can anyone tell by these error logs what I am doing wrong? I have installed the FM PHP API and FMS8A (both version 8.0v4) on our web server (Mac OSX 10.4.9) but I can not seem to get it working. The web publishing engine is up and running, and the product_catalog files are installed, but I am getting the following errors: mydomain.com PHP Error Log [Mon Jun 18 19:14:21 2007] [error] [client 74.77.159.36] PHP Warning: session_start() [function.session-start] Cannot send session cookie - headers already sent by (output started at /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/recordlist.php:3) in /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/fmview.php on line 19, referer: http://mydomain.com/catalog_example/home.php [Mon Jun 18 19:14:21 2007] [error] [client 74.77.159.36] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/recordlist.php:3) in /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/fmview.php on line 19, referer: http://mydomain.com/catalog_example/home.php [Mon Jun 18 19:14:21 2007] [error] [client 74.77.159.36] PHP Warning: require_once(/Library/Tenon/WebServer/WebSites/ mydomain.com/catalog_example/FileMaker/Error.php) [function.require-once]: failed to open stream: No such file or directory in /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/FileMaker.php on line 19, referer: http://mydomain.com/catalog_example/home.php [Mon Jun 18 19:14:21 2007] [error] [client 74.77.159.36] PHP Fatal error: require_once() [function.require]: Failed opening required '/Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/FileMaker/Error.php' (include_path='.:/Library/Tenon/PHP/lib/php') in /Library/Tenon/WebServer/WebSites/mydomain.com/catalog_example/FileMaker.php on line 19, referer: http:// mydomain.com/catalog_example/home.php Edited June 21, 200718 yr by Guest
June 19, 200718 yr session_start() needs to be at the very top of your document before anything else. The includes are stuffed because it can't find the files which means you've done the file references wrong. The file reference is evaluated based on the location of the main script you're executing. e.g. You have yourdomain folder, in that folder you have: FileMaker (folder) FileMaker.php Website (folder) - Home.php - Index.php If you were running Home.php and wanted to Require FileMaker.php, your require_once reference should be relative: require_once('../FileMaker.php');
June 19, 200718 yr Author session_start() needs to be at the very top of your document before anything else. The includes are stuffed because it can't find the files which means you've done the file references wrong. The file reference is evaluated based on the location of the main script you're executing. e.g. You have yourdomain folder, in that folder you have: FileMaker (folder) FileMaker.php Website (folder) - Home.php - Index.php If you were running Home.php and wanted to Require FileMaker.php, your require_once reference should be relative: require_once('../FileMaker.php'); I am trying to follow your instructions but I am still having trouble getting it to work. I successfully got the FM PHP API running on our FileMaker server about six months ago...but now that I am trying to set it up on our new FM/Webserver I can not get the darn thing to work. I think that I have the files in the correct locations, is it possible that the errors that I am getting is related to a permissions problem? What goes in the "website" folder?
June 19, 200718 yr That was just an example... Your site would go in the website folder -- not that it's necessary, it's just how i like to set mine up. Anyway, let's change the example to root: FileMaker (folder) FileMaker.php Home.php Index.php If you were running Home.php and wanted to Require FileMaker.php, your require_once reference should be relative: require_once('FileMaker.php'); Just try putting a blank php page in the root and require_once('FileMaker.php'); -- see if that works.
June 21, 200718 yr Author I think that I am getting closer...but now I am getting the following error: Error: Unknown error Message: Communication Error: (22) The requested URL returned error: 503
June 21, 200718 yr Okay, well it's fairly easy to pull these apart -- communication error is filemaker's response, http:503 error is the server's response. Wiki: 503 Service Unavailable Service unavailble means can't reach FMS, means that you need to double check your ip addresses in your connection files if you have them or otherwise in your new FileMaker() connection string.
June 22, 200718 yr Author Service unavailble means can't reach FMS, means that you need to double check your ip addresses in your connection files if you have them or otherwise in your new FileMaker() connection string. Sorry genx, I do not understand what you mean. What is a connection file or a connection string? Where can I find these? The IP address in my FMSA Web Publishing Administration Console is correct.
Create an account or sign in to comment