The page cannot be displayed because an internal server error has occurred.
That's the 500 error - the "run home to mama" error. Means "this is broke and I don't know why". Which, of course, is not tremendously useful.
Did you include the login to the FileMaker database as part of the page (or an include)?
Yes, if I comment out or remove the getValueList it works just fine.
Well, I do know that getValueList is deprecated. You might try getValueListTwoFields instead.
This also caught my eye:
$layout =& $fm->getLayout('Demo php');
Is there a reason you want to do this by reference?
this is the one of the Lessons from FileMaker PHP API book. In the past I have only had to use PHP to display data from FileMaker which has worked great. I had an issue with another server that was gather and sending PHP emails. I'm now need to use PHP to gather the data so that other process that Filemaker can do ...
I was just trying to get working… I have recently upgrade from FMS 13 to 14. I have been using the PHP since FMS 12 on this same system. Do you think it could be a PHP install issue?
Not sure what book you’re referring to, but getValueLists is definitely deprecated, per the comments inside the function in the API. Book might be out of date.
I don’t think it has to do with the PHP install, although it might. Sometimes functionality is deprecated in newer versions of PHP. What version are you running?
Honestly, I shy away from either of these functions. They always seemed a little spotty, depending on the value list in question. (That might be part of it; how is this value list defined?) What I usually do is just fetch the records from the domain table where the value list is defined, and parse out the pull-down that way.