Bad path in HEAD
Brandonian - October 11, 2008 - 17:51
| Project: | AMFPHP |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
I've been playing around with AMFPHP in Drupal 6, and found a bug in the hook_server function, in which the path to pull the AMFPHP files is relative instead of absolute, which caused the module to fail regularly.
Attached is a patch to change the path to an absolute path, no matter how the module is installed.
| Attachment | Size |
|---|---|
| amfphp.patch | 579 bytes |

#1
It looks like just adding './' before drupal_get_path is the usual way modules handle it.
#2
I added the change to my patch for HEAD in #219365: AMFPHP for DRUPAL 6 comment #30
#3
for basic users I found the line to edit in amfphp folder root, called amfphp.module, may save you 5 minutes