Jump to:
| Project: | AMFPHP |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Ok I've spent days on this now and cannot for the life of me work it out. I am following the tutorials found here: http://modern-carpentry.com/talk/?p=32
I've set up drupal (5.10) services (5.x-0.92) amfPHP (5.x-1.x-dev) with AMFPHP 1.9 beta 2 (http://www.5etdemi.com/uploads/amfphp-1.9.beta.20070513.zip)
I've set all permissions that seem to relate to services etc.
I have clean URLs enabled.
I am using the AS3 classes provided at http://thirdavedesign.com/drupalsite/
I have tried with and without API keys, sessid etc.
It seems to connect ok but cannot do anything else like getView or load node.
OUTPUT:
DrupalSite
Alpha 0.5 - release/Public
8.27.2008
DrupalSite by Third Ave Design. Licensed under GPLv3.
Attempting to connect to AMFPHP interface...
Warning: No API key specified.
connected = false
Flash is connected to AMFPHP interface.
connected = true
DrupalSite: error while attempting to invoke Drupal service
description: Invalid argument supplied for foreach()
line: 561
code: AMFPHP_RUNTIME_ERROR
details: C:\sites\xxxxxxxxx\modules\node\node.module
level: Unknown error type
[description] -> Invalid argument supplied for foreach()
Can anyone suggest anything I can try to get this working??? I have seen many people that claim to have this setup working nicely but it is just not happening for me.
Comments
#1
I am having the same challenge. I am not sure what is causing this. Have you tried contacting the guys at thirdavedesign?
Owen
#2
Same prob with nodeSave service.
Error report:
Flash is connected to AMFPHP interface.
connected = true
DrupalSite: error while attempting to invoke Drupal service
description: array_keys(): The first argument should be an array
line: 426
level: Unknown error type
details: /Applications/MAMP/htdocs/lab/sites/all/modules/nodefamily/nodefamily.module
code: AMFPHP_RUNTIME_ERROR
ArgumentError: Error #1063: Argument count mismatch on main/::thankYou(). Expected 0, got 2.
at drupal.com.thirdavedesign.drupalSite::DrupalSite/::onFault()
Any help greatly needed here.
#3
Is it a problem with the version of Drupal compatible with this DrupalSite class???
#4
Closing due to inactivity. Please post your solution if you ever found one.
Thanks,
Scott