Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can anyone tell by these PHP error logs what I am doing wrong?

Featured Replies

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]:P 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 by Guest

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');

  • 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?

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.

  • Author

Thanks genx, I will give it another try.

  • 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

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.

  • 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.

This issue has been resolved.

  • Author

Thanks for your help Genx.

No worries!! Hope everything is still working LOL!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.