From mail at jsfmp.com Mon Jun 2 16:32:20 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Mon Jun 2 16:32:12 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 Message-ID: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> CWP USER GROUP AT FILEMAKER DEVCON 2014 We're back! For the eighth straight year, people doing Custom Web Publishing are getting together at the beginning of the FileMaker Developer Conference to share projects, tips and ideas. DATE: Monday, July 28 TIME: 4:00 - 6:00 p.m. (before the 6:30 keynote) ROOM: Iris This will be a friendly, informal chance to share some of what we have been doing with FileMaker and CWP. All web-related tools and technologies are relevant (except WebDirect :-P ). PLEASE CONTACT ME IF YOU HAVE SOMETHING YOU'D LIKE TO SHARE OR IDEAS TO DISCUSS. Everyone's welcome. Come join us! -Joel http://jsfmp.com/cwp-user-group ~~~~~~~~~~~~~~~~~~~~~ Joel Shapiro FileMaker Pro : database design : web development http://jsfmp.com 415-269-5055 ~~~~~~~~~~~~~~~~~~~~~ From dale.bengston at gmail.com Wed Jun 4 13:20:25 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Jun 4 13:20:16 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 In-Reply-To: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> References: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> Message-ID: <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> Have fun at DevCon everyone. I wish I could be there. Dale On Jun 2, 2014, at 5:32 PM, Joel Shapiro wrote: > > CWP USER GROUP AT FILEMAKER DEVCON 2014 > > We're back! > > For the eighth straight year, people doing Custom Web Publishing are getting together at the beginning of the FileMaker Developer Conference to share projects, tips and ideas. > > DATE: Monday, July 28 > TIME: 4:00 - 6:00 p.m. (before the 6:30 keynote) > ROOM: Iris > > This will be a friendly, informal chance to share some of what we have been doing with FileMaker and CWP. All web-related tools and technologies are relevant (except WebDirect :-P ). > > > PLEASE CONTACT ME IF YOU HAVE SOMETHING YOU'D LIKE TO SHARE OR IDEAS TO DISCUSS. > > Everyone's welcome. Come join us! > > -Joel > > http://jsfmp.com/cwp-user-group > ~~~~~~~~~~~~~~~~~~~~~ > Joel Shapiro > FileMaker Pro > : database design > : web development > http://jsfmp.com > 415-269-5055 > ~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From beverlyvoth at gmail.com Wed Jun 4 13:31:38 2014 From: beverlyvoth at gmail.com (Beverly Voth) Date: Wed Jun 4 13:31:27 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 In-Reply-To: <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> References: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> Message-ID: <6218B755-257C-4789-AD5C-545D30BD9BE1@gmail.com> Ditto. Grounded (still), I was so hoping I could make it this year. I have to stay home and fight the creepers and zombie pigmen. :) -- sent from my iPhone4 -- Beverly Voth -- > On Jun 4, 2014, at 3:20 PM, Dale Bengston wrote: > > Have fun at DevCon everyone. I wish I could be there. > > Dale > >> On Jun 2, 2014, at 5:32 PM, Joel Shapiro wrote: >> >> >> CWP USER GROUP AT FILEMAKER DEVCON 2014 >> >> We're back! >> >> For the eighth straight year, people doing Custom Web Publishing are getting together at the beginning of the FileMaker Developer Conference to share projects, tips and ideas. >> >> DATE: Monday, July 28 >> TIME: 4:00 - 6:00 p.m. (before the 6:30 keynote) >> ROOM: Iris >> >> This will be a friendly, informal chance to share some of what we have been doing with FileMaker and CWP. All web-related tools and technologies are relevant (except WebDirect :-P ). >> >> >> PLEASE CONTACT ME IF YOU HAVE SOMETHING YOU'D LIKE TO SHARE OR IDEAS TO DISCUSS. >> >> Everyone's welcome. Come join us! >> >> -Joel >> >> http://jsfmp.com/cwp-user-group >> ~~~~~~~~~~~~~~~~~~~~~ >> Joel Shapiro >> FileMaker Pro >> : database design >> : web development >> http://jsfmp.com >> 415-269-5055 >> ~~~~~~~~~~~~~~~~~~~~~ >> >> _______________________________________________ >> 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 tim.webko at gmail.com Wed Jun 4 17:04:10 2014 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Wed Jun 4 17:03:51 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 In-Reply-To: <6218B755-257C-4789-AD5C-545D30BD9BE1@gmail.com> References: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> <6218B755-257C-4789-AD5C-545D30BD9BE1@gmail.com> Message-ID: *sigh* One day I will make it to DevCon... Webko On 5 June 2014 05:31, Beverly Voth wrote: > Ditto. Grounded (still), I was so hoping I could make it this year. I have > to stay home and fight the creepers and zombie pigmen. :) > > -- sent from my iPhone4 -- > Beverly Voth > -- > > > On Jun 4, 2014, at 3:20 PM, Dale Bengston > wrote: > > > > Have fun at DevCon everyone. I wish I could be there. > > > > Dale > > > >> On Jun 2, 2014, at 5:32 PM, Joel Shapiro wrote: > >> > >> > >> CWP USER GROUP AT FILEMAKER DEVCON 2014 > >> > >> We're back! > >> > >> For the eighth straight year, people doing Custom Web Publishing are > getting together at the beginning of the FileMaker Developer Conference to > share projects, tips and ideas. > >> > >> DATE: Monday, July 28 > >> TIME: 4:00 - 6:00 p.m. (before the 6:30 keynote) > >> ROOM: Iris > >> > >> This will be a friendly, informal chance to share some of what we have > been doing with FileMaker and CWP. All web-related tools and technologies > are relevant (except WebDirect :-P ). > >> > >> > >> PLEASE CONTACT ME IF YOU HAVE SOMETHING YOU'D LIKE TO SHARE OR IDEAS TO > DISCUSS. > >> > >> Everyone's welcome. Come join us! > >> > >> -Joel > >> > >> http://jsfmp.com/cwp-user-group > >> ~~~~~~~~~~~~~~~~~~~~~ > >> Joel Shapiro > >> FileMaker Pro > >> : database design > >> : web development > >> http://jsfmp.com > >> 415-269-5055 > >> ~~~~~~~~~~~~~~~~~~~~~ > >> > >> _______________________________________________ > >> 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/20140605/07c24755/attachment.html From mail at jsfmp.com Wed Jun 4 17:57:12 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Wed Jun 4 17:56:57 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 In-Reply-To: References: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> <6218B755-257C-4789-AD5C-545D30BD9BE1@gmail.com> Message-ID: Man! I keep seeing all of your emails coming in on this thread and think you're writing to say you'd like to present at the group... only to then open the emails and see you're not coming :-( Hopefully some day... (and maybe sometime we could all do something online for us far-flung folk on this great list...(?) ) -Joel On Jun 4, 2014, at 4:04 PM, Tim 'Webko' Booth wrote: > *sigh* > > One day I will make it to DevCon... > > Webko > > > On 5 June 2014 05:31, Beverly Voth wrote: > Ditto. Grounded (still), I was so hoping I could make it this year. I have to stay home and fight the creepers and zombie pigmen. :) > > -- sent from my iPhone4 -- > Beverly Voth > -- > > > On Jun 4, 2014, at 3:20 PM, Dale Bengston wrote: > > > > Have fun at DevCon everyone. I wish I could be there. > > > > Dale > > > >> On Jun 2, 2014, at 5:32 PM, Joel Shapiro wrote: > >> > >> > >> CWP USER GROUP AT FILEMAKER DEVCON 2014 > >> > >> We're back! > >> > >> For the eighth straight year, people doing Custom Web Publishing are getting together at the beginning of the FileMaker Developer Conference to share projects, tips and ideas. > >> > >> DATE: Monday, July 28 > >> TIME: 4:00 - 6:00 p.m. (before the 6:30 keynote) > >> ROOM: Iris > >> > >> This will be a friendly, informal chance to share some of what we have been doing with FileMaker and CWP. All web-related tools and technologies are relevant (except WebDirect :-P ). > >> > >> > >> PLEASE CONTACT ME IF YOU HAVE SOMETHING YOU'D LIKE TO SHARE OR IDEAS TO DISCUSS. > >> > >> Everyone's welcome. Come join us! > >> > >> -Joel > >> > >> http://jsfmp.com/cwp-user-group > >> ~~~~~~~~~~~~~~~~~~~~~ > >> Joel Shapiro > >> FileMaker Pro > >> : database design > >> : web development > >> http://jsfmp.com > >> 415-269-5055 > >> ~~~~~~~~~~~~~~~~~~~~~ > >> > >> _______________________________________________ > >> 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 bob at patin.com Wed Jun 4 19:51:03 2014 From: bob at patin.com (Bob Patin) Date: Wed Jun 4 19:50:48 2014 Subject: [FX.php List] [ANN] CWP User Group - Monday at DevCon 2014 In-Reply-To: References: <2E8B8B88-3D61-4829-8F0D-77F4AD2DE386@jsfmp.com> <5D59BD5C-31FE-442A-8EFE-BD0D6E99810C@gmail.com> <6218B755-257C-4789-AD5C-545D30BD9BE1@gmail.com> Message-ID: I'll be there... wish some of our far-flung friends would be there, but I certainly understand; getting to San Antonio from Down Under would be a saga... BP 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 Jun 4, 2014, at 6:57 PM, Joel Shapiro wrote: > Man! I keep seeing all of your emails coming in on this thread and think you're writing to say you'd like to present at the group... only to then open the emails and see you're not coming :-( > > Hopefully some day... > > (and maybe sometime we could all do something online for us far-flung folk on this great list...(?) ) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140604/bd4ab0d3/attachment-0001.html From bob at patin.com Fri Jun 13 08:45:58 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 13 08:45:10 2014 Subject: [FX.php List] Can't get query to work on FM Server 13 Message-ID: <81BF1CB6-3AEB-4A7B-B543-5F4C0B0DBA44@patin.com> OK list, here?s a simple query that I can?t get to work on FM Server 13: SetDBData('FMServer_Sample','web'); $q->SetDBPassword('web','web'); $qResult = $q->FMView(); echo "Error code: ".$qResult['errorCode']; ?> Notice that I hard-coded the new FX command, just to make sure that wasn?t an issue? I get error code 4, which means ?Unknown command.? Huh? The only difference in setups is that now, the website is on one server and the FM Server / web publishing engine are on another. I?m running PHP 5.3.26 on the web server; since I get a FileMaker error code back, I assume the WPC is actually sending and receiving, but what am I missing here? Things that I?ve checked: FX folder does exist, and ?FX.php? is present; Privileges are set to allow XML; login creds are correct Database exists WPE is running on the FM server because I can run the test page and it succeeds 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 From jdcunha at supportgroup.com Fri Jun 13 08:51:27 2014 From: jdcunha at supportgroup.com (James Dcunha) Date: Fri Jun 13 08:50:53 2014 Subject: [FX.php List] Get error code 102 "Field is missing" when my website queries the FM 11 database...error goes away after a while Message-ID: Hi all, I am having a weird issue. We have a website using FX and FileMaker 11 as the back-end database. We get an error code 102 "Field is missing" (The web publishing engine ) at random and the site is not able to display specific table data. After sometime the error code goes away and the site displays the table data as normal. As the response is coming from the web publishing engine I am sure that it has nothing to do with the website code base. It seems like something is causing the FM server to send back the error code even though all the necessary fields are on the web layout. Could it be layout/data corruption specific to the database table? Appreciate any suggestions on this issue. -- Regards James Dcunha -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140613/6c71fa53/attachment.html From ted-fitzgerald at uiowa.edu Fri Jun 13 09:03:15 2014 From: ted-fitzgerald at uiowa.edu (Fitzgerald, Theodore C) Date: Fri Jun 13 09:02:21 2014 Subject: [FX.php List] Can't get query to work on FM Server 13 In-Reply-To: <81BF1CB6-3AEB-4A7B-B543-5F4C0B0DBA44@patin.com> References: <81BF1CB6-3AEB-4A7B-B543-5F4C0B0DBA44@patin.com> Message-ID: Bob, Do you have the latest version of FX.php from github? I actually just ran into this exact issue this morning and pulling the latest code helped. There was an update to FX.php to make it compatible with Server 13 a while back. Ted Application Programmer/Analyst ITS-Enterprise Services 2800 UCC University of Iowa -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Friday, June 13, 2014 9:46 AM To: FX.php Discussion List Subject: [FX.php List] Can't get query to work on FM Server 13 OK list, here's a simple query that I can't get to work on FM Server 13: SetDBData('FMServer_Sample','web'); $q->SetDBPassword('web','web'); $qResult = $q->FMView(); echo "Error code: ".$qResult['errorCode']; ?> Notice that I hard-coded the new FX command, just to make sure that wasn't an issue... I get error code 4, which means "Unknown command." Huh? The only difference in setups is that now, the website is on one server and the FM Server / web publishing engine are on another. I'm running PHP 5.3.26 on the web server; since I get a FileMaker error code back, I assume the WPC is actually sending and receiving, but what am I missing here? Things that I've checked: FX folder does exist, and 'FX.php' is present; Privileges are set to allow XML; login creds are correct Database exists WPE is running on the FM server because I can run the test page and it succeeds 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 From bob at patin.com Fri Jun 13 09:04:00 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 13 09:03:11 2014 Subject: [FX.php List] Can't get query to work on FM Server 13 In-Reply-To: References: <81BF1CB6-3AEB-4A7B-B543-5F4C0B0DBA44@patin.com> Message-ID: Aha, that may be what it is? :) I?ll give that a try; 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 On Jun 13, 2014, at 10:03 AM, Fitzgerald, Theodore C wrote: > Bob, > > Do you have the latest version of FX.php from github? I actually just ran into this exact issue this morning and pulling the latest code helped. There was an update to FX.php to make it compatible with Server 13 a while back. > > Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140613/602ef3be/attachment.html From dale.bengston at gmail.com Fri Jun 13 09:07:30 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 13 09:06:36 2014 Subject: [FX.php List] Get error code 102 "Field is missing" when my website queries the FM 11 database...error goes away after a while In-Reply-To: References: Message-ID: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> Hi James, I have had layout corruption cause what you?re seeing. That was back in v7. It?s possible the problem persists, although I stopped using or duplicating other developers? client-server layouts and began creating all my web layouts from-scratch and I haven?t seen this for years. Hope this helps, Dale On Jun 13, 2014, at 9:51 AM, James Dcunha wrote: > Hi all, > > I am having a weird issue. We have a website using FX and FileMaker 11 as the back-end database. > > We get an error code 102 "Field is missing" (The web publishing engine ) at random and the site is not able to display specific table data. After sometime the error code goes away and the site displays the table data as normal. > > As the response is coming from the web publishing engine I am sure that it has nothing to do with the website code base. It seems like something is causing the FM server to send back the error code even though all the necessary fields are on the web layout. > > Could it be layout/data corruption specific to the database table? Appreciate any suggestions on this issue. > > -- > Regards > James Dcunha > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jdcunha at supportgroup.com Fri Jun 13 09:13:16 2014 From: jdcunha at supportgroup.com (James Dcunha) Date: Fri Jun 13 09:12:43 2014 Subject: [FX.php List] Get error code 102 "Field is missing" when my website queries the FM 11 database...error goes away after a while In-Reply-To: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> Message-ID: Hi Dale, I will try recreating the web layouts from scratch and see if that resolves the issue. Will keep you all posted. Thanks!!! James On Fri, Jun 13, 2014 at 11:07 AM, Dale Bengston wrote: > Hi James, > > I have had layout corruption cause what you're seeing. That was back in > v7. It's possible the problem persists, although I stopped using or > duplicating other developers' client-server layouts and began creating all > my web layouts from-scratch and I haven't seen this for years. > > Hope this helps, > Dale > > On Jun 13, 2014, at 9:51 AM, James Dcunha > wrote: > > > Hi all, > > > > I am having a weird issue. We have a website using FX and FileMaker 11 > as the back-end database. > > > > We get an error code 102 "Field is missing" (The web publishing engine ) > at random and the site is not able to display specific table data. After > sometime the error code goes away and the site displays the table data as > normal. > > > > As the response is coming from the web publishing engine I am sure that > it has nothing to do with the website code base. It seems like something is > causing the FM server to send back the error code even though all the > necessary fields are on the web layout. > > > > Could it be layout/data corruption specific to the database table? > Appreciate any suggestions on this issue. > > > > -- > > Regards > > James Dcunha > > _______________________________________________ > > 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/20140613/dc7660ea/attachment-0001.html From bob at patin.com Fri Jun 13 09:14:07 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 13 09:13:14 2014 Subject: [FX.php List] Can't get query to work on FM Server 13 In-Reply-To: References: <81BF1CB6-3AEB-4A7B-B543-5F4C0B0DBA44@patin.com> Message-ID: <5F3C4E98-173C-402A-A93D-18377FC76146@patin.com> That was it? thanks for reminding me, I?d totally forgotten about that. BP 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 Jun 13, 2014, at 10:03 AM, Fitzgerald, Theodore C wrote: > Bob, > > Do you have the latest version of FX.php from github? I actually just ran into this exact issue this morning and pulling the latest code helped. There was an update to FX.php to make it compatible with Server 13 a while back. > > Ted > > Application Programmer/Analyst > ITS-Enterprise Services > 2800 UCC > University of Iowa > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > Sent: Friday, June 13, 2014 9:46 AM > To: FX.php Discussion List > Subject: [FX.php List] Can't get query to work on FM Server 13 > > OK list, here's a simple query that I can't get to work on FM Server 13: > > > include_once('FX/FX.php'); > include_once('FX/server_data.php'); > > $q =new FX('208.52.164.174',80,'fmpro7','http'); > $q->SetDBData('FMServer_Sample','web'); > $q->SetDBPassword('web','web'); > $qResult = $q->FMView(); > > echo "Error code: ".$qResult['errorCode']; > > ?> > > Notice that I hard-coded the new FX command, just to make sure that wasn't an issue... I get error code 4, which means "Unknown command." Huh? > > The only difference in setups is that now, the website is on one server and the FM Server / web publishing engine are on another. > > I'm running PHP 5.3.26 on the web server; since I get a FileMaker error code back, I assume the WPC is actually sending and receiving, but what am I missing here? > > Things that I've checked: > > FX folder does exist, and 'FX.php' is present; Privileges are set to allow XML; login creds are correct Database exists WPE is running on the FM server because I can run the test page and it succeeds > > 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 From dale.bengston at gmail.com Fri Jun 13 09:15:48 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 13 09:14:56 2014 Subject: [FX.php List] Get error code 102 "Field is missing" when my website queries the FM 11 database...error goes away after a while In-Reply-To: References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> Message-ID: James, I first discovered that bringing the ?missing? field to the front would temporarily cure the problem. This may work as a stop-gap until you can rebuild layouts entirely. Dale On Jun 13, 2014, at 10:13 AM, James Dcunha wrote: > Hi Dale, > > I will try recreating the web layouts from scratch and see if that resolves the issue. Will keep you all posted. Thanks!!! > > James > > > On Fri, Jun 13, 2014 at 11:07 AM, Dale Bengston wrote: > Hi James, > > I have had layout corruption cause what you?re seeing. That was back in v7. It?s possible the problem persists, although I stopped using or duplicating other developers? client-server layouts and began creating all my web layouts from-scratch and I haven?t seen this for years. > > Hope this helps, > Dale > > On Jun 13, 2014, at 9:51 AM, James Dcunha wrote: > > > Hi all, > > > > I am having a weird issue. We have a website using FX and FileMaker 11 as the back-end database. > > > > We get an error code 102 "Field is missing" (The web publishing engine ) at random and the site is not able to display specific table data. After sometime the error code goes away and the site displays the table data as normal. > > > > As the response is coming from the web publishing engine I am sure that it has nothing to do with the website code base. It seems like something is causing the FM server to send back the error code even though all the necessary fields are on the web layout. > > > > Could it be layout/data corruption specific to the database table? Appreciate any suggestions on this issue. > > > > -- > > Regards > > James Dcunha > > _______________________________________________ > > 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/20140613/b2e0429b/attachment.html From zippyaus at yahoo.com Thu Jun 26 03:10:15 2014 From: zippyaus at yahoo.com (Stephe Pocock) Date: Thu Jun 26 03:08:27 2014 Subject: [FX.php List] Please help with slow code In-Reply-To: References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> Message-ID: <1403773815.25313.YahooMailNeo@web163202.mail.gq1.yahoo.com> Hi We pretty much use the same code for all our FX pages.? Ever since we moved from Filemaker 11 this has been a lot slower to load. I use the latest FX.php and FMalt I would greatly appreciate it if someone could review this code and let me know if there is anything out of the ordinary. setDBData('FMOnline','TQS_Manual_PHP', 'ALL'); $cat->SetDBUserPass ($webUN, $webPW); $cat->AddDBParam('Initial',$TitleID); $cat->AddDBParam('Reference','FMP'); $cat->AddSortParam('Title','ascend'); $catResult=$cat->FMFind(); foreach ($catResult['data'] as $key => $catData) ?> Forms, Manuals and Publications ? $catData) { $Title = $catData['Title'][0]; $URL = $catData['URL'][0]; $target = $catData['c_URL_target'][0]; echo "\n \n \n \n"; } // End the foreach loop ?>
???????????????
??? ???
$Title
There are less than 100 records and it takes up to a minute to load. We are using FMS13 on iis 2008R2. Thanks in advance. Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140626/4d7685e4/attachment.html From chris at iViking.org Thu Jun 26 10:21:56 2014 From: chris at iViking.org (Chris Hansen) Date: Thu Jun 26 10:20:07 2014 Subject: [FX.php List] Please help with slow code In-Reply-To: <1403773815.25313.YahooMailNeo@web163202.mail.gq1.yahoo.com> References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> <1403773815.25313.YahooMailNeo@web163202.mail.gq1.yahoo.com> Message-ID: <3F7A6713-4181-4EE5-946D-77C9DAB5D948@iViking.org> Hi Stephe, A few questions: 1) Are there many excess fields on the layout in question? 2) Are there any summary or unstored calculation fields? 3) Have you tried performing the query using data type FMPro7? (In this case any integer gte 7 will perform the same.) Best, --Chris On Jun 26, 2014, at 3:10 AM, Stephe Pocock wrote: > Hi > > We pretty much use the same code for all our FX pages. Ever since we moved from Filemaker 11 this has been a lot slower to load. > > I use the latest FX.php and FMalt > > I would greatly appreciate it if someone could review this code and let me know if there is anything out of the ordinary. > > > define('DEBUG', FALSE); > > include_once("../FX/FX.php"); > include_once("../FX/server_data.php"); > include_once("../FX/FMErrors.php"); > > $TitleID=$_REQUEST['Initial']; > > $cat=new FX($serverIP,$webCompanionPort,'FMAlt'); > $cat->setDBData('FMOnline','TQS_Manual_PHP', 'ALL'); > $cat->SetDBUserPass ($webUN, $webPW); > $cat->AddDBParam('Initial',$TitleID); > $cat->AddDBParam('Reference','FMP'); > > $cat->AddSortParam('Title','ascend'); > > $catResult=$cat->FMFind(); > foreach ($catResult['data'] as $key => $catData) > > ?> > > > > > Forms, Manuals and Publications > > > > > > > $checkHeader = NULL; > > foreach ($catResult['data'] as $key => $catData) > { > $Title = $catData['Title'][0]; > $URL = $catData['URL'][0]; > $target = $catData['c_URL_target'][0]; > > > echo "\n > \n > \n > \n"; > > } > // End the foreach loop > ?> >
>
$Title
> > > > > > > > There are less than 100 records and it takes up to a minute to load. > > We are using FMS13 on iis 2008R2. > > Thanks in advance. > > Stephen > > _______________________________________________ > 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/20140626/1163b4db/attachment-0001.html From dale.bengston at gmail.com Fri Jun 27 11:48:53 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 27 11:47:01 2014 Subject: [FX.php List] Error 802 - Unable to open file Message-ID: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> Hi everyone, Here?s a new one for me. I had to uninstall/reinstall my dev server?s FMS12, and now I?m getting an error 802 (Unable to open file) when I try to connect via the web. Here?s what I?ve eliminated as causes: * Accounts, privilege sets: The databases I?m using are backups of files from the production server, so I know (and have verified) that the proper extended privileges are set for XML web access. The user account I?m using in FX.php is the same as always, and the same as the live server. * File permissions (OS X): I can log into the files client-server and create add/edit/delete records. Permissions are set correctly on the physical files. * File corruption: I can log into the databases client-server and all functions as expected. * Web server connection: I get 200 from Apache using localhost or the IP address of my machine, but error 802 from FX.php. (If I intentionally put in an IP address with no FMS, I get the expected [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=??].) --a break in the action-- Okay, I have shut down FMS one more time, repaired permissions and restarted, I am not able to bring FMS back up. The log files say: 6/27/14 12:41:18.058 PM com.filemaker.syslogger[89]: Starting Database Server process... 6/27/14 12:41:18.083 PM com.filemaker.syslogger[89]: Database Server process has terminated abnormally. 6/27/14 12:41:18.194 PM com.filemaker.syslogger[670]: FileMaker Database Server has detected that a required network port (5003) is already in use by another application (probably FileMaker Pro running on this machine). FileMaker Database Server cannot continue and will now shut down. Since I just restarted, I definitely do not have FileMaker Pro running and taking port 5003. (And no I don?t have the OS X firewall tuned on, ever.) Anybody have any clue what?s killing my FMS? FX.php v 6.0 OS X Mavericks 10.9.3 FileMaker Server 12 v12.0.6.600 (Mavericks release) Thanks, Dale From bob at patin.com Fri Jun 27 12:24:50 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 27 12:23:01 2014 Subject: [FX.php List] Problem with web publishing on a FM Server 13 machine Message-ID: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> I have a Mac server running FM Server 13.0.2; web publishing first started showing odd errors (not doing simple queries), so I stopped web publishing and then restarted it, after which it totally stopped working. I repaired permissions, no joy; I then redeployed the WPE, but that didn?t solve it; I then uninstalled FMS 13 and re-installed it, applying the update to get it to 13.0.2. Now the PHP test page fails; WebDirect works though. Here?s the error that I get when I try to run the FMS 13 server test page: The PHP connection to the FMServer_Sample database failed. An unexpected erorr occurred. Consult the FileMaker documentation for additional assistance. (XML error: Not well-formed (invalid token) at line 1) Anyone have any ideas about this? 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/20140627/160ea18f/attachment.html From dale.bengston at gmail.com Fri Jun 27 13:19:48 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 27 13:17:58 2014 Subject: [FX.php List] Re: Error 802 - Unable to open file In-Reply-To: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> References: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> Message-ID: Further research and Console log analysis brought me to the smoking gun: the Cisco AnyConnect VPN client. I grudgingly* installed AnyConnect on Monday to connect to a new client?s VPN. Subsequently, Cisco AnyConnect killed FMS, killed web access to FMS and caused major slowdowns to every browser page load. The slow browser loads caused barrages of errors in Console that ultimately led me to the culprit, and a resolution. I uninstalled AnyConnect and reinstalled with its web security ?features? turned off. I now have my Mac back. * I have a hate-hate relationship with Cisco VPN clients. Their previous-generation IPSec client was a buggy mess. When Apple came up with its own built-in Cisco IPSec VPN client, I happily switched to it and reduced my kernel panics by 100%. Another D+ for Cisco. Too bad I can?t send them a bill for lost work time. Dale On Jun 27, 2014, at 12:48 PM, Dale Bengston wrote: > Hi everyone, > > Here?s a new one for me. I had to uninstall/reinstall my dev server?s FMS12, and now I?m getting an error 802 (Unable to open file) when I try to connect via the web. Here?s what I?ve eliminated as causes: > > * Accounts, privilege sets: The databases I?m using are backups of files from the production server, so I know (and have verified) that the proper extended privileges are set for XML web access. The user account I?m using in FX.php is the same as always, and the same as the live server. > > * File permissions (OS X): I can log into the files client-server and create add/edit/delete records. Permissions are set correctly on the physical files. > > * File corruption: I can log into the databases client-server and all functions as expected. > > * Web server connection: I get 200 from Apache using localhost or the IP address of my machine, but error 802 from FX.php. (If I intentionally put in an IP address with no FMS, I get the expected [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=??].) > > --a break in the action-- > > Okay, I have shut down FMS one more time, repaired permissions and restarted, I am not able to bring FMS back up. The log files say: > > 6/27/14 12:41:18.058 PM com.filemaker.syslogger[89]: Starting Database Server process... > 6/27/14 12:41:18.083 PM com.filemaker.syslogger[89]: Database Server process has terminated abnormally. > 6/27/14 12:41:18.194 PM com.filemaker.syslogger[670]: FileMaker Database Server has detected that a required network port (5003) is already in use by another application (probably FileMaker Pro running on this machine). FileMaker Database Server cannot continue and will now shut down. > > Since I just restarted, I definitely do not have FileMaker Pro running and taking port 5003. (And no I don?t have the OS X firewall tuned on, ever.) Anybody have any clue what?s killing my FMS? > > FX.php v 6.0 > OS X Mavericks 10.9.3 > FileMaker Server 12 v12.0.6.600 (Mavericks release) > > Thanks, > Dale > > From tony_white at twdesigns.com Fri Jun 27 13:20:05 2014 From: tony_white at twdesigns.com (Tony White) Date: Fri Jun 27 13:20:34 2014 Subject: [FX.php List] Is https from within and http page safe? Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 237495 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20140627/5f6d2e4e/attachment-0001.png From dale.bengston at gmail.com Fri Jun 27 13:23:21 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 27 13:21:32 2014 Subject: [FX.php List] Re: Error 802 - Unable to open file In-Reply-To: References: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> Message-ID: <97190CE6-6488-47B7-8777-4276629C2EE4@gmail.com> PS I just discovered that my wireless Bluetooth mouse is working again. It had stopped Monday after AnyConnect installation too. What a turd. On Jun 27, 2014, at 2:19 PM, Dale Bengston wrote: > Further research and Console log analysis brought me to the smoking gun: the Cisco AnyConnect VPN client. > > I grudgingly* installed AnyConnect on Monday to connect to a new client?s VPN. Subsequently, Cisco AnyConnect killed FMS, killed web access to FMS and caused major slowdowns to every browser page load. The slow browser loads caused barrages of errors in Console that ultimately led me to the culprit, and a resolution. I uninstalled AnyConnect and reinstalled with its web security ?features? turned off. I now have my Mac back. > > * I have a hate-hate relationship with Cisco VPN clients. Their previous-generation IPSec client was a buggy mess. When Apple came up with its own built-in Cisco IPSec VPN client, I happily switched to it and reduced my kernel panics by 100%. > > Another D+ for Cisco. Too bad I can?t send them a bill for lost work time. > > Dale > > On Jun 27, 2014, at 12:48 PM, Dale Bengston wrote: > >> Hi everyone, >> >> Here?s a new one for me. I had to uninstall/reinstall my dev server?s FMS12, and now I?m getting an error 802 (Unable to open file) when I try to connect via the web. Here?s what I?ve eliminated as causes: >> >> * Accounts, privilege sets: The databases I?m using are backups of files from the production server, so I know (and have verified) that the proper extended privileges are set for XML web access. The user account I?m using in FX.php is the same as always, and the same as the live server. >> >> * File permissions (OS X): I can log into the files client-server and create add/edit/delete records. Permissions are set correctly on the physical files. >> >> * File corruption: I can log into the databases client-server and all functions as expected. >> >> * Web server connection: I get 200 from Apache using localhost or the IP address of my machine, but error 802 from FX.php. (If I intentionally put in an IP address with no FMS, I get the expected [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=??].) >> >> --a break in the action-- >> >> Okay, I have shut down FMS one more time, repaired permissions and restarted, I am not able to bring FMS back up. The log files say: >> >> 6/27/14 12:41:18.058 PM com.filemaker.syslogger[89]: Starting Database Server process... >> 6/27/14 12:41:18.083 PM com.filemaker.syslogger[89]: Database Server process has terminated abnormally. >> 6/27/14 12:41:18.194 PM com.filemaker.syslogger[670]: FileMaker Database Server has detected that a required network port (5003) is already in use by another application (probably FileMaker Pro running on this machine). FileMaker Database Server cannot continue and will now shut down. >> >> Since I just restarted, I definitely do not have FileMaker Pro running and taking port 5003. (And no I don?t have the OS X firewall tuned on, ever.) Anybody have any clue what?s killing my FMS? >> >> FX.php v 6.0 >> OS X Mavericks 10.9.3 >> FileMaker Server 12 v12.0.6.600 (Mavericks release) >> >> Thanks, >> Dale >> >> > From mail at jsfmp.com Fri Jun 27 13:40:33 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Fri Jun 27 13:38:42 2014 Subject: [FX.php List] Error 802 - Unable to open file In-Reply-To: <97190CE6-6488-47B7-8777-4276629C2EE4@gmail.com> References: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> <97190CE6-6488-47B7-8777-4276629C2EE4@gmail.com> Message-ID: <5735235F-7D58-4EDE-A689-86CBD079CC3B@jsfmp.com> A turd for a mouse? ew. On Jun 27, 2014, at 12:23 PM, Dale Bengston wrote: > PS I just discovered that my wireless Bluetooth mouse is working again. It had stopped Monday after AnyConnect installation too. What a turd. > > On Jun 27, 2014, at 2:19 PM, Dale Bengston wrote: > >> Further research and Console log analysis brought me to the smoking gun: the Cisco AnyConnect VPN client. >> >> I grudgingly* installed AnyConnect on Monday to connect to a new client?s VPN. Subsequently, Cisco AnyConnect killed FMS, killed web access to FMS and caused major slowdowns to every browser page load. The slow browser loads caused barrages of errors in Console that ultimately led me to the culprit, and a resolution. I uninstalled AnyConnect and reinstalled with its web security ?features? turned off. I now have my Mac back. >> >> * I have a hate-hate relationship with Cisco VPN clients. Their previous-generation IPSec client was a buggy mess. When Apple came up with its own built-in Cisco IPSec VPN client, I happily switched to it and reduced my kernel panics by 100%. >> >> Another D+ for Cisco. Too bad I can?t send them a bill for lost work time. >> >> Dale >> >> On Jun 27, 2014, at 12:48 PM, Dale Bengston wrote: >> >>> Hi everyone, >>> >>> Here?s a new one for me. I had to uninstall/reinstall my dev server?s FMS12, and now I?m getting an error 802 (Unable to open file) when I try to connect via the web. Here?s what I?ve eliminated as causes: >>> >>> * Accounts, privilege sets: The databases I?m using are backups of files from the production server, so I know (and have verified) that the proper extended privileges are set for XML web access. The user account I?m using in FX.php is the same as always, and the same as the live server. >>> >>> * File permissions (OS X): I can log into the files client-server and create add/edit/delete records. Permissions are set correctly on the physical files. >>> >>> * File corruption: I can log into the databases client-server and all functions as expected. >>> >>> * Web server connection: I get 200 from Apache using localhost or the IP address of my machine, but error 802 from FX.php. (If I intentionally put in an IP address with no FMS, I get the expected [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=??].) >>> >>> --a break in the action-- >>> >>> Okay, I have shut down FMS one more time, repaired permissions and restarted, I am not able to bring FMS back up. The log files say: >>> >>> 6/27/14 12:41:18.058 PM com.filemaker.syslogger[89]: Starting Database Server process... >>> 6/27/14 12:41:18.083 PM com.filemaker.syslogger[89]: Database Server process has terminated abnormally. >>> 6/27/14 12:41:18.194 PM com.filemaker.syslogger[670]: FileMaker Database Server has detected that a required network port (5003) is already in use by another application (probably FileMaker Pro running on this machine). FileMaker Database Server cannot continue and will now shut down. >>> >>> Since I just restarted, I definitely do not have FileMaker Pro running and taking port 5003. (And no I don?t have the OS X firewall tuned on, ever.) Anybody have any clue what?s killing my FMS? >>> >>> FX.php v 6.0 >>> OS X Mavericks 10.9.3 >>> FileMaker Server 12 v12.0.6.600 (Mavericks release) >>> >>> Thanks, >>> Dale >>> >>> >> > > _______________________________________________ > 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 Fri Jun 27 14:01:40 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 27 13:59:49 2014 Subject: [FX.php List] Error 802 - Unable to open file In-Reply-To: <5735235F-7D58-4EDE-A689-86CBD079CC3B@jsfmp.com> References: <0AF160C3-6AA9-4E52-A0E2-677973A3AE80@gmail.com> <97190CE6-6488-47B7-8777-4276629C2EE4@gmail.com> <5735235F-7D58-4EDE-A689-86CBD079CC3B@jsfmp.com> Message-ID: Joel, there are so many bad places to go with that on a Friday afternoon?. Dale On Jun 27, 2014, at 2:40 PM, Joel Shapiro wrote: > A turd for a mouse? > > ew. > > > On Jun 27, 2014, at 12:23 PM, Dale Bengston wrote: > >> PS I just discovered that my wireless Bluetooth mouse is working again. It had stopped Monday after AnyConnect installation too. What a turd. >> >> On Jun 27, 2014, at 2:19 PM, Dale Bengston wrote: >> >>> Further research and Console log analysis brought me to the smoking gun: the Cisco AnyConnect VPN client. >>> >>> I grudgingly* installed AnyConnect on Monday to connect to a new client?s VPN. Subsequently, Cisco AnyConnect killed FMS, killed web access to FMS and caused major slowdowns to every browser page load. The slow browser loads caused barrages of errors in Console that ultimately led me to the culprit, and a resolution. I uninstalled AnyConnect and reinstalled with its web security ?features? turned off. I now have my Mac back. >>> >>> * I have a hate-hate relationship with Cisco VPN clients. Their previous-generation IPSec client was a buggy mess. When Apple came up with its own built-in Cisco IPSec VPN client, I happily switched to it and reduced my kernel panics by 100%. >>> >>> Another D+ for Cisco. Too bad I can?t send them a bill for lost work time. >>> >>> Dale >>> >>> On Jun 27, 2014, at 12:48 PM, Dale Bengston wrote: >>> >>>> Hi everyone, >>>> >>>> Here?s a new one for me. I had to uninstall/reinstall my dev server?s FMS12, and now I?m getting an error 802 (Unable to open file) when I try to connect via the web. Here?s what I?ve eliminated as causes: >>>> >>>> * Accounts, privilege sets: The databases I?m using are backups of files from the production server, so I know (and have verified) that the proper extended privileges are set for XML web access. The user account I?m using in FX.php is the same as always, and the same as the live server. >>>> >>>> * File permissions (OS X): I can log into the files client-server and create add/edit/delete records. Permissions are set correctly on the physical files. >>>> >>>> * File corruption: I can log into the databases client-server and all functions as expected. >>>> >>>> * Web server connection: I get 200 from Apache using localhost or the IP address of my machine, but error 802 from FX.php. (If I intentionally put in an IP address with no FMS, I get the expected [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=??].) >>>> >>>> --a break in the action-- >>>> >>>> Okay, I have shut down FMS one more time, repaired permissions and restarted, I am not able to bring FMS back up. The log files say: >>>> >>>> 6/27/14 12:41:18.058 PM com.filemaker.syslogger[89]: Starting Database Server process... >>>> 6/27/14 12:41:18.083 PM com.filemaker.syslogger[89]: Database Server process has terminated abnormally. >>>> 6/27/14 12:41:18.194 PM com.filemaker.syslogger[670]: FileMaker Database Server has detected that a required network port (5003) is already in use by another application (probably FileMaker Pro running on this machine). FileMaker Database Server cannot continue and will now shut down. >>>> >>>> Since I just restarted, I definitely do not have FileMaker Pro running and taking port 5003. (And no I don?t have the OS X firewall tuned on, ever.) Anybody have any clue what?s killing my FMS? >>>> >>>> FX.php v 6.0 >>>> OS X Mavericks 10.9.3 >>>> FileMaker Server 12 v12.0.6.600 (Mavericks release) >>>> >>>> Thanks, >>>> Dale >>>> >>>> >>> >> >> _______________________________________________ >> 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 steve at bluecrocodile.co.nz Fri Jun 27 14:18:53 2014 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Jun 27 14:17:05 2014 Subject: [FX.php List] Is https from within and http page safe? In-Reply-To: References: Message-ID: <87C730BD-FB93-45FA-A238-69766F5AB5A5@bluecrocodile.co.nz> Hi Tony I agree with Troy (frankly only a fool wouldn't). If the page is loaded via http then there is no way to guarantee that it hasn't been tampered with prior to its arrival in your browser. Both the origin and the destination must be encrypted for the transaction to be considered 'safe' (safe being an entirely relative term when it comes to the web ;-). Happy Friday Steve Steve Winter +44 777 852 4776 > On 27 Jun 2014, at 20:20, Tony White wrote: > > Hi Web Experts, > > Is https from within an http page safe? > After reading this... > > Troy Hunt: SSL is not about encryption > http://www.troyhunt.com/2011/01/ssl-is-not-about-encryption.html > > [begin excerpt] > Exploiting the HTTP to HTTPS pattern > > The simplest way to illustrate the risk of this is by looking at a typical man-in-the-middle attack: > > The attacker makes independent connections with the victims and relays messages between them, making them believe that they are talking directly to each other over a private connection, when in fact the entire conversation is controlled by the attacker. > [end excerpt] > > ...I would say no. > > What do you say? > > TIA. > > > > All the best, > > > Tony White > Tony White Designs, Inc. > Tel: 646-714-2797 (Google Voice) > Tel: 718-797-4175 > tony_white@twdesigns.com > http://www.twdesigns.com > _______________________________________________ > 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/20140627/aaa858a3/attachment.html From dale.bengston at gmail.com Fri Jun 27 14:33:23 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Jun 27 14:31:38 2014 Subject: [FX.php List] Is https from within and http page safe? In-Reply-To: <87C730BD-FB93-45FA-A238-69766F5AB5A5@bluecrocodile.co.nz> References: <87C730BD-FB93-45FA-A238-69766F5AB5A5@bluecrocodile.co.nz> Message-ID: I don?t know why more banking sites and shopping/heavily e-comm sites don?t just redirect http -> https when you arrive on their site. Heck, Facebook and Google do it. The consequences are low to nil for just putting the whole site behind SSL. Dale On Jun 27, 2014, at 3:18 PM, Steve Winter wrote: > Hi Tony > > I agree with Troy (frankly only a fool wouldn't). > > If the page is loaded via http then there is no way to guarantee that it hasn't been tampered with prior to its arrival in your browser. Both the origin and the destination must be encrypted for the transaction to be considered 'safe' (safe being an entirely relative term when it comes to the web ;-). > > Happy Friday > Steve > > Steve Winter > +44 777 852 4776 > > On 27 Jun 2014, at 20:20, Tony White wrote: > >> Hi Web Experts, >> >> Is https from within an http page safe? >> After reading this... >> >> Troy Hunt: SSL is not about encryption >> http://www.troyhunt.com/2011/01/ssl-is-not-about-encryption.html >> >> [begin excerpt] >> Exploiting the HTTP to HTTPS pattern >> >> The simplest way to illustrate the risk of this is by looking at a typical man-in-the-middle attack: >> >> The attacker makes independent connections with the victims and relays messages between them, making them believe that they are talking directly to each other over a private connection, when in fact the entire conversation is controlled by the attacker. >> [end excerpt] >> >> ...I would say no. >> >> What do you say? >> >> TIA. >> >> >> >> All the best, >> >> >> Tony White >> Tony White Designs, Inc. >> Tel: 646-714-2797 (Google Voice) >> Tel: 718-797-4175 >> tony_white@twdesigns.com >> http://www.twdesigns.com >> _______________________________________________ >> 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/20140627/79ea5388/attachment-0001.html From tony_white at twdesigns.com Fri Jun 27 14:35:17 2014 From: tony_white at twdesigns.com (Tony White) Date: Fri Jun 27 14:33:29 2014 Subject: [FX.php List] [ANN] FMP URL protocol infographic Message-ID: Hi All, In case you did not see this on any of the other channels... The FMP URL protocol infographic from the 2014-06-19 NYFMP.org meeting is available for download. http://nyfmp.org/2014/06/20/fmp-url-protocol-infographic-from-the-2014-06-19 -meeting/ Enjoy. All the best, Tony White Tony White Designs, Inc. Tel: 646-714-2797 (Google Voice) Tel: 718-797-4175 tony_white@twdesigns.com http://www.twdesigns.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140627/088d057a/attachment.html From csinfo at criticalsolution.com Fri Jun 27 14:54:57 2014 From: csinfo at criticalsolution.com (csinfo) Date: Fri Jun 27 14:53:06 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 Message-ID: I had a FileMaker 13 server running on a Mavericks machine. For the most part all was working well including my FX / PHP sites. I had to move the databases and web files to a Windows 7 Machine running FM Server 13 (for reasons that I cannot go into here) I have all the dbs being served and can bee seen by FMP users, I have a single machine deployment with xml and PHP enabled. All good, right? No? My web sites are not working, I am getting an internal error while doing a simple query. PHP is working (phpinfo test) I copied the web sites completely, keeping the folder structure the same, and the IP address is the same as the (now turned off) Mac so I should not need to edit any server Ips. Is there something I am missing switching from Apache on OSX to IIS on Windows 7. John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140627/7b7603bf/attachment.html From bob at patin.com Fri Jun 27 14:57:44 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 27 14:55:51 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 In-Reply-To: References: Message-ID: <96E76165-82C2-4C3F-9BC6-539C17069B3F@patin.com> Here?s what I did: I did a single-machine install, because OS X Server doesn?t play well with FM Server 13 (doesn?t play at all, in fact). SO? if you MUST use Mavericks, don?t install Server, but instead put the website either in FM Server?s buried folder (I forget the path offhand, but it?s buried a hundred levels deep), OR, and this is my preference, host the website on a separate machine and just point your web app to the WPE on your FMS 13 machine. FMI needs to fix FMS 13 so that it works with OS X Server. Today one of my FMS 13 machines geeked completely and now i can?t do any web publishing on it at all, other than WebDirect; the test page even fails? not happy about 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 Jun 27, 2014, at 3:54 PM, csinfo wrote: > I had a FileMaker 13 server running on a Mavericks machine. For the most part all was working well including my FX / PHP sites. I had to move the databases and web files to a Windows 7 Machine running FM Server 13 (for reasons that I cannot go into here) > I have all the dbs being served and can bee seen by FMP users, I have a single machine deployment with xml and PHP enabled. All good, right? No? > My web sites are not working, I am getting an internal error while doing a simple query. PHP is working (phpinfo test) > I copied the web sites completely, keeping the folder structure the same, and the IP address is the same as the (now turned off) Mac so I should not need to edit any server Ips. > > Is there something I am missing switching from Apache on OSX to IIS on Windows 7. > John > > _______________________________________________ > 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/20140627/8e0baa2b/attachment.html From gary at gnurps.com Fri Jun 27 14:59:54 2014 From: gary at gnurps.com (Gary Lowell Sprung) Date: Fri Jun 27 14:58:03 2014 Subject: [FX.php List] Problem with web publishing on a FM Server 13 machine In-Reply-To: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> References: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> Message-ID: Bob, What Mac OS? I hope not Mavericks Server. Last I looked (March or April), FMS 13 does not work on Mavericks Server. Gary On Jun 27, 2014, at 12:24 PM, Bob Patin wrote: > I have a Mac server running FM Server 13.0.2; web publishing first started showing odd errors (not doing simple queries), so I stopped web publishing and then restarted it, after which it totally stopped working. > > I repaired permissions, no joy; > > I then redeployed the WPE, but that didn?t solve it; > > I then uninstalled FMS 13 and re-installed it, applying the update to get it to 13.0.2. > > Now the PHP test page fails; WebDirect works though. > > Here?s the error that I get when I try to run the FMS 13 server test page: > > The PHP connection to the FMServer_Sample database failed. > An unexpected erorr occurred. Consult the FileMaker documentation for additional assistance. (XML error: Not well-formed (invalid token) at line 1) > > Anyone have any ideas about this? > > 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/20140627/a083bdcd/attachment.html From bob at patin.com Fri Jun 27 15:02:12 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 27 15:00:20 2014 Subject: [FX.php List] Problem with web publishing on a FM Server 13 machine In-Reply-To: References: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> Message-ID: No, I removed Mavericks Server, then Mavericks; it?s running Mountain Lion. 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 Jun 27, 2014, at 3:59 PM, Gary Lowell Sprung wrote: > Bob, > > What Mac OS? I hope not Mavericks Server. Last I looked (March or April), FMS 13 does not work on Mavericks Server. > > Gary > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140627/e77924f6/attachment-0001.html From csinfo at criticalsolution.com Fri Jun 27 15:31:12 2014 From: csinfo at criticalsolution.com (csinfo) Date: Fri Jun 27 15:29:20 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 In-Reply-To: <96E76165-82C2-4C3F-9BC6-539C17069B3F@patin.com> Message-ID: Bob I have another Client/Mac Mav machine that I am running FMS and a web server as you described but I really like this idea, with FX you only need to have XML enabled on FMS. "host the website on a separate machine and just point your web app to the WPE on your FMS 13 machine" Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20140627/b84f892c/attachment.html From bob at patin.com Fri Jun 27 15:34:47 2014 From: bob at patin.com (Bob Patin) Date: Fri Jun 27 15:32:54 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 In-Reply-To: References: Message-ID: <67D50B11-3FCB-4F51-AD1E-A4FB3DC87580@patin.com> On Jun 27, 2014, at 4:31 PM, csinfo wrote: > Bob I have another Client/Mac Mav machine that I am running FMS and a web server as you described but I really like this idea, with FX you only need to have XML enabled on FMS. > > "host the website on a separate machine and just point your web app to the WPE on your FMS 13 machine? Well true, but I always enable PHP as well for those people who develop with the API; I have other clients who do some of their own PHP work and I enable it for that reason. It won?t matter to have it enabled anyway, I would think; the error I?m getting back refers to XML, so at this point I?m thinking I?ll have to re-install the OS to get it working again. Meanwhile I just moved the existing web apps to a different machine. Shouldn?t be necessary though; I?ve never had this problem before in more than 10 years doing PHP web apps with FileMaker? 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/20140627/f23dae60/attachment.html From zippyaus at yahoo.com Mon Jun 30 09:24:26 2014 From: zippyaus at yahoo.com (Stephe Pocock) Date: Mon Jun 30 09:22:21 2014 Subject: [FX.php List] Please help with slow code In-Reply-To: <6288D14B-565F-4136-8158-038B0898688D@iViking.org> References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> <1403773815.25313.YahooMailNeo@web163202.mail.gq1.yahoo.com> <3F7A6713-4181-4EE5-946D-77C9DAB5D948@iViking.org> <1404102338.87199.YahooMailNeo@web163204.mail.gq1.yahoo.com> <6288D14B-565F-4136-8158-038B0898688D@iViking.org> Message-ID: <1404141866.81061.YahooMailNeo@web163204.mail.gq1.yahoo.com> Hi Chris Thanks for the response. I am not sure what is going on with my solution. As i said, it worked fine under FM11 but under 12 and now 13 it is slow, 18 seconds to load 230 records. Today, I re-wrote the page using the Filemaker php API, I used the same layout and the same find request return the original calculation fields.? The results are returned almost instantly.? The slowness with FM php is the sorting. Thanks Stephen ________________________________ From: Chris Hansen To: Stephe Pocock Sent: Monday, 30 June 2014 11:06 PM Subject: Re: [FX.php List] Please help with slow code Hi Stephen, So all three of the calculations were UN-stored calcs? ?Well, if there's no way to create stored versions of the calculations (via periodically re-loaded lookups, for example), then doing the calc in PHP might be faster. ?That said, it does seem odd that the performance was okay in FM 11 if that's the problem. That brings me to the other possibility: FMAlt vs FMPro7. ?The reason that FMAlt was introduced was that a bug was introduced in FMS12 related to portals and/or repeating fields as returned by a specific XML schema. ?(Everything else works fine.) ?The XML grammar used by FMAlt is much more verbose, and I have seen responses with it take twice as long to load (though typically the difference is quite a bit smaller.) ?Are there portals and/or repeating fields on the layout in question, and if not, have you tried using FMPro7 as your data type? ?(Note that you can use FMPro12 as the data type, too, but the output will be no different.) Best, --Chris On Jun 29, 2014, at 10:25 PM, Stephe Pocock wrote: Hi Chris > > >There were 6 fields on the layout. > > >3 calculations. > > >I have removed the calculations from the php page and layout and the page loads faster, but obviously does not have the required data. > > >The thing that bothers me is these are the same pages and setups that we have for Filemaker 11 and we never had the slow loads. > > >Are you suggesting that I not use calculations and do all of the calculations in php? > > >Thanks > >Stephen > > > > >________________________________ > From: Chris Hansen >To: Stephe Pocock ; FX.php Discussion List >Sent: Friday, 27 June 2014 12:21 AM >Subject: Re: [FX.php List] Please help with slow code > > > >Hi Stephe, > > >A few questions: > > >1) Are there many excess fields on the layout in question? > > >2) Are there any summary or unstored calculation fields? > > >3) Have you tried performing the query using data type FMPro7? (In this case any integer gte 7 will perform the same.) > > >Best, > > >--Chris > > > > >On Jun 26, 2014, at 3:10 AM, Stephe Pocock wrote: > >Hi >> >>We pretty much use the same code for all our FX pages.? Ever since we moved from Filemaker 11 this has been a lot slower to load. >> >>I use the latest FX.php and FMalt >> >>I would greatly appreciate it if someone could review this code and let me know if there is anything out of the ordinary. >> >> >>> >>define('DEBUG', FALSE); >> >>include_once("../FX/FX.php"); >>include_once("../FX/server_data.php"); >>include_once("../FX/FMErrors.php"); >> >>$TitleID=$_REQUEST['Initial']; >> >>$cat=new FX($serverIP,$webCompanionPort,'FMAlt'); >>$cat->setDBData('FMOnline','TQS_Manual_PHP', 'ALL'); >>$cat->SetDBUserPass ($webUN, $webPW); >>$cat->AddDBParam('Initial',$TitleID); >>$cat->AddDBParam('Reference','FMP'); >> >>$cat->AddSortParam('Title','ascend'); >> >>$catResult=$cat->FMFind(); >>foreach ($catResult['data'] as $key => $catData) >> >>?> >> >> >> >> >>Forms, Manuals and Publications >> >> >> >> >> >>? >>>$checkHeader = NULL; >> >>foreach ($catResult['data'] as $key => $catData) >>{ >>$Title = $catData['Title'][0]; >>$URL = $catData['URL'][0]; >>$target = $catData['c_URL_target'][0]; >> >> >>echo "\n >>\n >>\n >>\n"; >> >>} >>// End the foreach loop >>?> >>
>>???????????????
??? ???
$Title
>> >> >> >> >> >> >> >>There are less than 100 records and it takes up to a minute to load. >> >>We are using FMS13 on iis 2008R2. >> >>Thanks in advance. >> >>Stephen >> >>_______________________________________________ >>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/20140630/a4320b3b/attachment-0001.html From chris at iViking.org Mon Jun 30 09:48:11 2014 From: chris at iViking.org (Chris Hansen) Date: Mon Jun 30 09:46:05 2014 Subject: [FX.php List] Problem with web publishing on a FM Server 13 machine In-Reply-To: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> References: <110CF597-CEEE-4148-B886-DAB9FA5FC749@patin.com> Message-ID: <36092EA0-5084-4EDC-B2CF-0D2038F51A31@iViking.org> Hi Bob, That malformed XML error has me wondering if perhaps the server is returning an HTML error page rather than XML (this has happened to me before.) As both FAP and FX.php actually communicate via XML, try hitting the FIleMaker server with something like the following, and let us know what you get: http:///fmi/xml/FMPXMLRESULT.xml?-db=&-lay=&-findany http:///fmi/xml/fmresultset.xml?-db=&-lay=&-findany The first URL should use the schema returned by the FMPro7 (or greater) data type, while the second will be the XML as returned by FAP or the FMAlt data type under FX. Let me know what you see. Best, --Chris On Jun 27, 2014, at 12:24 PM, Bob Patin wrote: > I have a Mac server running FM Server 13.0.2; web publishing first started showing odd errors (not doing simple queries), so I stopped web publishing and then restarted it, after which it totally stopped working. > > I repaired permissions, no joy; > > I then redeployed the WPE, but that didn?t solve it; > > I then uninstalled FMS 13 and re-installed it, applying the update to get it to 13.0.2. > > Now the PHP test page fails; WebDirect works though. > > Here?s the error that I get when I try to run the FMS 13 server test page: > > The PHP connection to the FMServer_Sample database failed. > An unexpected erorr occurred. Consult the FileMaker documentation for additional assistance. (XML error: Not well-formed (invalid token) at line 1) > > Anyone have any ideas about this? > > 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/20140630/6c2f77b0/attachment.html From chris at iViking.org Mon Jun 30 09:52:05 2014 From: chris at iViking.org (Chris Hansen) Date: Mon Jun 30 09:49:58 2014 Subject: [FX.php List] Please help with slow code In-Reply-To: <1404141866.81061.YahooMailNeo@web163204.mail.gq1.yahoo.com> References: <71B70BDA-DA9F-4DE0-890A-CCF3AE193FE0@gmail.com> <1403773815.25313.YahooMailNeo@web163202.mail.gq1.yahoo.com> <3F7A6713-4181-4EE5-946D-77C9DAB5D948@iViking.org> <1404102338.87199.YahooMailNeo@web163204.mail.gq1.yahoo.com> <6288D14B-565F-4136-8158-038B0898688D@iViking.org> <1404141866.81061.YahooMailNeo@web163204.mail.gq1.yahoo.com> Message-ID: Stephen, So are you saying that if you perform a query via FAP without sorting, it returns quickly? Is this the case with FX.php as well, or is it still slow? If it's the sort that is slow, and you're only dealing with a couple hundred records, I'd absolutely perform the sort using PHP. Also, not to be a broken record, but I've asked you twice to try the query using a different data type parameter (FMPro7 -- or 13 if you like -- rather than FMAlt). This really can make a difference. Best, --Chris On Jun 30, 2014, at 9:24 AM, Stephe Pocock wrote: > Hi Chris > > Thanks for the response. > > I am not sure what is going on with my solution. > > As i said, it worked fine under FM11 but under 12 and now 13 it is slow, 18 seconds to load 230 records. > > Today, I re-wrote the page using the Filemaker php API, I used the same layout and the same find request return the original calculation fields. The results are returned almost instantly. The slowness with FM php is the sorting. > > Thanks > > Stephen > > From: Chris Hansen > To: Stephe Pocock > Sent: Monday, 30 June 2014 11:06 PM > Subject: Re: [FX.php List] Please help with slow code > > Hi Stephen, > > So all three of the calculations were UN-stored calcs? Well, if there's no way to create stored versions of the calculations (via periodically re-loaded lookups, for example), then doing the calc in PHP might be faster. That said, it does seem odd that the performance was okay in FM 11 if that's the problem. > > That brings me to the other possibility: FMAlt vs FMPro7. The reason that FMAlt was introduced was that a bug was introduced in FMS12 related to portals and/or repeating fields as returned by a specific XML schema. (Everything else works fine.) The XML grammar used by FMAlt is much more verbose, and I have seen responses with it take twice as long to load (though typically the difference is quite a bit smaller.) Are there portals and/or repeating fields on the layout in question, and if not, have you tried using FMPro7 as your data type? (Note that you can use FMPro12 as the data type, too, but the output will be no different.) > > Best, > > --Chris > > > > On Jun 29, 2014, at 10:25 PM, Stephe Pocock wrote: > >> Hi Chris >> >> There were 6 fields on the layout. >> >> 3 calculations. >> >> I have removed the calculations from the php page and layout and the page loads faster, but obviously does not have the required data. >> >> The thing that bothers me is these are the same pages and setups that we have for Filemaker 11 and we never had the slow loads. >> >> Are you suggesting that I not use calculations and do all of the calculations in php? >> >> Thanks >> >> Stephen >> >> From: Chris Hansen >> To: Stephe Pocock ; FX.php Discussion List >> Sent: Friday, 27 June 2014 12:21 AM >> Subject: Re: [FX.php List] Please help with slow code >> >> Hi Stephe, >> >> A few questions: >> >> 1) Are there many excess fields on the layout in question? >> >> 2) Are there any summary or unstored calculation fields? >> >> 3) Have you tried performing the query using data type FMPro7? (In this case any integer gte 7 will perform the same.) >> >> Best, >> >> --Chris >> >> >> >> On Jun 26, 2014, at 3:10 AM, Stephe Pocock wrote: >> >>> Hi >>> >>> We pretty much use the same code for all our FX pages. Ever since we moved from Filemaker 11 this has been a lot slower to load. >>> >>> I use the latest FX.php and FMalt >>> >>> I would greatly appreciate it if someone could review this code and let me know if there is anything out of the ordinary. >>> >>> >> >>> define('DEBUG', FALSE); >>> >>> include_once("../FX/FX.php"); >>> include_once("../FX/server_data.php"); >>> include_once("../FX/FMErrors.php"); >>> >>> $TitleID=$_REQUEST['Initial']; >>> >>> $cat=new FX($serverIP,$webCompanionPort,'FMAlt'); >>> $cat->setDBData('FMOnline','TQS_Manual_PHP', 'ALL'); >>> $cat->SetDBUserPass ($webUN, $webPW); >>> $cat->AddDBParam('Initial',$TitleID); >>> $cat->AddDBParam('Reference','FMP'); >>> >>> $cat->AddSortParam('Title','ascend'); >>> >>> $catResult=$cat->FMFind(); >>> foreach ($catResult['data'] as $key => $catData) >>> >>> ?> >>> >>> >>> >>> >>> Forms, Manuals and Publications >>> >>> >>> >>> >>> >>> >>> >> $checkHeader = NULL; >>> >>> foreach ($catResult['data'] as $key => $catData) >>> { >>> $Title = $catData['Title'][0]; >>> $URL = $catData['URL'][0]; >>> $target = $catData['c_URL_target'][0]; >>> >>> >>> echo "\n >>> \n >>> \n >>> \n"; >>> >>> } >>> // End the foreach loop >>> ?> >>>
>>>
$Title
>>> >>> >>> >>> >>> >>> >>> >>> There are less than 100 records and it takes up to a minute to load. >>> >>> We are using FMS13 on iis 2008R2. >>> >>> Thanks in advance. >>> >>> Stephen >>> >>> _______________________________________________ >>> 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/20140630/c830d195/attachment-0001.html From csinfo at criticalsolution.com Mon Jun 30 10:35:17 2014 From: csinfo at criticalsolution.com (csinfo) Date: Mon Jun 30 10:35:19 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 In-Reply-To: Message-ID: Bob, I did configure another Mac machine to be the web server and works great. Thanks for the idea. On 6/27/14 4:31 PM, "csinfo" wrote: > Bob I have another Client/Mac Mav machine that I am running FMS and a web > server as you described but I really like this idea, with FX you only need to > have XML enabled on FMS. > > "host the website on a separate machine and just point your web app to the WPE > on your FMS 13 machine" > > Thanks > _______________________________________________ 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/20140630/be35e42e/attachment.html From bob at patin.com Mon Jun 30 10:40:42 2014 From: bob at patin.com (Bob Patin) Date: Mon Jun 30 10:38:39 2014 Subject: [FX.php List] Moving from Mac OS to Windows 7 In-Reply-To: References: Message-ID: <02EA5F6C-8817-4694-B578-53D83C6202AA@patin.com> My pleasure; it?s my latest method and I prefer it now to the 2-machine config. This way, if you have a problem with a FM Server, you can simply change your server-data file to point to a different FM Server, move the database to the other machine, and your web app is back in 2 minutes? as I had to do the other day when my FMS 13 machine stopped working. I never got it working again, and at this point I?m thinking it?s going to require an OS re-install? 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 Jun 30, 2014, at 11:35 AM, csinfo wrote: > Bob, I did configure another Mac machine to be the web server and works great. Thanks for the idea. > > On 6/27/14 4:31 PM, "csinfo" wrote: > >> Bob I have another Client/Mac Mav machine that I am running FMS and a web server as you described but I really like this idea, with FX you only need to have XML enabled on FMS. >> >> "host the website on a separate machine and just point your web app to the WPE on your FMS 13 machine" >> >> Thanks >> _______________________________________________ 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/20140630/8fb39ec0/attachment.html From rfox at innerfile.com Mon Jun 30 14:55:19 2014 From: rfox at innerfile.com (Robert Fox) Date: Mon Jun 30 14:53:15 2014 Subject: [FX.php List] FX using PHP 5.5? Message-ID: Is it possible to use FX.php with PHP 5.5? I just tried doing that today, and received the error: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead" Sure enough, it's deprecated in PHP 5.5, and the DigitalOcean droplet I just fired up is using PHP 5.5.14. I'm willing to contribute to refactoring if somebody else hasn't already figured out a workaround for this! Thanks, Rob From dale.bengston at gmail.com Mon Jun 30 17:24:15 2014 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Jun 30 17:22:11 2014 Subject: [FX.php List] FX using PHP 5.5? In-Reply-To: References: Message-ID: <7D0AD0F4-C402-4917-B549-1FDAD2BC8D16@gmail.com> Hi Rob, What version of FX.php are you using? Dale On Jun 30, 2014, at 3:55 PM, Robert Fox wrote: > Is it possible to use FX.php with PHP 5.5? I just tried doing that today, and received the error: > "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead" > > Sure enough, it's deprecated in PHP 5.5, and the DigitalOcean droplet I just fired up is using PHP 5.5.14. I'm willing to contribute to refactoring if somebody else hasn't already figured out a workaround for this! > > Thanks, > Rob_______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list