Hi, the flash thing displays this error when trying to view GraphMind node, and no map displays.

Network error: cannot connect to site: http://stamp.webege.com/?q=services/amfphp
Details: wrong connection info (url) or missing AMFPHP library or wrong AMFPHP|Services version or wrong Services authentication method (only Session auth needs)

Msg: [FaultEvent fault=[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://stamp.webege.com/?q=services/amfphp'"] messageId="6455F0D3-5B21-1B72-FCE5-47454858A07B" type="fault" bubbles=false cancelable=true eventPhase=2]

Any ideas how this is fixed please?

Comments

jivmuk’s picture

I have the same issue, could it be due to the CleanURL being active....as clean url does not have "?q=" string...help appreciated. THanks!

tommeir’s picture

Status: Active » Needs review

I Have just encountered the same problem. I suspected CleanURL to be the source to that problem (good call jivmuk) and were able to fix it in node-graphmind.tpl.php by replacing the [?q=] string with [/]

Like this:
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$base_path.'/services/amfphp');

B747’s picture

Unfortunately I don't have CleanURLs turned on! (My webhost doesn't support it!) So I wonder what the solution is for me?

ademskiadov’s picture

I'm having the same trouble. I took the suggestion above but am getting the message:

Node cannot loaded: 153
Details: node is not exists or needs permission

Connection: Site connection:
- Url: http://localhost/mintydrop/services/amfphp
- Sessid: 2r9rbsjv7nnqabsebd3t54ibp2
- Username: admin

Msg: [FaultEvent fault=[RPC Fault faultString="Access denied" faultCode="AMFPHP_RUNTIME_ERROR" faultDetail="D:\wamp\www\mintydrop\modules\amfphp\amfphp.module on line 106"] messageId="BC777136-2605-0BBC-DD6F-8FD6EA7A11F4" type="fault" bubbles=false cancelable=true eventPhase=2]

I don't have a folder corresponding to localhost/mintydrop/services/amfphp

Should I have? I really want this to work, had to restore a preexisting (pre-category module installation) drupal backup to make room for Graphmind :-/

Btw, it may worth noting that I do not have a field for "access services" in my configure permssions, nor any corresponding Service submodule The how-to video seemed to reckon this was pretty important.

PS. Clean urls is enabled.

jivmuk’s picture

Inspite of correcting per #2 it still doesn't work for me either and get the same message as in #4, and even I don't have the 'access service' line in the permissions...wonder if we have match the service version and amfphp version.

itarato’s picture

Hi,

The old fashion query-like urls are always working. It shouldn't be a problem.
I really suggest to read this thread: #564278: First graphmind item not appears.
One problem can be the Services module, I tried the new development version and it's not compatible with Graphmind. We can say it's also under development. I would say it's better to use the stable version of Servies: http://ftp.drupal.org/files/projects/services-6.x-0.15.tar.gz
Make sure, you have the AMFPHP 3rd party library copied into the AMFPHP module's folder. Other culprit used to be the authentication: Services offers 2: API key and SessionID authentication. Graphmind needs ONLY SessionID!

Please let me know if you have still problems.

One last thing: if a user (role) has no rights to handle the Graphmind filter, it can't see any mindmap. Allowing the Graphmind filter to a user role: /admin/settings/filters/ -> and select Graphmind filter -> there you are.

Regards,
Peter

mikaskay’s picture

Priority: Normal » Critical

This network error appears over and over (see http://drupal.org/node/564278). The problem is, it is SO EASY to fix!

GRAPHMIND WARNING
Network error: cannot connect to site: http://example.com/?q=services/amfphp
Details: wrong connection info (url) or missing AMFPHP library or wrong AMFPHP|Services version or wrong Services authentication method (only Session auth needs)
Msg: [FaultEvent fault=[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://comuno.org/?q=services/amfphp'"] messageId="4BEE0790-8BB8-74A0-6D7D-340838CF522C" type="fault" bubbles=false cancelable=true eventPhase=2]

AS EXPLAINED IN #2:
You have to manually change the file node-graphmind.tpl.php in the graphmind folder. Change
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$base_path.'?q=services/amfphp');
To
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$base_path.'services/amfphp');
in 2 places around line 25 and 35.

BACKGROUND
The Network error appeared after I moved the Clean URL-enabled test site from my Windows PC to my production site on Linux Virtual Server. I also suspected the problem around Clean URL so I disabled it on the production site and voila, graphmind worked. I checked the node-graphmind.tpl.php and voila, ?q=services/amfphp was the culprit. It has nothing to do with Services or which version or which combination or which combination of combinations. If Clean URL is enabled, it should be echo urlencode('http://'.$_SERVER['SERVER_NAME'].$base_path.'services/amfphp').

AntiNSA’s picture

I am using Services Stable 1. I have no Session ID option?

No authentication modules have been installed

Any Idea where to get this?

pixelsweatshop’s picture

Also getting this. Tried solution in #7 and it still doesn't work.

AntiNSA’s picture

I actually had to install an older services version which had the option
"Services offers 2: API key and SessionID authentication. Graphmind needs ONLY SessionID!"

Thats the problem I need an update on this...

pixelsweatshop’s picture

AntiNSA: What Version of Services did you have to use to get the option?

pixelsweatshop’s picture

I have got it working now. It seems that Graphmind hasn't identified all of it's dependencies. Enabled all of the extra modules with services and it worked.

pixelsweatshop’s picture

Forget #12. I cannot replicate the fix on another site. Still having the same issue.

guysaban’s picture

As per http://drupal.org/node/678974#comment-2495356

This thread (http://drupal.org/node/469748) can help.

On the modules page -> enable the key authentication module (which not automatically enabled)
On the Services Module Settings page -> select key authentication from the dropdown

Make sure the the "Use sessid" checkbox is checked.

pimok3000’s picture

Hi ,
have now tested all the aspects here and in the other thread with services
http://ftp.drupal.org/files/projects/services-6.x-3.0-unstable2.tar.gz
http://ftp.drupal.org/files/projects/services-6.x-2.2.tar.gz
http://ftp.drupal.org/files/projects/services-6.x-0.15.tar.gz
but still get this error message:

Network error: cannot connect to site: http://www.mydomain.com/?q=services/amfphp
Details: wrong connection info (url) or missing AMFPHP library or wrong AMFPHP|Services version or wrong Services authentication method (only Session auth needs)

Msg: [FaultEvent fault=[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://www.mydomain.com/?q=services/amfphp'"] messageId="93F905B1-C04D-9A5E-A443-AA951FDAB16F" type="fault" bubbles=false cancelable=true eventPhase=2]

lmoccozet’s picture

I did get the same problem. I just managed to solve it by changing the "PHP error threshold" in the services settings for AMFPHP: I changed it from the default value to E_ERROR and it works.

I am using:
- Services 6.x-2.1
- AMFPHP 6.x-1.0-beta2 with amfphp-1.9.beta.20080120

Laurent

wickwood’s picture

I just download the latest dev version of this module, 6.x-1.x-dev (2010-Jul-29), latest stable version of Services module, 6.x-2.2, and the latest version of AMFPHP, http://sourceforge.net/projects/amfphp/files/amfphp/amfphp%201.9.zip/download, and after setting everything up I also got the same error everyone is talking about here.

I was able to fix this problem by not only removing the "?q=services/amfphp" as described in (#2) and (#7), but also by adding the port number of my local development server which is a MAMP.

MAMP operates on port 8888.

However, I did not find the code with "?q=services/amfphp" in the node-graphmind.tpl.php file as described in (#2) and (#7),
but I did find it graphmind_service.module line 263:
$flashvars['basePath'] = 'http://' . $_SERVER['SERVER_NAME'] . $base_path . '?q=services/amfphp';

I changed this to:
$flashvars['basePath'] = 'http://' . $_SERVER['SERVER_NAME'] . ':8888'. $base_path . 'services/amfphp';
and this worked!!!!

I tried using
$flashvars['basePath'] = 'http://' . $_SERVER['SERVER_NAME'] . ':'.$_SERVER['SERVER_PORT'] . $base_path . '?q=services/amfphp';
and
$flashvars['basePath'] = 'http://' . $_SERVER['SERVER_NAME'] . ':'.$_SERVER['SERVER_PORT'] . $base_path . 'services/amfphp';
and neither of these worked because, for some reason unknown to me, the $_SERVER['SERVER_PORT'] being called was port 80.

I also tried using the code
$flashvars['basePath'] = 'http://' . $_SERVER['SERVER_NAME'] . ':8888'. $base_path . '?q=services/amfphp';
and this also did not work. So I conclued that thehard coded '?q=services/amfphp' definitely needs to be removed.

I'm not sure how to set this dynamically in the code, but perhaps I have helped move the ball forward for someone more knowledgeable than me to fix this so that the module works regardless of the environment being used. For the time being, I'll keep track of this with code with Git.

Steve

itarato’s picture

Thanks a lot guys for the help. The port problem was a real issue indeed. The code is fixed now and committed. Please try and let me know if you have any problems. Also if it's not fixed with the latest version check the troubleshoot: http://drupalcode.org/viewvc/drupal/contributions/modules/graphmind/READ...

cbrayton’s picture

Yes, rewriting source code rather than engineering the latest module for backwards compatibility, that's the Drupal way.

cbrayton’s picture

Issue tags: +configuration, +filters, +amfphp, +services, +graphmind, +server error

Should th option to use CCK User Permissions be checked? I got it working on on instance without this option, but cannot replicate this success on a separate instance, even sticking to the recommended Services and Mindgraph modules.

itarato’s picture

Status: Needs review » Closed (fixed)