4 Replies Latest reply on Sep 9, 2014 1:24 AM by steve.winter

    Include filemaker php api give blank page

    lionel.astol

      Hi,

       

      I had developped a web app with Code Igniter and the filemaker php api. this works fine on preprod server. But on the prod server, the line include_once(APPPATH.'libraries/FileMaker.php'); break the php and return a blank page. this is a apache2 server with php 5.3.28 and cURL enabled.

       

      Thanks

        • 1. Re: Include filemaker php api give blank page
          databuzz

          Have you checked to see what is reported in the Apache error_log? That should give you an entry which should help you track down the issue - the most likely issue in this case sounds like the file is not at the expected location and cannot be included.

           

          HTH,

          Andrew

           

          FileMaker 13 Certified Developer

          Databuzz

          - - - - - - - - - - - - - - - - -

          Phone: +61 2 9484 6565

          Mobile: +61 418 468 103

          Email: andrew@databuzz.com.au

          http://www.databuzz.com.au

          • 2. Re: Include filemaker php api give blank page
            steve.winter

            Is APPPATH defined on the production server...?

             

            And is the FileMaker API at the defined location...?

             

            And does the apache user (probably www-data) have read permissions on that location...?

             

            To answer these questions I'd suggest that the very top of the php page you're trying to load you add:

                 error_reporting(E_ALL);
                 ini_set("display_errors", 1);

             

            Which if nothing else will get the error which is generating the white screen output to the screen and you'll stand a better chance of foguring out what the issue is.

             

            Good luck!

            Steve

            • 3. Re: Include filemaker php api give blank page
              lionel.astol

              Thanks Andrew and Steve.

               

              I'm afraid that it's a problem with the server config. I have these messages in the apache logs : child pid xxxxx exit signal segmentation fault (11).

              • 4. Re: Include filemaker php api give blank page
                steve.winter

                In that case it's more likely to be an external module of either PHP or (less likely) Apache. You don't say what flavour your server is, but given that it's Apache I'm assuming OS X...?

                 

                Do you have any additional PHP modules loaded through your php.ini...? if so, try disabling them and see if that solves it. Failing that, try the same thing for additional Apache modules which you may have configured to load and see if you an track down which module is causing the fault. If you're lucky you won't need that module, and you can continue on - if not you'll have to look to reinstall/reconfigure that module.

                 

                Best of luck...!