0 Replies Latest reply on Jul 3, 2012 8:14 AM by databuzz

    500 - Internal server error with FileMaker Server 12.0v1 and PHP Web Publishing

    databuzz

      Summary

      500 - Internal server error with FileMaker Server 12.0v1 and PHP Web Publishing

      Product

      FileMaker Server

      Version

      12.0.1.178

      Operating system version

      Windows Server 2008 R2

      Description of the issue

      Working with the FileMaker PHP API and FileMaker Server v12 - when I submit a form that does a POST method I get an error page:

      Server Error

      500 - Internal server error.
      There is a problem with the resource you are looking for, and it cannot be displayed.

      Using other pages that have PHP API calls works fine - it is only only pages with html forms that perform a POST action. This is with both my custom PHP sites and the PHP examples that ship with FileMaker Server v12.

      Steps to reproduce the problem

      1. Install and deploy FileMaker Server 12.0.1.178 on Windows Server 2008 R2
      2. Enable PHP Web Publishing
      3. Upload the FMPHP_Sample database that is in the API Examples folder inside the FileMaker Server/Examples folder
      4. Copy the API Examples folder to the wwwroot folder
      5. Access the editRecord.php page via a browser, e.g:

      http://localhost/examples/PHP/API%20Examples/editRecord.php

      and complete the form and click the Create New Record button which submits the form to the handleForm.php page

      Expected result

      handleForm.php successfully processes the submitted form values and creates a record in the database and redirects to the displayRecords.php page

      Actual result

      A new record is created in the database but the page shows a Server Error

      500 - Internal server error.
      There is a problem with the resource you are looking for, and it cannot be displayed.

      Exact text of any error message(s) that appear

      Server Error

      500 - Internal server error.
      There is a problem with the resource you are looking for, and it cannot be displayed.

      The IIS server log has this for the request:

      2012-07-03 14:49:01 203.41.124.94 POST /examples/PHP/API+Examples/handleForm.php - 80 - 192.168.0.100 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_6_8)+AppleWebKit/536.11+(KHTML,+like+Gecko)+Chrome/20.0.1132.47+Safari/536.11 500 0 0 187

      Configuration information

      Single machine deployment

      Workaround

      None

      Screen_shot_2012-07-04_at_1.13.45_AM.png