From malcolm at notyourhomework.net Sun Nov 1 15:14:25 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Sun Nov 1 15:15:05 2015 Subject: [FX.php List] Help with error message In-Reply-To: References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> Message-ID: <56368EC1.7090108@notyourhomework.net> Before you do anything else, try using HTTPS instead of HTTP. Malcolm On 1/11/2015 4:49 pm, Jon Montgomery wrote: > Hey Chris, > > Thanks for the info. I put the code in and this is what it yielded: > > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 > > Could this be a Filemaker Server 14 port conflict? When I installed > (or deployed, I don?t remember) but got the message that ports 80 and > 443 were in use click to disable those other applications using those > ports (or something to that effect). I did. > > After that, the FMS tests all worked but I had no PHP (in phpinfo.php) > running. Poked around in terminal and got Appache running and got PHP > info page up. But then get these FX_Errors as in original post. > > Could my server set up be what is causing my problem since I cannot > get any XML data from the link? > > Thanks! > > Jon > > > On Oct 31, 2015, at 10:26 PM, Chris Hansen > wrote: > >> Hey Jon, >> >> Are you sure that XML sharing is enabled on FileMaker Server on your >> local machine? Basically, the URL that you see there is (semi) >> equivalent of the request being made to FileMaker. You should be >> able to click on that link and get back the XML that FileMaker >> outputs. For some reason, the connection to your locally running >> FileMaker isn't working, and that's the bit that you need to debug. >> >> At any rate, when you get an FX error object, it means that FX was >> never able to connect to the server for one reason or another. >> Something that even experienced developers tend not to do, that they >> should be doing, is trap for errors. So, that would look something >> like this: >> >> // the rest of your query code would be above this >> $qResult = $q->FMFind(); >> if (FX::isError($qResult)) { >> echo $qResult->getMessage(); >> } >> elseif ($qResult[?errorCode?] != 0) { >> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >> } >> else { >> // your data set logic goes here >> } >> >> FYI, the curly braces inside the FileMaker error quotes help PHP to >> parse where the variable begins and ends. >> >> HTH >> >> --Chris > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151102/fa6bb51f/attachment.html From fxphp at igsmasouth.org Sun Nov 1 17:16:23 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Sun Nov 1 17:16:33 2015 Subject: [FX.php List] Help with error message In-Reply-To: <56368EC1.7090108@notyourhomework.net> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> Message-ID: Malcolm, Please explain just HOW it try HTTPS instead of HTTP? I am on a laptop and everything is on that laptop. Thanks! Jon On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald wrote: > Before you do anything else, try using HTTPS instead of HTTP. > > Malcolm > > On 1/11/2015 4:49 pm, Jon Montgomery wrote: >> Hey Chris, >> >> Thanks for the info. I put the code in and this is what it yielded: >> >> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >> >> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >> >> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >> >> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >> >> Thanks! >> >> Jon >> >> >> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >> >>> Hey Jon, >>> >>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>> >>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>> >>> // the rest of your query code would be above this >>> $qResult = $q->FMFind(); >>> if (FX::isError($qResult)) { >>> echo $qResult->getMessage(); >>> } >>> elseif ($qResult[?errorCode?] != 0) { >>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>> } >>> else { >>> // your data set logic goes here >>> } >>> >>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>> >>> HTH >>> >>> --Chris >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151101/97ecfa4d/attachment-0001.html From tim.webko at gmail.com Sun Nov 1 17:33:43 2015 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Sun Nov 1 17:33:51 2015 Subject: [FX.php List] Help with error message In-Reply-To: References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> Message-ID: Hi Jon, I think he's suggesting seeing what happens if you try the XML URL with https - like: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership.fmp12&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find Cheers Webko On 2 November 2015 at 11:16, Jon Montgomery wrote: > Malcolm, > > Please explain just HOW it try HTTPS instead of HTTP? I am on a laptop > and everything is on that laptop. > > Thanks! > > Jon > > > On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald < > malcolm@notyourhomework.net> wrote: > > Before you do anything else, try using HTTPS instead of HTTP. > > Malcolm > > On 1/11/2015 4:49 pm, Jon Montgomery wrote: > > Hey Chris, > > Thanks for the info. I put the code in and this is what it yielded: > > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 > > Could this be a Filemaker Server 14 port conflict? When I installed (or > deployed, I don?t remember) but got the message that ports 80 and 443 were > in use click to disable those other applications using those ports (or > something to that effect). I did. > > After that, the FMS tests all worked but I had no PHP (in phpinfo.php) > running. Poked around in terminal and got Appache running and got PHP info > page up. But then get these FX_Errors as in original post. > > Could my server set up be what is causing my problem since I cannot get > any XML data from the link? > > Thanks! > > Jon > > > On Oct 31, 2015, at 10:26 PM, Chris Hansen < > chris@iViking.org> wrote: > > Hey Jon, > > Are you sure that XML sharing is enabled on FileMaker Server on your local > machine? Basically, the URL that you see there is (semi) equivalent of the > request being made to FileMaker. You should be able to click on that link > and get back the XML that FileMaker outputs. For some reason, the > connection to your locally running FileMaker isn't working, and that's the > bit that you need to debug. > > At any rate, when you get an FX error object, it means that FX was never > able to connect to the server for one reason or another. Something that > even experienced developers tend not to do, that they should be doing, is > trap for errors. So, that would look something like this: > > // the rest of your query code would be above this > $qResult = $q->FMFind(); > if (FX::isError($qResult)) { > echo $qResult->getMessage(); > } > elseif ($qResult[?errorCode?] != 0) { > echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; > } > else { > // your data set logic goes here > } > > FYI, the curly braces inside the FileMaker error quotes help PHP to parse > where the variable begins and ends. > > HTH > > --Chris > > > > > _______________________________________________ > FX.php_List mailing listFX.php_List@mail.iviking.orghttp://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151102/e19176bc/attachment.html From malcolm at notyourhomework.net Sun Nov 1 20:56:48 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Sun Nov 1 20:57:09 2015 Subject: [FX.php List] Help with error message In-Reply-To: References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> Message-ID: <5636DF00.8090409@notyourhomework.net> Hi Jon, I've seen the same error that you are getting when I point to the databases using http://...... when I should be using https://..... Another thing to note is that you are using the .fmp12 extension in the -db parameter. Remove the extension. Malcolm On 2/11/2015 1:16 pm, Jon Montgomery wrote: > Malcolm, > > Please explain just HOW it try HTTPS instead of HTTP? I am on a > laptop and everything is on that laptop. > > Thanks! > > Jon > > > On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald > > wrote: > >> Before you do anything else, try using HTTPS instead of HTTP. >> >> Malcolm >> >> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>> Hey Chris, >>> >>> Thanks for the info. I put the code in and this is what it yielded: >>> >>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at >>> line 1 >>> >>> Could this be a Filemaker Server 14 port conflict? When I installed >>> (or deployed, I don?t remember) but got the message that ports 80 >>> and 443 were in use click to disable those other applications using >>> those ports (or something to that effect). I did. >>> >>> After that, the FMS tests all worked but I had no PHP (in >>> phpinfo.php) running. Poked around in terminal and got Appache >>> running and got PHP info page up. But then get these FX_Errors as >>> in original post. >>> >>> Could my server set up be what is causing my problem since I cannot >>> get any XML data from the link? >>> >>> Thanks! >>> >>> Jon >>> >>> >>> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >>> >>>> Hey Jon, >>>> >>>> Are you sure that XML sharing is enabled on FileMaker Server on >>>> your local machine? Basically, the URL that you see there is >>>> (semi) equivalent of the request being made to FileMaker. You >>>> should be able to click on that link and get back the XML that >>>> FileMaker outputs. For some reason, the connection to your locally >>>> running FileMaker isn't working, and that's the bit that you need >>>> to debug. >>>> >>>> At any rate, when you get an FX error object, it means that FX was >>>> never able to connect to the server for one reason or another. >>>> Something that even experienced developers tend not to do, that >>>> they should be doing, is trap for errors. So, that would look >>>> something like this: >>>> >>>> // the rest of your query code would be above this >>>> $qResult = $q->FMFind(); >>>> if (FX::isError($qResult)) { >>>> echo $qResult->getMessage(); >>>> } >>>> elseif ($qResult[?errorCode?] != 0) { >>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>> } >>>> else { >>>> // your data set logic goes here >>>> } >>>> >>>> FYI, the curly braces inside the FileMaker error quotes help PHP to >>>> parse where the variable begins and ends. >>>> >>>> HTH >>>> >>>> --Chris >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151102/03cc058a/attachment-0001.html From bob at patin.com Mon Nov 2 11:47:34 2015 From: bob at patin.com (Bob Patin) Date: Mon Nov 2 11:38:04 2015 Subject: [FX.php List] Help with error message In-Reply-To: <5636DF00.8090409@notyourhomework.net> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5636DF00.8090409@notyourhomework.net> Message-ID: <89ABB4AF-0F2D-4DAD-A2C5-62ADB3747F31@patin.com> Actually, I use that extension without any trouble? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 1, 2015, at 9:56 PM, Malcolm Fitzgerald wrote: > > Hi Jon, > > I've seen the same error that you are getting when I point to the databases using http:// ...... when I should be using https:// ..... > > Another thing to note is that you are using the .fmp12 extension in the -db parameter. Remove the extension. > > Malcolm > > > > On 2/11/2015 1:16 pm, Jon Montgomery wrote: >> Malcolm, >> >> Please explain just HOW it try HTTPS instead of HTTP? I am on a laptop and everything is on that laptop. >> >> Thanks! >> >> Jon >> >> >> On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald < malcolm@notyourhomework.net > wrote: >> >>> Before you do anything else, try using HTTPS instead of HTTP. >>> >>> Malcolm >>> >>> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>>> Hey Chris, >>>> >>>> Thanks for the info. I put the code in and this is what it yielded: >>>> >>>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >>>> >>>> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >>>> >>>> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >>>> >>>> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >>>> >>>> Thanks! >>>> >>>> Jon >>>> >>>> >>>> On Oct 31, 2015, at 10:26 PM, Chris Hansen < chris@iViking.org > wrote: >>>> >>>>> Hey Jon, >>>>> >>>>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>>>> >>>>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>>>> >>>>> // the rest of your query code would be above this >>>>> $qResult = $q->FMFind(); >>>>> if (FX::isError($qResult)) { >>>>> echo $qResult->getMessage(); >>>>> } >>>>> elseif ($qResult[?errorCode?] != 0) { >>>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>>> } >>>>> else { >>>>> // your data set logic goes here >>>>> } >>>>> >>>>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>>>> >>>>> HTH >>>>> >>>>> --Chris >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151102/f732a08b/attachment-0001.html From malcolm at notyourhomework.net Mon Nov 2 15:32:03 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Mon Nov 2 15:23:50 2015 Subject: [FX.php List] Help with error message In-Reply-To: <89ABB4AF-0F2D-4DAD-A2C5-62ADB3747F31@patin.com> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5636DF00.8090409@notyourhomework.net> <89ABB4AF-0F2D-4DAD-A2C5-62ADB3747F31@patin.com> Message-ID: <5637E463.2060604@notyourhomework.net> I've experienced problems with the extension. It is unnecessary and it may cause problems. I don't recommend that it is used. I pasted the URL Jon provided into the web browser using HTTPS instead of HTTP. I got an 802 error from filemaker ( object not found ). That was a good result. It means that using HTTPS was connecting to the filemaker server. Then I modified the URL by removing ".fmp12" and tried again. This time I got the user authentication challenge. That's an even better result. It means that the URL was connecting to a database. Malcolm On 3/11/2015 7:47 am, Bob Patin wrote: > Actually, I use that extension without any trouble? > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > >> On Nov 1, 2015, at 9:56 PM, Malcolm Fitzgerald >> > wrote: >> >> Hi Jon, >> >> I've seen the same error that you are getting when I point to the >> databases using http://...... when I should be using https://..... >> >> Another thing to note is that you are using the .fmp12 extension in >> the -db parameter. Remove the extension. >> >> Malcolm >> >> >> >> On 2/11/2015 1:16 pm, Jon Montgomery wrote: >>> Malcolm, >>> >>> Please explain just HOW it try HTTPS instead of HTTP? I am on a >>> laptop and everything is on that laptop. >>> >>> Thanks! >>> >>> Jon >>> >>> >>> On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald >>> wrote: >>> >>>> Before you do anything else, try using HTTPS instead of HTTP. >>>> >>>> Malcolm >>>> >>>> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>>>> Hey Chris, >>>>> >>>>> Thanks for the info. I put the code in and this is what it yielded: >>>>> >>>>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing >>>>> at line 1 >>>>> >>>>> Could this be a Filemaker Server 14 port conflict? When I >>>>> installed (or deployed, I don?t remember) but got the message that >>>>> ports 80 and 443 were in use click to disable those other >>>>> applications using those ports (or something to that effect). I did. >>>>> >>>>> After that, the FMS tests all worked but I had no PHP (in >>>>> phpinfo.php) running. Poked around in terminal and got Appache >>>>> running and got PHP info page up. But then get these FX_Errors as >>>>> in original post. >>>>> >>>>> Could my server set up be what is causing my problem since I >>>>> cannot get any XML data from the link? >>>>> >>>>> Thanks! >>>>> >>>>> Jon >>>>> >>>>> >>>>> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >>>>> >>>>>> Hey Jon, >>>>>> >>>>>> Are you sure that XML sharing is enabled on FileMaker Server on >>>>>> your local machine? Basically, the URL that you see there is >>>>>> (semi) equivalent of the request being made to FileMaker. You >>>>>> should be able to click on that link and get back the XML that >>>>>> FileMaker outputs. For some reason, the connection to your >>>>>> locally running FileMaker isn't working, and that's the bit that >>>>>> you need to debug. >>>>>> >>>>>> At any rate, when you get an FX error object, it means that FX >>>>>> was never able to connect to the server for one reason or >>>>>> another. Something that even experienced developers tend not to >>>>>> do, that they should be doing, is trap for errors. So, that >>>>>> would look something like this: >>>>>> >>>>>> // the rest of your query code would be above this >>>>>> $qResult = $q->FMFind(); >>>>>> if (FX::isError($qResult)) { >>>>>> echo $qResult->getMessage(); >>>>>> } >>>>>> elseif ($qResult[?errorCode?] != 0) { >>>>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>>>> } >>>>>> else { >>>>>> // your data set logic goes here >>>>>> } >>>>>> >>>>>> FYI, the curly braces inside the FileMaker error quotes help PHP >>>>>> to parse where the variable begins and ends. >>>>>> >>>>>> HTH >>>>>> >>>>>> --Chris >>>>> >>>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/0688633d/attachment-0001.html From bob at patin.com Mon Nov 2 16:05:26 2015 From: bob at patin.com (Bob Patin) Date: Mon Nov 2 15:55:53 2015 Subject: [FX.php List] Help with error message In-Reply-To: <5637E463.2060604@notyourhomework.net> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5636DF00.8090409@notyourhomework.net> <89ABB4AF-0F2D-4DAD-A2C5-62ADB3747F31@patin.com> <5637E463.2060604@notyourhomework.net> Message-ID: <7898F7D8-AED6-427D-9520-D3EF70F5EE5A@patin.com> > On Nov 2, 2015, at 4:32 PM, Malcolm Fitzgerald wrote: > > I've experienced problems with the extension. It is unnecessary and it may cause problems. I don't recommend that it is used. I?ve been using it for 11 years, and even when I went to fmp12 files I?ve continued to use it without any trouble. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151102/f88641cb/attachment.html From malcolm at notyourhomework.net Mon Nov 2 16:58:55 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Mon Nov 2 16:59:14 2015 Subject: [FX.php List] Help with error message In-Reply-To: <7898F7D8-AED6-427D-9520-D3EF70F5EE5A@patin.com> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5636DF00.8090409@notyourhomework.net> <89ABB4AF-0F2D-4DAD-A2C5-62ADB3747F31@patin.com> <5637E463.2060604@notyourhomework.net> <7898F7D8-AED6-427D-9520-D3EF70F5EE5A@patin.com> Message-ID: <5637F8BF.2010204@notyourhomework.net> On 3/11/2015 12:05 pm, Bob Patin wrote: > >> On Nov 2, 2015, at 4:32 PM, Malcolm Fitzgerald >> > wrote: >> >> I've experienced problems with the extension. It is unnecessary and >> it may cause problems. I don't recommend that it is used. > > I?ve been using it for 11 years, and even when I went to fmp12 files > I?ve continued to use it without any trouble. In this specific instance, my attempt to connect failed when the extension was included in the URL ( 802 error from FMS ) and it succeeded when the extension was removed from the URL (Authentication dialog presented). Do you get different results? Malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/4cb3d63b/attachment.html From fxphp at igsmasouth.org Tue Nov 3 10:55:58 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Tue Nov 3 10:56:04 2015 Subject: [FX.php List] Help with error message In-Reply-To: <56368EC1.7090108@notyourhomework.net> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> Message-ID: <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> Gentlemen: I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? I get this with ?http?: Accessing FileMaker Server 7+ data. Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 Changing the server_data.php ( $scheme = 'https?; ) yields: Accessing FileMaker Server 7+ data. Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. Copy and pasting the FileMaker URL using ?http" into browser page and/or clicking the link yields: The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. Copy and pasting the FileMaker URL using ?https? into browser page and/or clicking the link yields: SSL connection error ERR_SSL_PROTOCOL_ERROR I do not have SSL set up for anything on this machine. I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. HELP? Jon Montgomery - Illinois Grade School Music Assoication On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald wrote: > Before you do anything else, try using HTTPS instead of HTTP. > > Malcolm > > On 1/11/2015 4:49 pm, Jon Montgomery wrote: >> Hey Chris, >> >> Thanks for the info. I put the code in and this is what it yielded: >> >> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >> >> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >> >> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >> >> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >> >> Thanks! >> >> Jon >> >> >> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >> >>> Hey Jon, >>> >>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>> >>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>> >>> // the rest of your query code would be above this >>> $qResult = $q->FMFind(); >>> if (FX::isError($qResult)) { >>> echo $qResult->getMessage(); >>> } >>> elseif ($qResult[?errorCode?] != 0) { >>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>> } >>> else { >>> // your data set logic goes here >>> } >>> >>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>> >>> HTH >>> >>> --Chris >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/cbe9cb2e/attachment-0001.html From chris at iViking.org Tue Nov 3 11:11:30 2015 From: chris at iViking.org (Chris Hansen) Date: Tue Nov 3 11:07:03 2015 Subject: [FX.php List] Help with error message In-Reply-To: <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> Message-ID: <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> Hey Jon, Sorry not to respond earlier. A whole bunch of list emails showed up in my inbox this AM. The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs. As to your current problem, I've found that there are times when it's useful to manually quit the FileMaker processes. On your Mac, open Activity Monitor in the Applications > Utilities directory. If you sort the processes by User you'll find all the FileMaker processes grouped together, and you can quit them one at a time. That should allow you to install. That said, you may have the most success if you uninstall before installing. HTH --Chris > On Nov 3, 2015, at 10:55 AM, Jon Montgomery wrote: > > Gentlemen: > > I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? > > I get this with ?http?: > > Accessing FileMaker Server 7+ data. > > Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 > > > Changing the server_data.php ( $scheme = 'https?; ) yields: > > Accessing FileMaker Server 7+ data. > > Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. > > > Copy and pasting the FileMaker URL using ?http" into browser page and/or clicking the link yields: > > The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. > > Copy and pasting the FileMaker URL using ?https? into browser page and/or clicking the link yields: > > SSL connection error > > > ERR_SSL_PROTOCOL_ERROR > > > > I do not have SSL set up for anything on this machine. > > I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: > > ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. > > Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. > > HELP? > > Jon Montgomery - Illinois Grade School Music Assoication > > > On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald > wrote: > >> Before you do anything else, try using HTTPS instead of HTTP. >> >> Malcolm >> >> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>> Hey Chris, >>> >>> Thanks for the info. I put the code in and this is what it yielded: >>> >>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >>> >>> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >>> >>> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >>> >>> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >>> >>> Thanks! >>> >>> Jon >>> >>> >>> On Oct 31, 2015, at 10:26 PM, Chris Hansen < chris@iViking.org > wrote: >>> >>>> Hey Jon, >>>> >>>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>>> >>>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>>> >>>> // the rest of your query code would be above this >>>> $qResult = $q->FMFind(); >>>> if (FX::isError($qResult)) { >>>> echo $qResult->getMessage(); >>>> } >>>> elseif ($qResult[?errorCode?] != 0) { >>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>> } >>>> else { >>>> // your data set logic goes here >>>> } >>>> >>>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>>> >>>> HTH >>>> >>>> --Chris >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/12d00539/attachment-0001.html From jon at montgomerysonline.com Tue Nov 3 11:16:19 2015 From: jon at montgomerysonline.com (Jon Montgomery) Date: Tue Nov 3 11:16:23 2015 Subject: [FX.php List] Help with error message In-Reply-To: <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> Message-ID: <45014D7E-0791-4AE7-B5F1-2226EDDC5299@montgomerysonline.com> Chris, Thank you! I was on that trail but I do know this LAST install of FMS14 I choose to use my own PHP copy. I will report back after the dust settles on this laptop. I did try to re-deploy FMS14 and when it tests the web server I get this: The FileMaker installation process was unable to communicate with the web server. So will UNINSTALL and then reinstall and see what happens. Jon Montgomery aka "Mr. Mo" Work Email Email: vicepresident@igsmasouth.org jon@montgomerysonline.com Mr. Mo Email: dms_band@me.com Home Email: jonjane@montgomerysonline.com On Nov 3, 2015, at 12:11 PM, Chris Hansen wrote: > Hey Jon, > > Sorry not to respond earlier. A whole bunch of list emails showed up in my inbox this AM. > > The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs. > > As to your current problem, I've found that there are times when it's useful to manually quit the FileMaker processes. On your Mac, open Activity Monitor in the Applications > Utilities directory. If you sort the processes by User you'll find all the FileMaker processes grouped together, and you can quit them one at a time. That should allow you to install. That said, you may have the most success if you uninstall before installing. > > HTH > > --Chris > >> On Nov 3, 2015, at 10:55 AM, Jon Montgomery wrote: >> >> Gentlemen: >> >> I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? >> >> I get this with ?http?: >> >> Accessing FileMaker Server 7+ data. >> >> Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find >> >> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >> >> >> Changing the server_data.php ( $scheme = 'https?; ) yields: >> >> Accessing FileMaker Server 7+ data. >> >> Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find >> >> FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. >> >> >> Copy and pasting the FileMaker URL using ?http" into browser page and/or clicking the link yields: >> >> The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. >> >> Copy and pasting the FileMaker URL using ?https? into browser page and/or clicking the link yields: >> >> SSL connection error >> >> >> ERR_SSL_PROTOCOL_ERROR >> >> >> >> I do not have SSL set up for anything on this machine. >> >> I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: >> >> ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. >> >> Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. >> >> HELP? >> >> Jon Montgomery - Illinois Grade School Music Assoication >> >> >> On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald wrote: >> >>> Before you do anything else, try using HTTPS instead of HTTP. >>> >>> Malcolm >>> >>> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>>> Hey Chris, >>>> >>>> Thanks for the info. I put the code in and this is what it yielded: >>>> >>>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >>>> >>>> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >>>> >>>> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >>>> >>>> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >>>> >>>> Thanks! >>>> >>>> Jon >>>> >>>> >>>> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >>>> >>>>> Hey Jon, >>>>> >>>>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>>>> >>>>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>>>> >>>>> // the rest of your query code would be above this >>>>> $qResult = $q->FMFind(); >>>>> if (FX::isError($qResult)) { >>>>> echo $qResult->getMessage(); >>>>> } >>>>> elseif ($qResult[?errorCode?] != 0) { >>>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>>> } >>>>> else { >>>>> // your data set logic goes here >>>>> } >>>>> >>>>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>>>> >>>>> HTH >>>>> >>>>> --Chris >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/329b6cd1/attachment-0001.html From vargas_s at aps.edu Tue Nov 3 11:26:05 2015 From: vargas_s at aps.edu (Vargas, Steve E) Date: Tue Nov 3 11:26:25 2015 Subject: [FX.php List] Help with error message In-Reply-To: <45014D7E-0791-4AE7-B5F1-2226EDDC5299@montgomerysonline.com> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> <45014D7E-0791-4AE7-B5F1-2226EDDC5299@montgomerysonline.com> Message-ID: Just for house cleaning you may want to double check the apache config file, in particular the port settings ....steve v. From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jon Montgomery Sent: Tuesday, November 03, 2015 11:16 AM To: FX.php Discussion List Subject: Re: [FX.php List] Help with error message Chris, Thank you! I was on that trail but I do know this LAST install of FMS14 I choose to use my own PHP copy. I will report back after the dust settles on this laptop. I did try to re-deploy FMS14 and when it tests the web server I get this: The FileMaker installation process was unable to communicate with the web server. So will UNINSTALL and then reinstall and see what happens. Jon Montgomery aka "Mr. Mo" Work Email Email: vicepresident@igsmasouth.org jon@montgomerysonline.com Mr. Mo Email: dms_band@me.com Home Email: jonjane@montgomerysonline.com On Nov 3, 2015, at 12:11 PM, Chris Hansen > wrote: Hey Jon, Sorry not to respond earlier. A whole bunch of list emails showed up in my inbox this AM. The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs. As to your current problem, I've found that there are times when it's useful to manually quit the FileMaker processes. On your Mac, open Activity Monitor in the Applications > Utilities directory. If you sort the processes by User you'll find all the FileMaker processes grouped together, and you can quit them one at a time. That should allow you to install. That said, you may have the most success if you uninstall before installing. HTH --Chris On Nov 3, 2015, at 10:55 AM, Jon Montgomery > wrote: Gentlemen: I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? I get this with "http": Accessing FileMaker Server 7+ data. Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 Changing the server_data.php ( $scheme = 'https'; ) yields: Accessing FileMaker Server 7+ data. Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. Copy and pasting the FileMaker URL using "http" into browser page and/or clicking the link yields: The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. Copy and pasting the FileMaker URL using "https" into browser page and/or clicking the link yields: SSL connection error ERR_SSL_PROTOCOL_ERROR I do not have SSL set up for anything on this machine. I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. HELP? Jon Montgomery - Illinois Grade School Music Assoication On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald > wrote: Before you do anything else, try using HTTPS instead of HTTP. Malcolm On 1/11/2015 4:49 pm, Jon Montgomery wrote: Hey Chris, Thanks for the info. I put the code in and this is what it yielded: FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don't remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. Could my server set up be what is causing my problem since I cannot get any XML data from the link? Thanks! Jon On Oct 31, 2015, at 10:26 PM, Chris Hansen > wrote: Hey Jon, Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: // the rest of your query code would be above this $qResult = $q->FMFind(); if (FX::isError($qResult)) { echo $qResult->getMessage(); } elseif ($qResult['errorCode'] != 0) { echo "A FileMaker error occurred ({$qResult['errorCode']})"; } else { // your data set logic goes here } FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. HTH --Chris _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/78ce2fd3/attachment-0001.html From jon at montgomerysonline.com Tue Nov 3 11:29:22 2015 From: jon at montgomerysonline.com (Jon Montgomery) Date: Tue Nov 3 11:29:27 2015 Subject: [FX.php List] Help with error message In-Reply-To: References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> <45014D7E-0791-4AE7-B5F1-2226EDDC5299@montgomerysonline.com> Message-ID: Steve V., Thank you. And can you point me to that file on my Macbook Pro? Location and or name of file? And what port settings should they be? Jon Jon Montgomery, aka ?Mr. Mo" Email: jonmonty@icloud.com Phone: (618) 201-7388 On Nov 3, 2015, at 12:26 PM, Vargas, Steve E wrote: > Just for house cleaning you may want to double check the apache config file, in particular the port settings ?.steve v. > > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jon Montgomery > Sent: Tuesday, November 03, 2015 11:16 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Help with error message > > Chris, > > Thank you! I was on that trail but I do know this LAST install of FMS14 I choose to use my own PHP copy. I will report back after the dust settles on this laptop. > > I did try to re-deploy FMS14 and when it tests the web server I get this: > > The FileMaker installation process was unable to communicate with the web server. > > > > So will UNINSTALL and then reinstall and see what happens. > > > Jon Montgomery aka "Mr. Mo" > Work Email Email: vicepresident@igsmasouth.org > jon@montgomerysonline.com > Mr. Mo Email: dms_band@me.com > Home Email: jonjane@montgomerysonline.com > > On Nov 3, 2015, at 12:11 PM, Chris Hansen wrote: > > > Hey Jon, > > Sorry not to respond earlier. A whole bunch of list emails showed up in my inbox this AM. > > The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs. > > As to your current problem, I've found that there are times when it's useful to manually quit the FileMaker processes. On your Mac, open Activity Monitor in the Applications > Utilities directory. If you sort the processes by User you'll find all the FileMaker processes grouped together, and you can quit them one at a time. That should allow you to install. That said, you may have the most success if you uninstall before installing. > > HTH > > --Chris > > On Nov 3, 2015, at 10:55 AM, Jon Montgomery wrote: > > Gentlemen: > > I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? > > I get this with ?http?: > > Accessing FileMaker Server 7+ data. > Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 > > > Changing the server_data.php ( $scheme = 'https?; ) yields: > > Accessing FileMaker Server 7+ data. > Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. > > > > Copy and pasting the FileMaker URL using ?http" into browser page and/or clicking the link yields: > > The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. > > Copy and pasting the FileMaker URL using ?https? into browser page and/or clicking the link yields: > > SSL connection error > > > ERR_SSL_PROTOCOL_ERROR > > > > I do not have SSL set up for anything on this machine. > > I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: > > ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. > > Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. > > HELP? > > Jon Montgomery - Illinois Grade School Music Assoication > > > On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald wrote: > > > Before you do anything else, try using HTTPS instead of HTTP. > > Malcolm > > On 1/11/2015 4:49 pm, Jon Montgomery wrote: > Hey Chris, > > Thanks for the info. I put the code in and this is what it yielded: > > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 > > Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. > > After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. > > Could my server set up be what is causing my problem since I cannot get any XML data from the link? > > Thanks! > > Jon > > > On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: > > > Hey Jon, > > Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. > > At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: > > // the rest of your query code would be above this > $qResult = $q->FMFind(); > if (FX::isError($qResult)) { > echo $qResult->getMessage(); > } > elseif ($qResult[?errorCode?] != 0) { > echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; > } > else { > // your data set logic goes here > } > > FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. > > HTH > > --Chris > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/5c297ba3/attachment-0001.html From malcolm at notyourhomework.net Tue Nov 3 13:14:30 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Tue Nov 3 13:14:53 2015 Subject: [FX.php List] Help with error message In-Reply-To: <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> Message-ID: <563915A6.1010804@notyourhomework.net> Hi Jon, Your problem is simple. You are using "HTTPS" but you are insisting that it communicate on port 80. That's a common gotcha! I'm also seeing the SSL certificate error. I'm not sure what you've done wrong with the installation but that is fixable and will not stop you from connecting. Just click all the buttons to continue. The URL that I just tried, successfully, is this: https://www.igsmasouth.org/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find Using that URL I get to see an authentication box, asking me to provide a user account. Malcolm On 4/11/2015 6:55 am, Jon Montgomery wrote: > Gentlemen: > > I have tried all variations and suggestions you have posted for me. > Thank you. Unfortunately, none of those helped much if at all? > > I get this with ?http?: > > Accessing FileMaker Server 7+ data. > > Using FileMaker URL: > http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > > > FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing > at line 1 > > > > Changing the server_data.php ( $scheme = 'https?; ) yields: > > Accessing FileMaker Server 7+ data. > > Using FileMaker URL: > https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > > FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad > URL is the most likely reason. > > > Copy and pasting the FileMaker URL using ?http" into browser page > and/or clicking the link yields: > > The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this > server. > > > Copy and pasting the FileMaker URL using ?https? into browser page > and/or clicking the link yields: > > > SSL connection error > > > ERR_SSL_PROTOCOL_ERROR > > > > > I do not have SSL set up for anything on this machine. > > I am thinking that there is something WRONG with my FileMaker Server > 14 installation. When I have tried to do the update to version 14v3 > from version 14v2 I get this: > > ! This update cannot be installed while FileMaker Server is still > running. Please stop FileMaker Server and try again. > > Following the instructions for the update: Closed all databases, > turned on WEP, turned off Server in Admin Console. Quite Admin > Console and then when to Terminal and did: fmsadmin stop server and > got this error message: Error: 10502 (Host unreachable) thinking that > means the server IS turned off. But when I run the updater file it > tells me it is still running. > > HELP? > > Jon Montgomery - Illinois Grade School Music Assoication > > > On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald > > wrote: > >> Before you do anything else, try using HTTPS instead of HTTP. >> >> Malcolm >> >> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>> Hey Chris, >>> >>> Thanks for the info. I put the code in and this is what it yielded: >>> >>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at >>> line 1 >>> >>> Could this be a Filemaker Server 14 port conflict? When I installed >>> (or deployed, I don?t remember) but got the message that ports 80 >>> and 443 were in use click to disable those other applications using >>> those ports (or something to that effect). I did. >>> >>> After that, the FMS tests all worked but I had no PHP (in >>> phpinfo.php) running. Poked around in terminal and got Appache >>> running and got PHP info page up. But then get these FX_Errors as >>> in original post. >>> >>> Could my server set up be what is causing my problem since I cannot >>> get any XML data from the link? >>> >>> Thanks! >>> >>> Jon >>> >>> >>> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >>> >>>> Hey Jon, >>>> >>>> Are you sure that XML sharing is enabled on FileMaker Server on >>>> your local machine? Basically, the URL that you see there is >>>> (semi) equivalent of the request being made to FileMaker. You >>>> should be able to click on that link and get back the XML that >>>> FileMaker outputs. For some reason, the connection to your locally >>>> running FileMaker isn't working, and that's the bit that you need >>>> to debug. >>>> >>>> At any rate, when you get an FX error object, it means that FX was >>>> never able to connect to the server for one reason or another. >>>> Something that even experienced developers tend not to do, that >>>> they should be doing, is trap for errors. So, that would look >>>> something like this: >>>> >>>> // the rest of your query code would be above this >>>> $qResult = $q->FMFind(); >>>> if (FX::isError($qResult)) { >>>> echo $qResult->getMessage(); >>>> } >>>> elseif ($qResult[?errorCode?] != 0) { >>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>> } >>>> else { >>>> // your data set logic goes here >>>> } >>>> >>>> FYI, the curly braces inside the FileMaker error quotes help PHP to >>>> parse where the variable begins and ends. >>>> >>>> HTH >>>> >>>> --Chris >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151104/25e7df3f/attachment-0001.html From fxphp at igsmasouth.org Tue Nov 3 17:01:49 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Tue Nov 3 17:01:54 2015 Subject: [FX.php List] Help with error message In-Reply-To: <563915A6.1010804@notyourhomework.net> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> <563915A6.1010804@notyourhomework.net> Message-ID: Chris, Bob, Tim ?Webco?, Malcolm, Ted, Steve V. and anyone else who commented and I missed: Thank you for your help! I have fixed the problem with my development computer and can proceed. Bob Patin was the first one to notice that something was not right on my computer during a tutoring session on FX a week ago. You all gave me great advice and what to do to track down the problem. I have learned a lot! Chris Hansen, what an honor to have you chime in! You pointed me the right way on RE-installing FMS14 as well as a LOT of things before I even got to that. Since FileMaker Server demands total control over ports 80 and 443, I had to move my website inside the FileMakerServer folder?> HTTPServer?> htdocs folder. Then pointed Dreamweaver site information to point to that folder. NOW it all works. FileMaker web server just has to handle all the webpages. I have a high regard for everyone on this site and even though I was not using FX at the time, I gained knowledge from all you geniuses! Thanks again! You WILL get more questions from me in the near future I am sure. This is so much FUN! Jon Montgomery, vice president, RETIRED (as of 11/2/2015, but the hired me to keep doing their website and music contest site) Illinois Grade School Music Association - Southern Division igsmasouth.org On Nov 3, 2015, at 2:14 PM, Malcolm Fitzgerald wrote: > Hi Jon, > > Your problem is simple. You are using "HTTPS" but you are insisting that it communicate on port 80. That's a common gotcha! I'm also seeing the SSL certificate error. I'm not sure what you've done wrong with the installation but that is fixable and will not stop you from connecting. Just click all the buttons to continue. The URL that I just tried, successfully, is this: > > https://www.igsmasouth.org/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find > > Using that URL I get to see an authentication box, asking me to provide a user account. > > Malcolm > > On 4/11/2015 6:55 am, Jon Montgomery wrote: >> Gentlemen: >> >> I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? >> >> I get this with ?http?: >> >> Accessing FileMaker Server 7+ data. >> >> Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find >> >> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >> >> >> Changing the server_data.php ( $scheme = 'https?; ) yields: >> >> Accessing FileMaker Server 7+ data. >> >> Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find >> >> FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. >> >> >> Copy and pasting the FileMaker URL using ?http" into browser page and/or clicking the link yields: >> >> The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. >> >> Copy and pasting the FileMaker URL using ?https? into browser page and/or clicking the link yields: >> >> SSL connection error >> >> >> ERR_SSL_PROTOCOL_ERROR >> >> >> >> I do not have SSL set up for anything on this machine. >> >> I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: >> >> ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. >> >> Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. >> >> HELP? >> >> Jon Montgomery - Illinois Grade School Music Assoication >> >> >> On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald wrote: >> >>> Before you do anything else, try using HTTPS instead of HTTP. >>> >>> Malcolm >>> >>> On 1/11/2015 4:49 pm, Jon Montgomery wrote: >>>> Hey Chris, >>>> >>>> Thanks for the info. I put the code in and this is what it yielded: >>>> >>>> FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 >>>> >>>> Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don?t remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. >>>> >>>> After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. >>>> >>>> Could my server set up be what is causing my problem since I cannot get any XML data from the link? >>>> >>>> Thanks! >>>> >>>> Jon >>>> >>>> >>>> On Oct 31, 2015, at 10:26 PM, Chris Hansen wrote: >>>> >>>>> Hey Jon, >>>>> >>>>> Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. >>>>> >>>>> At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: >>>>> >>>>> // the rest of your query code would be above this >>>>> $qResult = $q->FMFind(); >>>>> if (FX::isError($qResult)) { >>>>> echo $qResult->getMessage(); >>>>> } >>>>> elseif ($qResult[?errorCode?] != 0) { >>>>> echo "A FileMaker error occurred ({$qResult[?errorCode?]})"; >>>>> } >>>>> else { >>>>> // your data set logic goes here >>>>> } >>>>> >>>>> FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. >>>>> >>>>> HTH >>>>> >>>>> --Chris >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151103/c05168f6/attachment-0001.html From lars.arler at mediadesign.dk Wed Nov 4 04:04:33 2015 From: lars.arler at mediadesign.dk (Lars Luciano Arler) Date: Wed Nov 4 04:04:38 2015 Subject: [FX.php List] Need help to figure out any FX.php or FMSA pitfalls upgrading from FMSA 9 to FMSA 12 Message-ID: <43EA4B72-65FA-45CE-9636-442780179BEC@mediadesign.dk> Hey and thanks in advance. I have been running FMSA 9 for years and have to move a site to FMSA 12.06.600 / OS X 10.9.5 Any pitfalls FX.php vice to consider ?? I have just converted the DB to FM12 In FX_4.0 ?server_data.php? - $dataSourceType = 'FMPro7?; change to 'FMPro12?; Should I stay with FX_4.0 or upgrade FX_6.x straight away or wait until everything works as before ?? Any benefits with upgrading to FX_6.x Any advice or guides to info is greatly appreciated. Regards Lars Luciano Arler Copenhagen - Denmark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151104/918b4729/attachment.html From fxphp at igsmasouth.org Wed Nov 4 06:20:08 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Wed Nov 4 06:20:13 2015 Subject: [FX.php List] Need help to figure out any FX.php or FMSA pitfalls upgrading from FMSA 9 to FMSA 12 In-Reply-To: <43EA4B72-65FA-45CE-9636-442780179BEC@mediadesign.dk> References: <43EA4B72-65FA-45CE-9636-442780179BEC@mediadesign.dk> Message-ID: <26E0C7D1-08FB-489F-98C6-3BFB9798E1A7@igsmasouth.org> Lars, I am in the middle of my conversion to FMSA 14 / OS X 10.9. It could be there are other pitfalls that I will find along the way, but here is what i have leaned just from reading all the posts on this list (you can go look at all of them as a problem you run into probably has already been solved in the past years since the move to the newer fmp12 format). YES, upgrade to the NEWEST version of FX.PHP! Benefits to upgrading to FX.PHP v6, it works with FMPro12 files. Leave $dataSourceType set to ?FMPro7? If you have portal rows on a layout, you will encounter some problems, however, there is a work around and it involves changing the $dataSourceType to ?fmalt? (I think I spelled it correctly but now sure) that is why when I rebuilt my database in .fmp12, I am avoiding portals on the web layouts. I am sure there is more but those seem to be the major things to look at. HTH Jon Montgomery Illinois Grade School Music Association - Southern Division igsmasouth.org On Nov 4, 2015, at 5:04 AM, Lars Luciano Arler wrote: > Hey and thanks in advance. > > I have been running FMSA 9 for years and have to move a site to FMSA 12.06.600 / OS X 10.9.5 > > Any pitfalls FX.php vice to consider ?? > > I have just converted the DB to FM12 > In FX_4.0 ?server_data.php? - $dataSourceType = 'FMPro7?; change to 'FMPro12?; > > Should I stay with FX_4.0 or upgrade FX_6.x straight away or wait until everything works as before ?? > Any benefits with upgrading to FX_6.x > > Any advice or guides to info is greatly appreciated. > > Regards > Lars Luciano Arler > > Copenhagen - Denmark > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151104/28166b1f/attachment.html From lars.arler at mediadesign.dk Wed Nov 4 08:20:13 2015 From: lars.arler at mediadesign.dk (Lars Luciano Arler) Date: Wed Nov 4 08:20:46 2015 Subject: [FX.php List] Need help to figure out any FX.php or FMSA pitfalls upgrading from FMSA 9 to FMSA 12 In-Reply-To: <26E0C7D1-08FB-489F-98C6-3BFB9798E1A7@igsmasouth.org> References: <43EA4B72-65FA-45CE-9636-442780179BEC@mediadesign.dk> <26E0C7D1-08FB-489F-98C6-3BFB9798E1A7@igsmasouth.org> Message-ID: <974DD7E8-40EC-4471-993F-A6694BE72646@mediadesign.dk> Thanks a lot that help a lot !! Now I?m up and running and only have to do some search and replace site vice (.fm7 to .fmp12) and FX_4.0 to FX_6.0 ?? jubiiiiiii ;-) > On 04 Nov 2015, at 14:20, Jon Montgomery > wrote: > > Lars, > > I am in the middle of my conversion to FMSA 14 / OS X 10.9. It could be there are other pitfalls that I will find along the way, but here is what i have leaned just from reading all the posts on this list (you can go look at all of them as a problem you run into probably has already been solved in the past years since the move to the newer fmp12 format). > > YES, upgrade to the NEWEST version of FX.PHP! Benefits to upgrading to FX.PHP v6, it works with FMPro12 files. > > Leave $dataSourceType set to ?FMPro7? > > If you have portal rows on a layout, you will encounter some problems, however, there is a work around and it involves changing the $dataSourceType to ?fmalt? (I think I spelled it correctly but now sure) that is why when I rebuilt my database in .fmp12, I am avoiding portals on the web layouts. > > I am sure there is more but those seem to be the major things to look at. > > HTH > > Jon Montgomery > Illinois Grade School Music Association - Southern Division > igsmasouth.org > > On Nov 4, 2015, at 5:04 AM, Lars Luciano Arler > wrote: > >> Hey and thanks in advance. >> >> I have been running FMSA 9 for years and have to move a site to FMSA 12.06.600 / OS X 10.9.5 >> >> Any pitfalls FX.php vice to consider ?? >> >> I have just converted the DB to FM12 >> In FX_4.0 ?server_data.php? - $dataSourceType = 'FMPro7?; change to 'FMPro12?; >> >> Should I stay with FX_4.0 or upgrade FX_6.x straight away or wait until everything works as before ?? >> Any benefits with upgrading to FX_6.x >> >> Any advice or guides to info is greatly appreciated. >> >> Regards >> Lars Luciano Arler >> >> Copenhagen - Denmark >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151104/35ec35c2/attachment.html From pvanbuskirk at fsu.edu Mon Nov 9 11:31:53 2015 From: pvanbuskirk at fsu.edu (VanBuskirk, Patricia) Date: Mon Nov 9 11:31:57 2015 Subject: [FX.php List] FX and FM14 Message-ID: Hi group, We are upgrading to FMP14, and I am having trouble getting my custom web pages to work (something to do with the port being used by WebDirect). At this point, I'm just moving some test pages over to the folder where the FM Databases web page exists, but having trouble connecting to the databases. My question at this time is concerning the syntax in the connections. Has the following line changed with v14? $InstanceName = new FX('127.0.0.1', 591, 'FMPro7', 'HTTPS'); // to connect to FM7SA using HTTPS Any assistance will be greatly appreciated!! Trish V. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151109/6c390493/attachment.html From fxphp at igsmasouth.org Mon Nov 9 11:43:44 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Mon Nov 9 11:43:52 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: References: Message-ID: Trish V., I just stated using FMS14 and had similar problems. First of all I am using ?FMPro7? and it works fine. Chris Hansen stated in one of my posts that FileMaker Server 14 likes it?s OWN instance of Apache. Left all the port numbers the same when I reinstalled FMS14, then, in searching some info online with this issue, I moved my website to: On the Mac: Library-> Filemaker Server-> HTTPServer-> htdocs Put my webpages there and then, because I use Dreamweaver, pointed my site to that page and all has worked fine since. Hope this helps. Jon Montgomery Illinois Grade School Music Association - Southern Division igsmasouth.org On Nov 9, 2015, at 12:31 PM, VanBuskirk, Patricia wrote: > Hi group, > > We are upgrading to FMP14, and I am having trouble getting my custom web pages to work (something to do with the port being used by WebDirect). At this point, I?m just moving some test pages over to the folder where the FM Databases web page exists, but having trouble connecting to the databases. > > My question at this time is concerning the syntax in the connections. Has the following line changed with v14? > > $InstanceName = new FX('127.0.0.1', 591, 'FMPro7', 'HTTPS'); // to connect to FM7SA using HTTPS > > Any assistance will be greatly appreciated!! > > Trish V. > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151109/6e899bfe/attachment-0001.html From rogerkiwi at mac.com Mon Nov 9 13:20:02 2015 From: rogerkiwi at mac.com (Roger Moffat) Date: Mon Nov 9 13:20:14 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: References: Message-ID: > On Nov 9, 2015, at 1:43 PM, Jon Montgomery wrote: > > Chris Hansen stated in one of my posts that FileMaker Server 14 likes it?s OWN instance of Apache. Left all the port numbers the same when I reinstalled FMS14, then, in searching some info online with this issue, I moved my website to: > > On the Mac: > > Library-> Filemaker Server-> HTTPServer-> htdocs > Is there an httpd.conf file that controls that Apache so that things like Virtual Hosts can be setup as is currently the case in the Mac OS X Apache server? Currently I run a 2 machine setup with Apache on one and FileMaker Server 12 on the other. They?re both Mac minis running Mac OS X 10.9 The Apache is dealing with over 30 virtual hosts, and 4 of them interact with FileMaker Server on the other machine. I?m still on Server 12 (even though with our subscription I have access to Server 13 and now Server 14) for fear of things breaking, and this seems way more likely to break things than anything else I?ve heard about? Is it now recommended/compulsory that it be a single machine setup? Thanks! Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151109/7c0f1c53/attachment.html From fxphp at igsmasouth.org Mon Nov 9 14:30:47 2015 From: fxphp at igsmasouth.org (Jon Montgomery) Date: Mon Nov 9 14:30:52 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: References: Message-ID: <5AF55C46-3192-45DD-AB66-A1C4ED9113F8@igsmasouth.org> Roger, I am afraid that I cannot answer that, it is way over my head. I only have one machine to work on so it has to be a ?one machine? set up. There are other threads on this list you can check from a year ago that sort of address this problem I think. At least it gave me some ideas as to what was going on on my end. In one of the responses on my thread ?Help with error message? Here is what Chris Hansen responded that pointed me in the correct direction. The answers are out there, some, no MANY, jump right over my head. After reading what Chis suggested, I was able to find out just how to make it work. Chris Hansen posted: "The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs.? This made all work for me. But if you have your two machine set up working with FMS12 great! Take a look at this thread: http://www.iviking.org/pipermail/fx.php_list/2014-March/012724.html It might spread some light on what you are asking. Jon Montgomery, Vice President Illinois Grade School Music Association - Southern Division vicepresident@igsmasouth.org On Nov 9, 2015, at 2:20 PM, Roger Moffat wrote: > >> On Nov 9, 2015, at 1:43 PM, Jon Montgomery wrote: >> >> Chris Hansen stated in one of my posts that FileMaker Server 14 likes it?s OWN instance of Apache. Left all the port numbers the same when I reinstalled FMS14, then, in searching some info online with this issue, I moved my website to: >> >> On the Mac: >> >> Library-> Filemaker Server-> HTTPServer-> htdocs >> > > Is there an httpd.conf file that controls that Apache so that things like Virtual Hosts can be setup as is currently the case in the Mac OS X Apache server? > > Currently I run a 2 machine setup with Apache on one and FileMaker Server 12 on the other. They?re both Mac minis running Mac OS X 10.9 > > The Apache is dealing with over 30 virtual hosts, and 4 of them interact with FileMaker Server on the other machine. > > I?m still on Server 12 (even though with our subscription I have access to Server 13 and now Server 14) for fear of things breaking, and this seems way more likely to break things than anything else I?ve heard about? > > Is it now recommended/compulsory that it be a single machine setup? > > Thanks! > > Roger > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151109/d30798b1/attachment.html From bob at patin.com Tue Nov 10 07:49:47 2015 From: bob at patin.com (Bob Patin) Date: Tue Nov 10 07:49:50 2015 Subject: [FX.php List] [OFF] Need help moving a MySQL WordPress to a new web server Message-ID: <56196D4A-7299-450F-9901-06FAFB4F07C6@patin.com> I have a WordPress site that was rescued from a failing web server; I have both the PHP pages and the databases as well. I?ve already moved the MySQL databases onto the new web server, but don?t know how to get all of this running... I need to get them working on a different web server, but this is beyond my realm of expertise; if you are able to help with this, I would gladly pay for your wisdom. Please contact me back-channel; thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting _______________________________________________ FMPexperts mailing list FMPexperts@lists.ironclad.net.au http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151110/5d90963b/attachment.html From pvanbuskirk at fsu.edu Tue Nov 10 07:51:21 2015 From: pvanbuskirk at fsu.edu (VanBuskirk, Patricia) Date: Tue Nov 10 07:51:26 2015 Subject: [FX.php List] Help with error message In-Reply-To: <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> References: <4CA4E235-AC44-4D81-A7AE-A6080A0C1832@igsmasouth.org> <23B6C669-EB4A-46A7-84B3-75025D7B8D59@igsmasouth.org> <0F6FEDA5-D5C2-47D0-962C-336FA04FE17B@iViking.org> <56368EC1.7090108@notyourhomework.net> <5B3CE670-5547-48DF-B6CA-E5D2DE70B6B0@igsmasouth.org> <9CA13232-2743-4E25-A867-EF5A1598E0E2@iViking.org> Message-ID: Chris, Can you please contact me off-list, as I need to get your rates. I tried emailing you directly, but I got this back: mail.iviking.org rejected your message to the following email addresses: FX@iviking.org (FX@iviking.org) Your message couldn't be delivered because the recipient's email system reported the following error: '550 : Recipient address rejected: User unknown in local recipient table'. It's possible it's a temporary issue with their email system. Try to resend the message. If the problem continues, contact the recipient by some other means (by phone for example) and ask them to tell their email admin about the problem. Be sure to give them the error above, as it will better help them diagnose the problem. For Email Administrators This error is being returned by the recipient's email system but it doesn't include a valid, specific, enhanced SMTP status code, making it difficult to assess exactly what the problem is. Please carefully examine the error reported by the recipient's email system to help diagnose and troubleshoot the problem. Only the recipient's email admin will be able to fix this. mail.iviking.org gave this error: >: Recipient address rejected: User unknown in local recipient table Thanks, Trish From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris Hansen Sent: Tuesday, November 3, 2015 1:12 PM To: FX.php Discussion List Subject: Re: [FX.php List] Help with error message Hey Jon, Sorry not to respond earlier. A whole bunch of list emails showed up in my inbox this AM. The most recent versions of FileMaker Server definitely don't play nicely with other software any more. To be safe, you need to be using FileMaker's Apache _and_ PHP installs. As to your current problem, I've found that there are times when it's useful to manually quit the FileMaker processes. On your Mac, open Activity Monitor in the Applications > Utilities directory. If you sort the processes by User you'll find all the FileMaker processes grouped together, and you can quit them one at a time. That should allow you to install. That said, you may have the most success if you uninstall before installing. HTH --Chris On Nov 3, 2015, at 10:55 AM, Jon Montgomery > wrote: Gentlemen: I have tried all variations and suggestions you have posted for me. Thank you. Unfortunately, none of those helped much if at all? I get this with "http": Accessing FileMaker Server 7+ data. Using FileMaker URL: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 Changing the server_data.php ( $scheme = 'https'; ) yields: Accessing FileMaker Server 7+ data. Using FileMaker URL: https://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=IGSMA_Membership&-lay=login&-max=50&Login_ID=5501.1&Password=music4u&-find FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. Copy and pasting the FileMaker URL using "http" into browser page and/or clicking the link yields: The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server. Copy and pasting the FileMaker URL using "https" into browser page and/or clicking the link yields: SSL connection error ERR_SSL_PROTOCOL_ERROR I do not have SSL set up for anything on this machine. I am thinking that there is something WRONG with my FileMaker Server 14 installation. When I have tried to do the update to version 14v3 from version 14v2 I get this: ! This update cannot be installed while FileMaker Server is still running. Please stop FileMaker Server and try again. Following the instructions for the update: Closed all databases, turned on WEP, turned off Server in Admin Console. Quite Admin Console and then when to Terminal and did: fmsadmin stop server and got this error message: Error: 10502 (Host unreachable) thinking that means the server IS turned off. But when I run the updater file it tells me it is still running. HELP? Jon Montgomery - Illinois Grade School Music Assoication On Nov 1, 2015, at 4:14 PM, Malcolm Fitzgerald > wrote: Before you do anything else, try using HTTPS instead of HTTP. Malcolm On 1/11/2015 4:49 pm, Jon Montgomery wrote: Hey Chris, Thanks for the info. I put the code in and this is what it yielded: FX: ExecuteQuery XML error: SYSTEM or PUBLIC, the URI is missing at line 1 Could this be a Filemaker Server 14 port conflict? When I installed (or deployed, I don't remember) but got the message that ports 80 and 443 were in use click to disable those other applications using those ports (or something to that effect). I did. After that, the FMS tests all worked but I had no PHP (in phpinfo.php) running. Poked around in terminal and got Appache running and got PHP info page up. But then get these FX_Errors as in original post. Could my server set up be what is causing my problem since I cannot get any XML data from the link? Thanks! Jon On Oct 31, 2015, at 10:26 PM, Chris Hansen > wrote: Hey Jon, Are you sure that XML sharing is enabled on FileMaker Server on your local machine? Basically, the URL that you see there is (semi) equivalent of the request being made to FileMaker. You should be able to click on that link and get back the XML that FileMaker outputs. For some reason, the connection to your locally running FileMaker isn't working, and that's the bit that you need to debug. At any rate, when you get an FX error object, it means that FX was never able to connect to the server for one reason or another. Something that even experienced developers tend not to do, that they should be doing, is trap for errors. So, that would look something like this: // the rest of your query code would be above this $qResult = $q->FMFind(); if (FX::isError($qResult)) { echo $qResult->getMessage(); } elseif ($qResult['errorCode'] != 0) { echo "A FileMaker error occurred ({$qResult['errorCode']})"; } else { // your data set logic goes here } FYI, the curly braces inside the FileMaker error quotes help PHP to parse where the variable begins and ends. HTH --Chris _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151110/c3458c54/attachment-0001.html From Tomy at Tomy-pa.de Tue Nov 10 07:52:49 2015 From: Tomy at Tomy-pa.de (Thomas Neumann) Date: Tue Nov 10 07:52:55 2015 Subject: [FX.php List] [OFF] Need help moving a MySQL WordPress to a new web server In-Reply-To: <56196D4A-7299-450F-9901-06FAFB4F07C6@patin.com> References: <56196D4A-7299-450F-9901-06FAFB4F07C6@patin.com> Message-ID: <564204C1.8000300@Tomy-pa.de> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4239 bytes Desc: S/MIME Cryptographic Signature Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20151110/2390433f/smime.bin From malcolm at notyourhomework.net Tue Nov 10 13:27:26 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Tue Nov 10 13:28:07 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: References: Message-ID: <5642532E.9000708@notyourhomework.net> On 10/11/2015 9:20 am, Roger Moffat wrote: > > Is there an httpd.conf file that controls that Apache so that things > like Virtual Hosts can be setup as is currently the case in the Mac OS > X Apache server? > > Currently I run a 2 machine setup with Apache on one and FileMaker > Server 12 on the other. They?re both Mac minis running Mac OS X 10.9 > > The Apache is dealing with over 30 virtual hosts, and 4 of them > interact with FileMaker Server on the other machine. > > I?m still on Server 12 (even though with our subscription I have > access to Server 13 and now Server 14) for fear of things breaking, > and this seems way more likely to break things than anything else I?ve > heard about? > > Is it now recommended/compulsory that it be a single machine setup? It is not necessary to be a single machine setup. I use single machine setup for development and a two machine setup for production. Previously, it was possible to run FMS beside other services without conflict. Now it matters: FileMaker has claimed the webserver and ports 80 and 443. Of course, it affects the machine running WPE. For running web pages along with FMS a. You can run another instance of Apache, provided it uses ports other than 80 and 443. b. You can move everything into the FileMaker web directory. c. Set up a virtual machine running BSD or Linux for your web services. I do both B and C. On my devbox I use vagrant to manage projects. On the production box the VMs are always alive Malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151111/047a0a31/attachment.html From rogerkiwi at mac.com Wed Nov 11 05:53:48 2015 From: rogerkiwi at mac.com (Roger Moffat) Date: Wed Nov 11 05:54:01 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: <5642532E.9000708@notyourhomework.net> References: <5642532E.9000708@notyourhomework.net> Message-ID: <2199D3B5-2147-43D8-92AD-30FC70971775@mac.com> Malcolm - thank you! > On Nov 10, 2015, at 3:27 PM, Malcolm Fitzgerald wrote: > > Previously, it was possible to run FMS beside other services without conflict. Now it matters: FileMaker has claimed the webserver and ports 80 and 443. Of course, it affects the machine running WPE. > > For running web pages along with FMS > a. You can run another instance of Apache, provided it uses ports other than 80 and 443. This seems like a non-starter without some trickery somewhere to change requests on Port 80 for domain xxxxx to be handled as requests on Port 8080 (for example) for domain xxxxx > b. You can move everything into the FileMaker web directory. If I do that, is there a way to have virtual hosts set up so that all of my domains/sub-domains still all work as expected. > c. Set up a virtual machine running BSD or Linux for your web services. Another level of complication for a lowly volunteer for a genealogical society with a bunch of databases totalling 2.7 million records online from 2 Mac minis in his basement to try and wrap his head around. Here?s a simplified example of my situation. I have a two machine FileMaker setup Mac mini Apache is set up with PHP, MySQL and Apache all running under regular Mac OS X 10.9 This has the FileMaker WPE installed on it Mac mini FileMaker also running Mac OS X 10.9 is set up with FileMaker Server 12 and holds all the FileMaker databases. Our genealogy society has a Volume License Agreement with FileMaker, but I don?t always upgrade for every version - I?m on Server 12 now, having moved there from Server 10 and to there from Server 8. An upgrade usually involved lots of homework, then taking both machines off-line - routing all requests for everything to another Macintosh that simply displays a ?sorry we?re down - I?m upgrading? page for hopefully the few hours it takes to achieve the upgrade. I don?t have enough resources to build the new setup in parallel and then switch to it when it?s running. I have a single IP number and the routing takes place in an AirPort Extreme base station - most requests are sent to Mac mini Apache (web, FTP etc) while FileMaker type requests (Server Admin on port 16000, FileMaker requests on 5003 and whatever other ports are involved) are sent to Mac mini FileMaker based on the Port being requested. Two of the domains I host are LisaAndRoger.com and data.wmgs.org LisaAndRoger.com is a WordPress install. It is run entirely from Mac mini Apache and has no interaction with Mac mini FileMaker data.wmgs.org is a site with a number of FileMaker databases. It?s run from Mac mini Apache with the WPE calling Mac mini FileMaker for all the database queries If I move to FileMaker Server 14 I would expect to keep this same setup in terms of the two Mac minis, and from your b above it seems like it ought to continue if instead of using "/Library/Web Server/Documents" for all of the domains and sub-domains I use the FileMaker Web Directory - assuming that there?s a way there to separate out all the different domains and sub-domains using httpd-vhosts.conf on the FileMaker instance of Apache as I currently have setup in ?etc/apache2/extra/httpd-vhosts.conf?. Much of my difficulty with this is that I am trying to visualise this without the ability to try it out - the two machines I have available to try out FileMaker Server 14 are now running Mac OS X 10.11 El Capitan, and this page http://help.filemaker.com/app/answers/detail/a_id/15187/~/filemaker-14-platform-and-os-x-el-capitan would seem to indicate that FileMaker Server 14 doesn?t work with El Capitan, and this page https://community.filemaker.com/docs/DOC-6395 indicates there will be an update in November. Thanks for your time to try and help me understand this. Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151111/9b922123/attachment-0001.html From steve at bluecrocodile.co.nz Wed Nov 11 08:52:09 2015 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Nov 11 08:52:18 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: <2199D3B5-2147-43D8-92AD-30FC70971775@mac.com> References: <5642532E.9000708@notyourhomework.net> <2199D3B5-2147-43D8-92AD-30FC70971775@mac.com> Message-ID: Hi Roger If you?re running OS X then things aren?t anything like as bad from the ?ports used? perspective as if you were on Windows. You can more-or-less keep doing what you?ve been doing, you just need to edit a different config file to the default apache one, and restart apache differently as well. Once you have FMS 14 installed on the machine, it essentially disables the default Apache install, and sets up its own. The config files for which are found in: /Library/FileMaker Server/HttpServer/conf which should all look familiar to you in terms of files etc. If you make changes to those config files and need to restart the FM instance of Apache use sudo /Library/FileMaker\ Server/HTTPServer/bin/httpdctl graceful I?d also suggest taking a look at https://community.filemaker.com/thread/75138?start=0&tstart=0 which talk about the FMS13 world, but at the end of the thread you?ll see that people are also making use of this for FMS14. Hope this helps. Cheers Steve > Malcolm - thank you! > >> On Nov 10, 2015, at 3:27 PM, Malcolm Fitzgerald > wrote: >> >> Previously, it was possible to run FMS beside other services without conflict. Now it matters: FileMaker has claimed the webserver and ports 80 and 443. Of course, it affects the machine running WPE. >> >> For running web pages along with FMS >> a. You can run another instance of Apache, provided it uses ports other than 80 and 443. > > This seems like a non-starter without some trickery somewhere to change requests on Port 80 for domain xxxxx to be handled as requests on Port 8080 (for example) for domain xxxxx > >> b. You can move everything into the FileMaker web directory. > > If I do that, is there a way to have virtual hosts set up so that all of my domains/sub-domains still all work as expected. > >> c. Set up a virtual machine running BSD or Linux for your web services. > > Another level of complication for a lowly volunteer for a genealogical society with a bunch of databases totalling 2.7 million records online from 2 Mac minis in his basement to try and wrap his head around. > > Here?s a simplified example of my situation. > > I have a two machine FileMaker setup > > Mac mini Apache is set up with PHP, MySQL and Apache all running under regular Mac OS X 10.9 This has the FileMaker WPE installed on it > > Mac mini FileMaker also running Mac OS X 10.9 is set up with FileMaker Server 12 and holds all the FileMaker databases. > > Our genealogy society has a Volume License Agreement with FileMaker, but I don?t always upgrade for every version - I?m on Server 12 now, having moved there from Server 10 and to there from Server 8. An upgrade usually involved lots of homework, then taking both machines off-line - routing all requests for everything to another Macintosh that simply displays a ?sorry we?re down - I?m upgrading? page for hopefully the few hours it takes to achieve the upgrade. I don?t have enough resources to build the new setup in parallel and then switch to it when it?s running. > > I have a single IP number and the routing takes place in an AirPort Extreme base station - most requests are sent to Mac mini Apache (web, FTP etc) while FileMaker type requests (Server Admin on port 16000, FileMaker requests on 5003 and whatever other ports are involved) are sent to Mac mini FileMaker based on the Port being requested. > > Two of the domains I host are LisaAndRoger.com and data.wmgs.org > > LisaAndRoger.com is a WordPress install. It is run entirely from Mac mini Apache and has no interaction with Mac mini FileMaker > > data.wmgs.org is a site with a number of FileMaker databases. It?s run from Mac mini Apache with the WPE calling Mac mini FileMaker for all the database queries > > If I move to FileMaker Server 14 I would expect to keep this same setup in terms of the two Mac minis, and from your b above it seems like it ought to continue if instead of using "/Library/Web Server/Documents" for all of the domains and sub-domains I use the FileMaker Web Directory - assuming that there?s a way there to separate out all the different domains and sub-domains using httpd-vhosts.conf on the FileMaker instance of Apache as I currently have setup in ?etc/apache2/extra/httpd-vhosts.conf?. > > Much of my difficulty with this is that I am trying to visualise this without the ability to try it out - the two machines I have available to try out FileMaker Server 14 are now running Mac OS X 10.11 El Capitan, and this page > > http://help.filemaker.com/app/answers/detail/a_id/15187/~/filemaker-14-platform-and-os-x-el-capitan > > would seem to indicate that FileMaker Server 14 doesn?t work with El Capitan, and this page > > https://community.filemaker.com/docs/DOC-6395 > > indicates there will be an update in November. > > Thanks for your time to try and help me understand this. > > Roger > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151111/a6cff538/attachment.html From malcolm at notyourhomework.net Wed Nov 11 14:20:01 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Wed Nov 11 14:20:58 2015 Subject: [FX.php List] FX and FM14 In-Reply-To: <2199D3B5-2147-43D8-92AD-30FC70971775@mac.com> References: <5642532E.9000708@notyourhomework.net> <2199D3B5-2147-43D8-92AD-30FC70971775@mac.com> Message-ID: <5643B101.3070106@notyourhomework.net> On 12/11/2015 1:53 am, Roger Moffat wrote: > Malcolm - thank you! > >> On Nov 10, 2015, at 3:27 PM, Malcolm Fitzgerald >> > wrote: >> >> Previously, it was possible to run FMS beside other services without >> conflict. Now it matters: FileMaker has claimed the webserver and >> ports 80 and 443. Of course, it affects the machine running WPE. >> >> For running web pages along with FMS >> a. You can run another instance of Apache, provided it uses ports >> other than 80 and 443. > > This seems like a non-starter without some trickery somewhere to > change requests on Port 80 for domain xxxxx to be handled as requests > on Port 8080 (for example) for domain xxxxx If you can get the right advice that may be the easiest option. In our production system we use VMs but we have IP addresses for each of them. With only a single IP and two sets of services using port 80 you would still have to train your DNS and routers to handle the traffic appropriately. Malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151112/5efb1be0/attachment-0001.html From bob at patin.com Thu Nov 12 08:14:19 2015 From: bob at patin.com (Bob Patin) Date: Thu Nov 12 08:14:23 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script Message-ID: I have a shopping cart that has been working great for a long time; when they view their cart, they can change the quantity on an item and click UPDATE, which posts the little form (with 2 fields in it) to the following PHP page: SetDBData($dbname5,'web_lineitems'); $q->SetDBPassword($pw,$un); $q->AddDBParam('-recid',$recid); $q->AddDBParam('quantity',$quantity); $qResult = $q->FMEdit(); header('Location: cart_view.php'); ?> It hangs up and never finishes; I?ve checked to make sure that all the variables are loading from the server-data page, so it?s not that; the cart works fine otherwise, but this page causes the browser to hang up, and the only thing that seems to fix it is to close the browser. Anyone have this error before? Could this be caused by a PHP config issue? I seem to recall that they updated PHP a month or so ago. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151112/1226c30c/attachment.html From bob at minteer.org Thu Nov 12 08:44:38 2015 From: bob at minteer.org (Bob Minteer) Date: Thu Nov 12 08:44:41 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: References: Message-ID: <5644B3E6.3050201@minteer.org> Bob, Just a possibility, place an "exit;" after the header function and before the closing php tag as such: ------ . . . $qResult = $q->FMEdit(); header('Location: cart_view.php'); exit; // <--- try this ?> ------- Let me know if that helps. regards... Bob Minteer Bob Patin wrote: > I have a shopping cart that has been working great for a long time; when > they view their cart, they can change the quantity on an item and click > UPDATE, which posts the little form (with 2 fields in it) to the > following PHP page: > > session_start(); > > include_once('FX/FX.php'); > include_once('FX/server_data.php'); > > $recid = trim(htmlspecialchars($_POST['r'])); > $quantity = trim(htmlspecialchars($_POST['q'])); > > // edit lineitem > $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); > $q->SetDBData($dbname5,'web_lineitems'); > $q->SetDBPassword($pw,$un); > $q->AddDBParam('-recid',$recid); > $q->AddDBParam('quantity',$quantity); > $qResult = $q->FMEdit(); > > header('Location: cart_view.php'); > > ?> > > It hangs up and never finishes; I?ve checked to make sure that all the > variables are loading from the server-data page, so it?s not that; the > cart works fine otherwise, but this page causes the browser to hang up, > and the only thing that seems to fix it is to close the browser. > > Anyone have this error before? Could this be caused by a PHP config > issue? I seem to recall that they updated PHP a month or so ago. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -- Bob Minteer bob@minteer.org From bob at patin.com Thu Nov 12 08:54:37 2015 From: bob at patin.com (Bob Patin) Date: Thu Nov 12 08:54:39 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: <5644B3E6.3050201@minteer.org> References: <5644B3E6.3050201@minteer.org> Message-ID: <3AAD1324-1FFB-4C88-A1BB-ECDFFBCF1276@patin.com> I was hopeful, but it didn?t help? I tried 2 tests: 1. Comment out the query - WORKS 2. Exit before the HEADER() command, echo the errorCode - worked once, then failed I did find this setting in PHP config: allow_url_include - currently set to OFF Is this something that could affect things like this? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 12, 2015, at 9:44 AM, Bob Minteer wrote: > > Bob, > > Just a possibility, place an "exit;" after the header function and > before the closing php tag as such: > > ------ > . > . > . > $qResult = $q->FMEdit(); > > header('Location: cart_view.php'); > > exit; // <--- try this > > ?> > > ------- > > Let me know if that helps. > > regards... > > Bob Minteer > > > > > Bob Patin wrote: >> I have a shopping cart that has been working great for a long time; when >> they view their cart, they can change the quantity on an item and click >> UPDATE, which posts the little form (with 2 fields in it) to the >> following PHP page: >> >> > session_start(); >> >> include_once('FX/FX.php'); >> include_once('FX/server_data.php'); >> >> $recid = trim(htmlspecialchars($_POST['r'])); >> $quantity = trim(htmlspecialchars($_POST['q'])); >> >> // edit lineitem >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >> $q->SetDBData($dbname5,'web_lineitems'); >> $q->SetDBPassword($pw,$un); >> $q->AddDBParam('-recid',$recid); >> $q->AddDBParam('quantity',$quantity); >> $qResult = $q->FMEdit(); >> >> header('Location: cart_view.php'); >> >> ?> >> >> It hangs up and never finishes; I?ve checked to make sure that all the >> variables are loading from the server-data page, so it?s not that; the >> cart works fine otherwise, but this page causes the browser to hang up, >> and the only thing that seems to fix it is to close the browser. >> >> Anyone have this error before? Could this be caused by a PHP config >> issue? I seem to recall that they updated PHP a month or so ago. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com > >> 615-333-6858 >> FileMaker 9, 10, 11, 12 & 13 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com > >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > -- > > Bob Minteer > bob@minteer.org > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151112/799e2099/attachment-0001.html From bob at minteer.org Thu Nov 12 09:09:33 2015 From: bob at minteer.org (Bob Minteer) Date: Thu Nov 12 09:09:36 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: <3AAD1324-1FFB-4C88-A1BB-ECDFFBCF1276@patin.com> References: <5644B3E6.3050201@minteer.org> <3AAD1324-1FFB-4C88-A1BB-ECDFFBCF1276@patin.com> Message-ID: <5644B9BD.8030304@minteer.org> Bob, The settinh "allow_url_include = 0" is the default and should not affect local includes. Mine is off and all is well. Which versions of FMS, PHP and FX.php are you working with ? Have you var_dump()'d the returned object, $qResult ? Does that look OK or does the script actually hang on the FX call itself ? All things I'd be looking to know to troubleshoot the issue. regards... Bob Bob Patin wrote: > I was hopeful, but it didn?t help? > > I tried 2 tests: > > 1. Comment out the query - WORKS > 2. Exit before the HEADER() command, echo the errorCode - worked once, > then failed > > I did find this setting in PHP config: > > allow_url_include - currently set to OFF > > Is this something that could affect things like this? > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > >> On Nov 12, 2015, at 9:44 AM, Bob Minteer > > wrote: >> >> Bob, >> >> Just a possibility, place an "exit;" after the header function and >> before the closing php tag as such: >> >> ------ >> . >> . >> . >> $qResult = $q->FMEdit(); >> >> header('Location: cart_view.php'); >> >> exit; // <--- try this >> >> ?> >> >> ------- >> >> Let me know if that helps. >> >> regards... >> >> Bob Minteer >> >> >> >> >> Bob Patin wrote: >>> I have a shopping cart that has been working great for a long time; when >>> they view their cart, they can change the quantity on an item and click >>> UPDATE, which posts the little form (with 2 fields in it) to the >>> following PHP page: >>> >>> >> session_start(); >>> >>> include_once('FX/FX.php'); >>> include_once('FX/server_data.php'); >>> >>> $recid = trim(htmlspecialchars($_POST['r'])); >>> $quantity = trim(htmlspecialchars($_POST['q'])); >>> >>> // edit lineitem >>> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >>> $q->SetDBData($dbname5,'web_lineitems'); >>> $q->SetDBPassword($pw,$un); >>> $q->AddDBParam('-recid',$recid); >>> $q->AddDBParam('quantity',$quantity); >>> $qResult = $q->FMEdit(); >>> >>> header('Location: cart_view.php'); >>> >>> ?> >>> >>> It hangs up and never finishes; I?ve checked to make sure that all the >>> variables are loading from the server-data page, so it?s not that; the >>> cart works fine otherwise, but this page causes the browser to hang up, >>> and the only thing that seems to fix it is to close the browser. >>> >>> Anyone have this error before? Could this be caused by a PHP config >>> issue? I seem to recall that they updated PHP a month or so ago. >>> >>> Thanks, >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> >>> 615-333-6858 >>> FileMaker 9, 10, 11, 12 & 13 Certified Developer >>> http://www.longtermsolutions.com >>> - >>> iChat: bobpatin@me.com >>> Twitter: bobpatin >>> ? >>> FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> -- >> >> Bob Minteer >> bob@minteer.org >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -- Bob Minteer bob@minteer.org From malcolm at notyourhomework.net Thu Nov 12 14:39:52 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Nov 12 14:41:02 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: References: Message-ID: <56450728.2030304@notyourhomework.net> Hi Bob, Location expects an absolute URL and you are supplying a relative URL. I know I've got away with relative URLs at different times but it's not guaranteed. Malcolm On 13/11/2015 4:14 am, Bob Patin wrote: > I have a shopping cart that has been working great for a long time; > when they view their cart, they can change the quantity on an item and > click UPDATE, which posts the little form (with 2 fields in it) to the > following PHP page: > > session_start(); > > include_once('FX/FX.php'); > include_once('FX/server_data.php'); > > $recid = trim(htmlspecialchars($_POST['r'])); > $quantity = trim(htmlspecialchars($_POST['q'])); > > // edit lineitem > $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); > $q->SetDBData($dbname5,'web_lineitems'); > $q->SetDBPassword($pw,$un); > $q->AddDBParam('-recid',$recid); > $q->AddDBParam('quantity',$quantity); > $qResult = $q->FMEdit(); > > header('Location: cart_view.php'); > > ?> > > It hangs up and never finishes; I?ve checked to make sure that all the > variables are loading from the server-data page, so it?s not that; the > cart works fine otherwise, but this page causes the browser to hang > up, and the only thing that seems to fix it is to close the browser. > > Anyone have this error before? Could this be caused by a PHP config > issue? I seem to recall that they updated PHP a month or so ago. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151113/6b15b364/attachment.html From bob at patin.com Thu Nov 12 15:18:50 2015 From: bob at patin.com (Bob Patin) Date: Thu Nov 12 15:18:54 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: <56450728.2030304@notyourhomework.net> References: <56450728.2030304@notyourhomework.net> Message-ID: Thanks for the reply; i found it? it was an INCLUDE that has some bad code in it? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 12, 2015, at 3:39 PM, Malcolm Fitzgerald wrote: > > Hi Bob, > > Location expects an absolute URL and you are supplying a relative URL. I know I've got away with relative URLs at different times but it's not guaranteed. > > Malcolm > > > > > On 13/11/2015 4:14 am, Bob Patin wrote: >> I have a shopping cart that has been working great for a long time; when they view their cart, they can change the quantity on an item and click UPDATE, which posts the little form (with 2 fields in it) to the following PHP page: >> >> > session_start(); >> >> include_once('FX/FX.php'); >> include_once('FX/server_data.php'); >> >> $recid = trim(htmlspecialchars($_POST['r'])); >> $quantity = trim(htmlspecialchars($_POST['q'])); >> >> // edit lineitem >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >> $q->SetDBData($dbname5,'web_lineitems'); >> $q->SetDBPassword($pw,$un); >> $q->AddDBParam('-recid',$recid); >> $q->AddDBParam('quantity',$quantity); >> $qResult = $q->FMEdit(); >> >> header('Location: cart_view.php'); >> >> ?> >> >> It hangs up and never finishes; I?ve checked to make sure that all the variables are loading from the server-data page, so it?s not that; the cart works fine otherwise, but this page causes the browser to hang up, and the only thing that seems to fix it is to close the browser. >> >> Anyone have this error before? Could this be caused by a PHP config issue? I seem to recall that they updated PHP a month or so ago. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11, 12 & 13 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151112/69fcdc85/attachment.html From beverlyvoth at gmail.com Thu Nov 12 15:33:24 2015 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Nov 12 15:33:31 2015 Subject: [FX.php List] Puzzling problem w/ little EDIT script In-Reply-To: <56450728.2030304@notyourhomework.net> References: <56450728.2030304@notyourhomework.net> Message-ID: that depends on the PHP version and if the ini "says it's ok", Malcolm. :) But I try to use absolute paths (which may be based on $_SERVER['DOCUMENT_ROOT'], so it's easy to move a file) Beverly On Nov 12, 2015, at 4:39 PM, Malcolm Fitzgerald wrote: > Hi Bob, > > Location expects an absolute URL and you are supplying a relative URL. I know I've got away with relative URLs at different times but it's not guaranteed. > > Malcolm > > > > > On 13/11/2015 4:14 am, Bob Patin wrote: >> I have a shopping cart that has been working great for a long time; when they view their cart, they can change the quantity on an item and click UPDATE, which posts the little form (with 2 fields in it) to the following PHP page: >> >> > session_start(); >> >> include_once('FX/FX.php'); >> include_once('FX/server_data.php'); >> >> $recid = trim(htmlspecialchars($_POST['r'])); >> $quantity = trim(htmlspecialchars($_POST['q'])); >> >> // edit lineitem >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >> $q->SetDBData($dbname5,'web_lineitems'); >> $q->SetDBPassword($pw,$un); >> $q->AddDBParam('-recid',$recid); >> $q->AddDBParam('quantity',$quantity); >> $qResult = $q->FMEdit(); >> >> header('Location: cart_view.php'); >> >> ?> >> >> It hangs up and never finishes; I?ve checked to make sure that all the variables are loading from the server-data page, so it?s not that; the cart works fine otherwise, but this page causes the browser to hang up, and the only thing that seems to fix it is to close the browser. >> >> Anyone have this error before? Could this be caused by a PHP config issue? I seem to recall that they updated PHP a month or so ago. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11, 12 & 13 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151112/ba686dbc/attachment-0001.html From dale.bengston at gmail.com Tue Nov 17 14:39:39 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Nov 17 14:39:43 2015 Subject: [FX.php List] cURL Error after El Capitan Update Message-ID: Hi everyone, I?m getting this error when pointing my browser at a FileMaker-based site: [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=?"] I updated to OS X ?El Capitan? a couple weeks ago, which is the big difference between working and non-working. My other non-FMP apache/php/mysql sites are working. I should note that I have pointed my site code (running locally) at both my dev server and the client?s live server and the same error happens. I?m assuming I need to tweak a configuration variable somewhere in my local php settings. Any ideas? Thanks, Dale ? Dale Bengston, Owner Streamline Studio, LLC From chris at iViking.org Wed Nov 18 10:39:53 2015 From: chris at iViking.org (Chris Hansen) Date: Wed Nov 18 10:37:14 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: References: Message-ID: <24F61970-C080-4623-B219-4050651C5394@iViking.org> Dale, From poking around on other sites, it appears that some features of cURL are not installed by default on El Capitan. Basically, you'll need to do one of two things: 1) You could use sockets instead (in FX.php change $useCURL to false); 2) Grab and install the latest version of cURL here: http://curl.haxx.se/download.html I noticed in there that the version available from Apple is not the latest and greatest (downloads that are the latest stable version are highlighted.) Best, --Chris > On Nov 17, 2015, at 2:39 PM, Dale Bengston wrote: > > Hi everyone, > > I?m getting this error when pointing my browser at a FileMaker-based site: > > [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=?"] > > I updated to OS X ?El Capitan? a couple weeks ago, which is the big difference between working and non-working. My other non-FMP apache/php/mysql sites are working. I should note that I have pointed my site code (running locally) at both my dev server and the client?s live server and the same error happens. I?m assuming I need to tweak a configuration variable somewhere in my local php settings. > > Any ideas? > > Thanks, > Dale > > ? > Dale Bengston, Owner > Streamline Studio, LLC_______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dale.bengston at gmail.com Wed Nov 18 11:58:47 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Nov 18 11:58:51 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: <24F61970-C080-4623-B219-4050651C5394@iViking.org> References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> Message-ID: <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> Hi Chris, This morning, I tried setting $useCURL to false and got this warning: [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] phpInfo() tells me sockets is enabled. Hmm. I?m looking at building my own cURL. Not my strong suit. Thanks, Dale > On Nov 18, 2015, at 11:39 AM, Chris Hansen wrote: > > Dale, > > From poking around on other sites, it appears that some features of cURL are not installed by default on El Capitan. Basically, you'll need to do one of two things: > > 1) You could use sockets instead (in FX.php change $useCURL to false); > > 2) Grab and install the latest version of cURL here: > http://curl.haxx.se/download.html > > I noticed in there that the version available from Apple is not the latest and greatest (downloads that are the latest stable version are highlighted.) > > Best, > > --Chris > >> On Nov 17, 2015, at 2:39 PM, Dale Bengston wrote: >> >> Hi everyone, >> >> I?m getting this error when pointing my browser at a FileMaker-based site: >> >> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=?"] >> >> I updated to OS X ?El Capitan? a couple weeks ago, which is the big difference between working and non-working. My other non-FMP apache/php/mysql sites are working. I should note that I have pointed my site code (running locally) at both my dev server and the client?s live server and the same error happens. I?m assuming I need to tweak a configuration variable somewhere in my local php settings. >> >> Any ideas? >> >> Thanks, >> Dale >> >> ? >> Dale Bengston, Owner >> Streamline Studio, LLC_______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Nov 18 12:24:18 2015 From: bob at patin.com (Bob Patin) Date: Wed Nov 18 12:24:21 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> Message-ID: I?m planning to stay away from El Capitan on my servers until things settle down; I just put up a new server last week running Yosemite and FMS 14.0.4, and everything seems to be working great. One gotcha for anyone planning to use FMS 14; their 14.0.4 updater breaks all the web services if you run the updater. There is a simple workaround though: download and install the 14.0.4 full installer, which works perfectly. If anyone is wanting to install FMS 14.0.4, contact me back-channel for the installer link. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 18, 2015, at 12:58 PM, Dale Bengston wrote: > > Hi Chris, > > This morning, I tried setting $useCURL to false and got this warning: > > [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] > > phpInfo() tells me sockets is enabled. Hmm. > > I?m looking at building my own cURL. Not my strong suit. > > Thanks, > Dale > > >> On Nov 18, 2015, at 11:39 AM, Chris Hansen wrote: >> >> Dale, >> >> From poking around on other sites, it appears that some features of cURL are not installed by default on El Capitan. Basically, you'll need to do one of two things: >> >> 1) You could use sockets instead (in FX.php change $useCURL to false); >> >> 2) Grab and install the latest version of cURL here: >> http://curl.haxx.se/download.html >> >> I noticed in there that the version available from Apple is not the latest and greatest (downloads that are the latest stable version are highlighted.) >> >> Best, >> >> --Chris >> >>> On Nov 17, 2015, at 2:39 PM, Dale Bengston wrote: >>> >>> Hi everyone, >>> >>> I?m getting this error when pointing my browser at a FileMaker-based site: >>> >>> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=?"] >>> >>> I updated to OS X ?El Capitan? a couple weeks ago, which is the big difference between working and non-working. My other non-FMP apache/php/mysql sites are working. I should note that I have pointed my site code (running locally) at both my dev server and the client?s live server and the same error happens. I?m assuming I need to tweak a configuration variable somewhere in my local php settings. >>> >>> Any ideas? >>> >>> Thanks, >>> Dale >>> >>> ? >>> Dale Bengston, Owner >>> Streamline Studio, LLC_______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151118/c7ec3f0c/attachment.html From dale.bengston at gmail.com Wed Nov 18 12:43:26 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Nov 18 12:43:30 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> Message-ID: The live server is still running Mavericks, or maybe even Mountain Lion, with FMS12. We have no plans to update it, because any later OS will most certainly kill FMS12. I upgraded to El Capitan on my laptop, aka testing environment. My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. Upgrading to El Capitan did turn off PHP in my Apache config, but I?ve never had an OS X update kill off cURL or another PHP or Apache extension. Compiling cURL as we speak to update El Capitan?. Dale > On Nov 18, 2015, at 1:24 PM, Bob Patin wrote: > > I?m planning to stay away from El Capitan on my servers until things settle down; I just put up a new server last week running Yosemite and FMS 14.0.4, and everything seems to be working great. > > One gotcha for anyone planning to use FMS 14; their 14.0.4 updater breaks all the web services if you run the updater. There is a simple workaround though: download and install the 14.0.4 full installer, which works perfectly. > > If anyone is wanting to install FMS 14.0.4, contact me back-channel for the installer link. > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > >> On Nov 18, 2015, at 12:58 PM, Dale Bengston > wrote: >> >> Hi Chris, >> >> This morning, I tried setting $useCURL to false and got this warning: >> >> [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] >> >> phpInfo() tells me sockets is enabled. Hmm. >> >> I?m looking at building my own cURL. Not my strong suit. >> >> Thanks, >> Dale >> >> >>> On Nov 18, 2015, at 11:39 AM, Chris Hansen > wrote: >>> >>> Dale, >>> >>> From poking around on other sites, it appears that some features of cURL are not installed by default on El Capitan. Basically, you'll need to do one of two things: >>> >>> 1) You could use sockets instead (in FX.php change $useCURL to false); >>> >>> 2) Grab and install the latest version of cURL here: >>> http://curl.haxx.se/download.html >>> >>> I noticed in there that the version available from Apple is not the latest and greatest (downloads that are the latest stable version are highlighted.) >>> >>> Best, >>> >>> --Chris >>> >>>> On Nov 17, 2015, at 2:39 PM, Dale Bengston wrote: >>>> >>>> Hi everyone, >>>> >>>> I?m getting this error when pointing my browser at a FileMaker-based site: >>>> >>>> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=?"] >>>> >>>> I updated to OS X ?El Capitan? a couple weeks ago, which is the big difference between working and non-working. My other non-FMP apache/php/mysql sites are working. I should note that I have pointed my site code (running locally) at both my dev server and the client?s live server and the same error happens. I?m assuming I need to tweak a configuration variable somewhere in my local php settings. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> Dale >>>> >>>> ? >>>> Dale Bengston, Owner >>>> Streamline Studio, LLC_______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151118/1d6b1fe9/attachment-0001.html From malcolm at notyourhomework.net Wed Nov 18 13:15:11 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Wed Nov 18 13:15:20 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> Message-ID: <564CDC4F.9000204@notyourhomework.net> On 19/11/2015 8:43 am, Dale Bengston wrote: > My testing FMS is running on another machine in my office because FMS > insists on taking over port 80 and port 443, which is unacceptable on > my testing machine because most of my work is Apache/PHP/MySQL. So I > had to park FMS somewhere else. Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151119/769090c4/attachment.html From dale.bengston at gmail.com Thu Nov 19 08:57:12 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Nov 19 08:57:19 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: <564CDC4F.9000204@notyourhomework.net> References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> <564CDC4F.9000204@notyourhomework.net> Message-ID: <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> Ok, I?m now running PHP 5.6.14 with cURL 7.46.0. I still get this error: [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=""] If I turn cURL off in FX ($useCURL = false), then I get this error: [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] In both cases, I?m pointed at the live database server. If I punch the FX URL into my browser, I get XML back. I think this (maybe) has something to do with the FMS using https/port 443. Something in the security chain is preventing connections. Any thoughts? I?m dead in the water on this project. Thanks, Dale > On Nov 18, 2015, at 2:15 PM, Malcolm Fitzgerald wrote: > > On 19/11/2015 8:43 am, Dale Bengston wrote: >> My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. > > Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. > > malcolm > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Thu Nov 19 11:31:28 2015 From: chris at iViking.org (Chris Hansen) Date: Thu Nov 19 11:28:47 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> <564CDC4F.9000204@notyourhomework.net> <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> Message-ID: <78951007-2C19-4E82-8DB5-7DAF75E18168@iViking.org> Hey Dale, There's another possibility -- something that's actually addressed in the development release on github. Basically, it seems like some versions of FileMaker like CURLAUTH_BASIC and others like CURLAUTH_ANY. Basically, you look for the line where CURLOPT_HTTPAUTH is set in RetrieveFM7VerboseData.class.php (if you're using 'FMAlt' as your data type) or RetrieveFM7Data.class.php (for anything else) and change the setting there. Let me know if that helps. Best, --Chris > On Nov 19, 2015, at 8:57 AM, Dale Bengston wrote: > > Ok, I?m now running PHP 5.6.14 with cURL 7.46.0. I still get this error: > > [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=""] > > If I turn cURL off in FX ($useCURL = false), then I get this error: > > [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] > > In both cases, I?m pointed at the live database server. If I punch the FX URL into my browser, I get XML back. I think this (maybe) has something to do with the FMS using https/port 443. Something in the security chain is preventing connections. > > Any thoughts? I?m dead in the water on this project. > > Thanks, > Dale > > >> On Nov 18, 2015, at 2:15 PM, Malcolm Fitzgerald wrote: >> >> On 19/11/2015 8:43 am, Dale Bengston wrote: >>> My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. >> >> Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. >> >> malcolm >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dale.bengston at gmail.com Thu Nov 19 13:45:38 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Nov 19 13:45:42 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: <78951007-2C19-4E82-8DB5-7DAF75E18168@iViking.org> References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> <564CDC4F.9000204@notyourhomework.net> <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> <78951007-2C19-4E82-8DB5-7DAF75E18168@iViking.org> Message-ID: Hi Chris, Thanks for the reply. I made that very change a few months back when I updated to the latest FX.php. The default in RetrieveFM7Data.class.php was CURLAUTH_BASIC, and I changed it to CURLAUTH_ANY. I remembered this yesterday, and tried switching it back. I also tried all the other CURLAUTH_[WHATEVER] options I could find in the PHP manual online. No relief. This was before I recompiled my own PHP, so I just tried it again. Still the same cURL failure. Dale > On Nov 19, 2015, at 12:31 PM, Chris Hansen wrote: > > Hey Dale, > > There's another possibility -- something that's actually addressed in the development release on github. Basically, it seems like some versions of FileMaker like CURLAUTH_BASIC and others like CURLAUTH_ANY. Basically, you look for the line where CURLOPT_HTTPAUTH is set in RetrieveFM7VerboseData.class.php (if you're using 'FMAlt' as your data type) or RetrieveFM7Data.class.php (for anything else) and change the setting there. Let me know if that helps. > > Best, > > --Chris > >> On Nov 19, 2015, at 8:57 AM, Dale Bengston wrote: >> >> Ok, I?m now running PHP 5.6.14 with cURL 7.46.0. I still get this error: >> >> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=""] >> >> If I turn cURL off in FX ($useCURL = false), then I get this error: >> >> [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] >> >> In both cases, I?m pointed at the live database server. If I punch the FX URL into my browser, I get XML back. I think this (maybe) has something to do with the FMS using https/port 443. Something in the security chain is preventing connections. >> >> Any thoughts? I?m dead in the water on this project. >> >> Thanks, >> Dale >> >> >>> On Nov 18, 2015, at 2:15 PM, Malcolm Fitzgerald wrote: >>> >>> On 19/11/2015 8:43 am, Dale Bengston wrote: >>>> My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. >>> >>> Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. >>> >>> malcolm >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Thu Nov 19 14:47:00 2015 From: chris at iViking.org (Chris Hansen) Date: Thu Nov 19 14:44:16 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> <564CDC4F.9000204@notyourhomework.net> <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> <78951007-2C19-4E82-8DB5-7DAF75E18168@iViking.org> Message-ID: Dale, Okay, after this line: if (! curl_exec($curlHandle)) { add a line like this: echo curl_error($curlHandle); and maybe also: echo curl_errno($curlHandle); That will get you the actual text (and number) of the error. For that matter, I should probably add that data to the error message in FX.php... Let me know what pops out. Best, --Chris > On Nov 19, 2015, at 1:45 PM, Dale Bengston wrote: > > Hi Chris, > > Thanks for the reply. I made that very change a few months back when I updated to the latest FX.php. The default in RetrieveFM7Data.class.php was CURLAUTH_BASIC, and I changed it to CURLAUTH_ANY. I remembered this yesterday, and tried switching it back. I also tried all the other CURLAUTH_[WHATEVER] options I could find in the PHP manual online. No relief. > > This was before I recompiled my own PHP, so I just tried it again. Still the same cURL failure. > > Dale > >> On Nov 19, 2015, at 12:31 PM, Chris Hansen wrote: >> >> Hey Dale, >> >> There's another possibility -- something that's actually addressed in the development release on github. Basically, it seems like some versions of FileMaker like CURLAUTH_BASIC and others like CURLAUTH_ANY. Basically, you look for the line where CURLOPT_HTTPAUTH is set in RetrieveFM7VerboseData.class.php (if you're using 'FMAlt' as your data type) or RetrieveFM7Data.class.php (for anything else) and change the setting there. Let me know if that helps. >> >> Best, >> >> --Chris >> >>> On Nov 19, 2015, at 8:57 AM, Dale Bengston wrote: >>> >>> Ok, I?m now running PHP 5.6.14 with cURL 7.46.0. I still get this error: >>> >>> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=""] >>> >>> If I turn cURL off in FX ($useCURL = false), then I get this error: >>> >>> [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] >>> >>> In both cases, I?m pointed at the live database server. If I punch the FX URL into my browser, I get XML back. I think this (maybe) has something to do with the FMS using https/port 443. Something in the security chain is preventing connections. >>> >>> Any thoughts? I?m dead in the water on this project. >>> >>> Thanks, >>> Dale >>> >>> >>>> On Nov 18, 2015, at 2:15 PM, Malcolm Fitzgerald wrote: >>>> >>>> On 19/11/2015 8:43 am, Dale Bengston wrote: >>>>> My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. >>>> >>>> Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. >>>> >>>> malcolm >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dale.bengston at gmail.com Thu Nov 19 16:16:59 2015 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Nov 19 16:17:08 2015 Subject: [FX.php List] cURL Error after El Capitan Update In-Reply-To: References: <24F61970-C080-4623-B219-4050651C5394@iViking.org> <9ACECF83-C2D9-4D58-9A85-B81090FE22B2@gmail.com> <564CDC4F.9000204@notyourhomework.net> <7D086D80-B9A5-463C-AF74-2CC5CC8016B6@gmail.com> <78951007-2C19-4E82-8DB5-7DAF75E18168@iViking.org> Message-ID: Huh. Well, this is what I got: SSL certificate problem: self signed certificate 60 We know it?s a self-signed cert, but it?s an internal-only site so it doesn?t matter. That never tripped out cURL previously though. A little research, and I added these two arguments to the mix: curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, false); And no more errors. I was on the right track - it did have to do with SSL/https protocol. Thanks everyone who chimed in, and especially Chris Hansen! We got it! Dale > On Nov 19, 2015, at 3:47 PM, Chris Hansen wrote: > > Dale, > > Okay, after this line: > > if (! curl_exec($curlHandle)) { > > add a line like this: > > echo curl_error($curlHandle); > > and maybe also: > > echo curl_errno($curlHandle); > > That will get you the actual text (and number) of the error. For that matter, I should probably add that data to the error message in FX.php... Let me know what pops out. > > Best, > > --Chris > >> On Nov 19, 2015, at 1:45 PM, Dale Bengston wrote: >> >> Hi Chris, >> >> Thanks for the reply. I made that very change a few months back when I updated to the latest FX.php. The default in RetrieveFM7Data.class.php was CURLAUTH_BASIC, and I changed it to CURLAUTH_ANY. I remembered this yesterday, and tried switching it back. I also tried all the other CURLAUTH_[WHATEVER] options I could find in the PHP manual online. No relief. >> >> This was before I recompiled my own PHP, so I just tried it again. Still the same cURL failure. >> >> Dale >> >>> On Nov 19, 2015, at 12:31 PM, Chris Hansen wrote: >>> >>> Hey Dale, >>> >>> There's another possibility -- something that's actually addressed in the development release on github. Basically, it seems like some versions of FileMaker like CURLAUTH_BASIC and others like CURLAUTH_ANY. Basically, you look for the line where CURLOPT_HTTPAUTH is set in RetrieveFM7VerboseData.class.php (if you're using 'FMAlt' as your data type) or RetrieveFM7Data.class.php (for anything else) and change the setting there. Let me know if that helps. >>> >>> Best, >>> >>> --Chris >>> >>>> On Nov 19, 2015, at 8:57 AM, Dale Bengston wrote: >>>> >>>> Ok, I?m now running PHP 5.6.14 with cURL 7.46.0. I still get this error: >>>> >>>> [FX_Error: message="FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason." code=100 mode=return level=notice prefix="" info=""] >>>> >>>> If I turn cURL off in FX ($useCURL = false), then I get this error: >>>> >>>> [FX_Error: message="FX: Could not fsockopen the URL in retrieveFM7Data" code=100 mode=return level=notice prefix="" info=?"] >>>> >>>> In both cases, I?m pointed at the live database server. If I punch the FX URL into my browser, I get XML back. I think this (maybe) has something to do with the FMS using https/port 443. Something in the security chain is preventing connections. >>>> >>>> Any thoughts? I?m dead in the water on this project. >>>> >>>> Thanks, >>>> Dale >>>> >>>> >>>>> On Nov 18, 2015, at 2:15 PM, Malcolm Fitzgerald wrote: >>>>> >>>>> On 19/11/2015 8:43 am, Dale Bengston wrote: >>>>>> My testing FMS is running on another machine in my office because FMS insists on taking over port 80 and port 443, which is unacceptable on my testing machine because most of my work is Apache/PHP/MySQL. So I had to park FMS somewhere else. >>>>> >>>>> Have you considered using Vagrant to manage OS for your projects? I'm finding that it is a convenient way to manage web projects. >>>>> >>>>> malcolm >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From pvanbuskirk at fsu.edu Mon Nov 23 11:47:08 2015 From: pvanbuskirk at fsu.edu (VanBuskirk, Patricia) Date: Mon Nov 23 11:47:13 2015 Subject: [FX.php List] RE: FX and FM14 In-Reply-To: References: Message-ID: Calling all FMS14/FX.php users on Windows Server 2012 O/S! I am at my wits end here. I've tried everything I can possibly think of, as has our Windows server admin, and all we get with our web pages is: "The page cannot be displayed because an internal server error has occurred." * Per a prior suggestion, I moved all of our (previously working fine) php forms to the folder under E:\Program Files\FileMaker\FileMaker Server\HTTPServer\conf * I moved the includes and FX folders from the Web Publishing folder, where it has been residing to also be under that folder. I then changed the pointer in the php.ini file. * If I use pure php in the file, it comes up just fine (ie. https://its-fmp-02.its.fsu.edu/index.php), but when I start trying to use FX commands or to connect to a database (ie. https://its-fmp-02.its.fsu.edu/Forms/TSR/Test.php), it throws the aforementioned error (which is basically useless). Even with the define('DEBUG', true); line included, I get that generic error. Can't find any reference in any of the logs (unless I'm not looking at the correct ones) * I have made sure XML and odbc are turned on and have permissions set in the databases. Has anyone had similar issues that can direct us as to what to check for and maybe some debugging code to throw in there to see if it's actually finding the FX and include folders or reading the databases and to narrow down my problem(s)? Some questions: * Does IIS still need to be on the server, or does FMS take over serving the pages now? * What file structure are you using that works? * Where do you store your connection info file (server_data.php) to where it is not susceptible to hacking? Trish From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of VanBuskirk, Patricia Sent: Monday, November 9, 2015 1:32 PM To: FX.php_List@mail.iviking.org Subject: [FX.php List] FX and FM14 Hi group, We are upgrading to FMP14, and I am having trouble getting my custom web pages to work (something to do with the port being used by WebDirect). At this point, I'm just moving some test pages over to the folder where the FM Databases web page exists, but having trouble connecting to the databases. My question at this time is concerning the syntax in the connections. Has the following line changed with v14? $InstanceName = new FX('127.0.0.1', 591, 'FMPro7', 'HTTPS'); // to connect to FM7SA using HTTPS Any assistance will be greatly appreciated!! Trish V. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151123/3b03aaa0/attachment.html From tim.webko at gmail.com Mon Nov 23 14:14:48 2015 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Mon Nov 23 14:14:51 2015 Subject: [FX.php List] RE: FX and FM14 In-Reply-To: References: Message-ID: Here's a simple test file I use for basic testing. And the connections file can live anywhere - if they can read the contents of that file, you have larger problems. Try and see what this one contains: http://apachescricket.com/include/db_config.php Servertest.php setDBPassword($dbPass,$dbUser); $pageObj -> setDBData($dbName,'VALID LAYOUT NAME', 'all'); $pageData = $pageObj -> FMFindAny(); $_SESSION['serverError'] = $pageData['errorCode']; } if ($_SESSION['serverError'] != "0") { echo "Error: ".$_SESSION['serverError']; } ?> On 24 November 2015 at 05:47, VanBuskirk, Patricia wrote: > Calling all FMS14/FX.php users on Windows Server 2012 O/S! > > > > I am at my wits end here. I?ve tried everything I can possibly think of, > as has our Windows server admin, and all we get with our web pages is: > > ?The page cannot be displayed because an internal server error has > occurred.? > > > > ? Per a prior suggestion, I moved all of our (previously working > fine) php forms to the folder under E:\Program Files\FileMaker\FileMaker > Server\HTTPServer\conf > > ? I moved the includes and FX folders from the Web Publishing > folder, where it has been residing to also be under that folder. I then > changed the pointer in the php.ini file. > > ? If I use pure php in the file, it comes up just fine (ie. > https://its-fmp-02.its.fsu.edu/index.php), but when I start trying to use > FX commands or to connect to a database (ie. > https://its-fmp-02.its.fsu.edu/Forms/TSR/Test.php), it throws the > aforementioned error (which is basically useless). Even with the > define('DEBUG', true); line included, I get that generic error. Can?t find > any reference in any of the logs (unless I?m not looking at the correct > ones) > > ? I have made sure XML and odbc are turned on and have > permissions set in the databases. > > > > Has anyone had similar issues that can direct us as to what to check for > and maybe some debugging code to throw in there to see if it?s actually > finding the FX and include folders or reading the databases and to narrow > down my problem(s)? > > > > Some questions: > > ? Does IIS still need to be on the server, or does FMS take over > serving the pages now? > > ? What file structure are you using that works? > > ? Where do you store your connection info file (server_data.php) > to where it is not susceptible to hacking? > > > > Trish > > > > *From:* fx.php_list-bounces@mail.iviking.org [mailto: > fx.php_list-bounces@mail.iviking.org] *On Behalf Of *VanBuskirk, Patricia > *Sent:* Monday, November 9, 2015 1:32 PM > *To:* FX.php_List@mail.iviking.org > *Subject:* [FX.php List] FX and FM14 > > > > Hi group, > > > > We are upgrading to FMP14, and I am having trouble getting my custom web > pages to work (something to do with the port being used by WebDirect). At > this point, I?m just moving some test pages over to the folder where the FM > Databases web page exists, but having trouble connecting to the databases. > > > > My question at this time is concerning the syntax in the connections. Has > the following line changed with v14? > > > > $InstanceName = new FX('127.0.0.1', 591, 'FMPro7', 'HTTPS'); // > to connect to FM7SA using HTTPS > > > > Any assistance will be greatly appreciated!! > > > > Trish V. > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151124/f06bd234/attachment-0001.html From pvanbuskirk at fsu.edu Tue Nov 24 06:43:56 2015 From: pvanbuskirk at fsu.edu (VanBuskirk, Patricia) Date: Tue Nov 24 06:44:03 2015 Subject: [FX.php List] RE: FX and FM14 In-Reply-To: References: Message-ID: Hi Webko! Thanks so much for your quick and informative reply! We are using SSL on this site, so I would have assumed I should change the port to 443 and conType to ?HTTPS?? However, when I change those two variables, it doesn?t work. Also, it doesn?t work when I put the db_config file in with the includes and use the line: include_once('include/db_config.php' ... BUT it DOES work, if I take the contents of that db_config.php file and put then into the server_test.php file as follows: define('DEBUG', true); include_once('FX/FX.php'); // FX.php file $dbHost='146.201.5.10'; //Database Server IP $port='80'; //Webserver Port $dbType='FMPro7'; //For FMPro7 and above $conType='HTTP'; //Connection Type $dbUser='xxxxxx'; //Database User Name $dbPass='xxxxxx'; //Database Password $dbName='Dept_Directory'; //Database Name I?m looking at the contents of the php.ini file now to see if anything jumps out at me. From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tim 'Webko' Booth Sent: Monday, November 23, 2015 4:15 PM To: FX.php Discussion List Subject: Re: [FX.php List] RE: FX and FM14 Here's a simple test file I use for basic testing. And the connections file can live anywhere - if they can read the contents of that file, you have larger problems. Try and see what this one contains: http://apachescricket.com/include/db_config.php Servertest.php setDBPassword($dbPass,$dbUser); $pageObj -> setDBData($dbName,'VALID LAYOUT NAME', 'all'); $pageData = $pageObj -> FMFindAny(); $_SESSION['serverError'] = $pageData['errorCode']; } if ($_SESSION['serverError'] != "0") { echo "Error: ".$_SESSION['serverError']; } ?> On 24 November 2015 at 05:47, VanBuskirk, Patricia > wrote: Calling all FMS14/FX.php users on Windows Server 2012 O/S! I am at my wits end here. I?ve tried everything I can possibly think of, as has our Windows server admin, and all we get with our web pages is: ?The page cannot be displayed because an internal server error has occurred.? ? Per a prior suggestion, I moved all of our (previously working fine) php forms to the folder under E:\Program Files\FileMaker\FileMaker Server\HTTPServer\conf ? I moved the includes and FX folders from the Web Publishing folder, where it has been residing to also be under that folder. I then changed the pointer in the php.ini file. ? If I use pure php in the file, it comes up just fine (ie. https://its-fmp-02.its.fsu.edu/index.php), but when I start trying to use FX commands or to connect to a database (ie. https://its-fmp-02.its.fsu.edu/Forms/TSR/Test.php), it throws the aforementioned error (which is basically useless). Even with the define('DEBUG', true); line included, I get that generic error. Can?t find any reference in any of the logs (unless I?m not looking at the correct ones) ? I have made sure XML and odbc are turned on and have permissions set in the databases. Has anyone had similar issues that can direct us as to what to check for and maybe some debugging code to throw in there to see if it?s actually finding the FX and include folders or reading the databases and to narrow down my problem(s)? Some questions: ? Does IIS still need to be on the server, or does FMS take over serving the pages now? ? What file structure are you using that works? ? Where do you store your connection info file (server_data.php) to where it is not susceptible to hacking? Trish From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of VanBuskirk, Patricia Sent: Monday, November 9, 2015 1:32 PM To: FX.php_List@mail.iviking.org Subject: [FX.php List] FX and FM14 Hi group, We are upgrading to FMP14, and I am having trouble getting my custom web pages to work (something to do with the port being used by WebDirect). At this point, I?m just moving some test pages over to the folder where the FM Databases web page exists, but having trouble connecting to the databases. My question at this time is concerning the syntax in the connections. Has the following line changed with v14? $InstanceName = new FX('127.0.0.1', 591, 'FMPro7', 'HTTPS'); // to connect to FM7SA using HTTPS Any assistance will be greatly appreciated!! Trish V. _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151124/5f4f031e/attachment-0001.html From tim.webko at gmail.com Thu Nov 26 14:16:37 2015 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Thu Nov 26 14:16:39 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? Message-ID: A new server is throwing this error when I run my standard server test PHP file: FX: ExecuteQuery XML error: Invalid document end at line 2 Digging into the error object, the underlying URI also fails: http://user:password@xx.xxx.xxx.xxx :80/fmi/xml/FMPXMLRESULT.xml?-db=Database+Name&-lay=Course+Information+Search&-max=all&-findany With a 404... It's not my server - but some pointers on what the issue might be would be good... Cheers Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/603e5c00/attachment.html From malcolm at notyourhomework.net Thu Nov 26 14:39:26 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Nov 26 14:39:55 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: References: Message-ID: <56577C0E.1040604@notyourhomework.net> Tried HTTPS on port 443? malcolm On 27/11/2015 10:16 am, Tim 'Webko' Booth wrote: > A new server is throwing this error when I run my standard server test > PHP file: > > FX: ExecuteQuery XML error: Invalid document end at line 2 > > Digging into the error object, the underlying URI also fails: > > http://user:password@xx.xxx.xxx.xxx:80/fmi/xml/FMPXMLRESULT.xml?-db=Database+Name&-lay=Course+Information+Search&-max=all&-findany > > With a 404... > > It's not my server - but some pointers on what the issue might be > would be good... > > Cheers > > Tim > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/a05fdc14/attachment.html From tim.webko at gmail.com Thu Nov 26 15:01:54 2015 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Thu Nov 26 15:01:56 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: <56577C0E.1040604@notyourhomework.net> References: <56577C0E.1040604@notyourhomework.net> Message-ID: Different error from the server test.php file: FX: cURL could not retrieve Post data in RetrieveFM7Data() And using the underlying link from the error object also produces a 404 Cheers Webko On 27 November 2015 at 08:39, Malcolm Fitzgerald < malcolm@notyourhomework.net> wrote: > Tried HTTPS on port 443? > > malcolm > > > > On 27/11/2015 10:16 am, Tim 'Webko' Booth wrote: > > A new server is throwing this error when I run my standard server test PHP > file: > > FX: ExecuteQuery XML error: Invalid document end at line 2 > > Digging into the error object, the underlying URI also fails: > > > http://user:password@xx.xxx.xxx.xxx:80/fmi/xml/FMPXMLRESULT.xml?-db=Database+Name&-lay=Course+Information+Search&-max=all&-findany > > With a 404... > > It's not my server - but some pointers on what the issue might be would be > good... > > Cheers > > Tim > > > _______________________________________________ > FX.php_List mailing listFX.php_List@mail.iviking.orghttp://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/974e10f6/attachment.html From malcolm at notyourhomework.net Thu Nov 26 15:29:56 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Nov 26 15:30:12 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: References: <56577C0E.1040604@notyourhomework.net> Message-ID: <565787E4.3030303@notyourhomework.net> I've found that FMS14 will not accept user credentials when I paste them into the browser location box. I have to set up a little php script that uses curl authorisation requests to get them to work. Have you tried a simpler request, like -dbnames? Malcolm On 27/11/2015 11:01 am, Tim 'Webko' Booth wrote: > Different error from the server test.php file: FX: cURL could not > retrieve Post data in RetrieveFM7Data() > > And using the underlying link from the error object also produces a 404 > > Cheers > > Webko > > On 27 November 2015 at 08:39, Malcolm Fitzgerald > > wrote: > > Tried HTTPS on port 443? > > malcolm > > > > On 27/11/2015 10:16 am, Tim 'Webko' Booth wrote: >> A new server is throwing this error when I run my standard server >> test PHP file: >> >> FX: ExecuteQuery XML error: Invalid document end at line 2 >> >> Digging into the error object, the underlying URI also fails: >> >> http://user:password@xx.xxx.xxx.xxx:80/fmi/xml/FMPXMLRESULT.xml?-db=Database+Name&-lay=Course+Information+Search&-max=all&-findany >> >> With a 404... >> >> It's not my server - but some pointers on what the issue might be >> would be good... >> >> Cheers >> >> Tim >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/9e4af57e/attachment.html From tim.webko at gmail.com Thu Nov 26 15:39:13 2015 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Thu Nov 26 15:39:15 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: <565787E4.3030303@notyourhomework.net> References: <56577C0E.1040604@notyourhomework.net> <565787E4.3030303@notyourhomework.net> Message-ID: I use a fairly simple request - I've never used -dbnames... My request is: //Check if a findany to an available table works $pageObj=new FX($dbHost,$port,$dbType,$conType); $pageObj -> setDBPassword($dbPass,$dbUser); $pageObj -> setDBData($dbName,'Course Information Search', 'all'); $pageData = $pageObj -> FMFindAny(); How should I rewrite that? On 27 November 2015 at 09:29, Malcolm Fitzgerald < malcolm@notyourhomework.net> wrote: > I've found that FMS14 will not accept user credentials when I paste them > into the browser location box. I have to set up a little php script that > uses curl authorisation requests to get them to work. > > Have you tried a simpler request, like -dbnames? > > Malcolm > > > On 27/11/2015 11:01 am, Tim 'Webko' Booth wrote: > > Different error from the server test.php file: FX: cURL could not retrieve > Post data in RetrieveFM7Data() > > And using the underlying link from the error object also produces a 404 > > Cheers > > Webko > > On 27 November 2015 at 08:39, Malcolm Fitzgerald < > malcolm@notyourhomework.net> wrote: > >> Tried HTTPS on port 443? >> >> malcolm >> >> >> >> On 27/11/2015 10:16 am, Tim 'Webko' Booth wrote: >> >> A new server is throwing this error when I run my standard server test >> PHP file: >> >> FX: ExecuteQuery XML error: Invalid document end at line 2 >> >> Digging into the error object, the underlying URI also fails: >> >> >> http://user:password@xx.xxx.xxx.xxx:80/fmi/xml/FMPXMLRESULT.xml?-db=Database+Name&-lay=Course+Information+Search&-max=all&-findany >> >> With a 404... >> >> It's not my server - but some pointers on what the issue might be would >> be good... >> >> Cheers >> >> Tim >> >> >> _______________________________________________ >> FX.php_List mailing listFX.php_List@mail.iviking.orghttp://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > > > _______________________________________________ > FX.php_List mailing listFX.php_List@mail.iviking.orghttp://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/f18fefb2/attachment-0001.html From malcolm at notyourhomework.net Thu Nov 26 16:28:14 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Nov 26 16:28:54 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: References: <56577C0E.1040604@notyourhomework.net> <565787E4.3030303@notyourhomework.net> Message-ID: <5657958E.8050908@notyourhomework.net> On 27/11/2015 11:39 am, Tim 'Webko' Booth wrote: > I use a fairly simple request - I've never used -dbnames... > > My request is: > //Check if a findany to an available table works > $pageObj=new FX($dbHost,$port,$dbType,$conType); > $pageObj -> setDBPassword($dbPass,$dbUser); > $pageObj -> setDBData($dbName,'Course Information Search', 'all'); > $pageData = $pageObj -> FMFindAny(); > > How should I rewrite that? > searching for database names is very minimal. It usually doesn't require an account. It may, if the setting that requires a user to authenticate before it provides a list of databases is switched on. $pageObj = new FX($dbHost,$port,$dbType,$conType); $pageData = $pageObj->DoFXAction('view_database_names'); malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/d8073510/attachment.html From malcolm at notyourhomework.net Thu Nov 26 17:34:33 2015 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Nov 26 17:34:59 2015 Subject: [FX.php List] FX: ExecuteQuery XML error: Invalid document end at line 2 ? In-Reply-To: References: <56577C0E.1040604@notyourhomework.net> <565787E4.3030303@notyourhomework.net> Message-ID: <5657A519.9070107@notyourhomework.net> On 27/11/2015 11:39 am, Tim 'Webko' Booth wrote: > I use a fairly simple request - I've never used -dbnames... > > My request is: > //Check if a findany to an available table works > $pageObj=new FX($dbHost,$port,$dbType,$conType); > $pageObj -> setDBPassword($dbPass,$dbUser); > $pageObj -> setDBData($dbName,'Course Information Search', 'all'); > $pageData = $pageObj -> FMFindAny(); > > How should I rewrite that? > searching for database names is very minimal. It usually doesn't require an account. It may, if the setting that requires a user to authenticate before it provides a list of databases is switched on. I $pageObj = new FX($dbHost,$port,$dbType,$conType); $pageData = $pageObj->DoFXAction('view_database_names'); malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151127/5e580291/attachment.html