Communication Error 22 The Requested Url Returned Error 401
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Filemaker with PHP up vote 2 down vote favorite Im using Filemaker API in PHP to retrieve the records from Filemaker Pro 11 Advance Database. But its showing error: Error: Communication Error: (22) The requested URL returned error: 404 - This can be due to an invalid username or password, or if the FMPHP privilege is not enabled for that user. Though I have set all Extend Privileges and gave it to user. Please anyone can help me... php filemaker share|improve this question edited Jun 16 '11 at 8:25 Soner Gönül 69.5k22110200 asked Jun 16 '11 at 8:21 Prasad007 3526 We can not look at your computer, so you would have to give use more details. –Ikke Jun 16 '11 at 8:34 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote Although you mention you've taken care of this, whenever I've come across this problem it's been because the user being used to log in with PHP doesn't have the fmphp extended privilege set. First know which user you're trying to log in as in PHP. Then, in FileMaker choose File>Manage>Security from the menu bar. Take a look at the Accounts tab and note the privilege set assigned to your web user. Click the Privilege Sets tab and double-click on this privilege set in the list. In the Extended Privilege list on the bottom right make sure there is a checkbox next to "Access via PHP Web Publishing". While you're there, double-check the password you're working w
Support Search GitHub This repository Watch 16 Star 33 Fork 4 GoyaPtyLtd/RESTfm Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags dev master Nothing to show v4.0.7 v4.0.6 v4.0.5 v4.0.4 v4.0.3 v4.0.2 v4.0.1 v4.0.0 v3.4.0 Nothing to show Find file Copy path RESTfm/lib/RESTfm/BackendFileMaker/FileMakerResponseException.php Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 76 lines (67 sloc) 2.73 KB http://stackoverflow.com/questions/6368990/filemaker-with-php Licensed under The MIT License. For full copyright and license information, * please see the LICENSE file distributed with this package. * Redistributions of files must retain the above copyright notice. * * @link * http://restfm.com * * @author * Gavin Stewart */ /** * FileMakerResponseException class. */ class FileMakerResponseException extends RESTfmResponseException { /** * Override superclass constructor. * * @param FileMaker_Error $fileMakerError * https://github.com/GoyaPtyLtd/RESTfm/blob/master/lib/RESTfm/BackendFileMaker/FileMakerResponseException.php The error object as returned from the failed FileMaker command. */ function __construct(FileMaker_Error $fileMakerError) { require_once 'FileMaker.php' ; $code = 500; // Default status code. Overridden below. $reason = ''; $fmCode = $fileMakerError->getCode(); $fmMessage = $fileMakerError->getMessage(); if ($fmCode == 101 || $fmCode == 104 || $fmCode == 105) { // 101: Record is missing // 104: Script is missing // 105: Layout is missing $code = RESTfmResponseException::NOTFOUND; } elseif ($fmCode == 22 && stripos($fmMessage, 'password') !== FALSE) { // FileMaker Server 11 authorisation required response. // "Communication Error: (22) The requested URL returned error: // 401 - This can be due to an invalid username or password, // or if the FMPHP privilege is not enabled for that user." $code = RESTfmResponseException::UNAUTHORIZED; } elseif ($fmCode == 18 && stripos($fmMessage, 'account') !== FALSE) { // FileMaker Server 12 authorisation required response. // "Client must provide account information to proceed" $code = RESTfmResponseException::UNAUTHORIZED; } elseif ($fmCode == 9 && stripos($fmMessage, 'privileges') !== FALSE) { // FileMaker Server 12 - Sometimes occurs when user account is // correct, but with incorrect password. Does _not_ occur when // trying to write record with read only acce
contact us about this channel Embed this content in your HTML Search confirm cancel Report adult content: click to rate: Account: (login) More Channels Showcase RSS Channel Showcase 8897489 RSS http://filemaker152.rssing.com/chan-17288577/all_p27.html Channel Showcase 7520463 RSS Channel Showcase 3982640 RSS Channel Showcase 3674111 Channel Catalog Subsection Catalog Articles on this Page (showing articles 521 to 540 of 1868) 04/23/14--18:37: _FMS 13v1a breaks FM... 04/03/14--07:40: _Client authenticati... 04/26/14--17:46: _Session Expired - e... 04/26/14--06:53: _For Testing Purpose... 04/27/14--07:22: _running a PHP scrip... 11/03/13--01:45: _Java update 17 for ... 04/28/14--13:55: _Webdirect: display ... 04/28/14--21:37: _Deployment Assistan... 04/22/14--22:56: _Getting error-No sc... communication error 01/16/14--19:10: _FMPS13: Lost all Ac... 08/12/12--06:56: _Admin console keeps... 04/28/14--11:11: _FileMaker Admin Con... 02/19/14--15:12: _502 Bad Gateway err... 04/29/14--14:57: _Where does FMS13 pu... 04/30/14--11:27: _Unable to launch Fi... 04/24/14--10:23: _Communication Error... 04/03/14--07:40: _Client authenticati... 04/30/14--07:52: _Do you need FileMak... 05/01/14--08:51: _Cannot upload to Se... 12/10/13--05:11: _IIS Application Req... (showing articles 521 to 540 of 1868) Browse the Latest Snapshot Browsing All Articles (1868 Articles) Live Browser communication error 22 older | 1 | .... | 24 | 25 | 26 | (Page 27) | 28 | 29 | 30 | .... | 94 | newer 0 0 04/23/14--18:37: FMS 13v1a breaks FMS when "Require Secure Connections" is check marked (5 Comments) Contact us about this article Forum post by JohnDCCIU I've been running FMS 13v1 successfully for awhile on OS X 10.9, with "Require Secure Connections" checkmarked in the Database Server section and a commercial SSL cert from GoDaddy installed with fmsadmin. I applied the first "emergency fix" that FMI put out, which involved copying files to certain places on the server. That also worked fine. I saw that they released a real updater and applied that tonight....and that seems to have broken something. Now if "Require Secure Connections" is checkmarked, hosted databases do not appear in the FM client (even a client running on the same machine as the server). The server shows up under "Local Hosts", but no databases appear. All databases show as opened and Normal on the server, and if I uncheck"Require Secure Connections" and restart the server, all the databases appear just fine. Note that I'm not talking