Skip to content

404 error with latest Wordpress and H5P: "Unable to save result data" #9

@Sire

Description

@Sire

Wordpress v4.8.2
H5P v1.9.4

I'm using wp-h5p-xapi logging towards wp-xapi-lrs (which I see you also built).
Settings are correct, I've verified by surfing to the endpoint with correct user/pw.

Any activity causes the following alert box:

Unable to save result data.
WP_H4P_XAPI_STATEMENT_URL=http://site.com/wp-content/plugins/wp-h5p-xapi/process-xapi-statement.php
WP_H5P_XAPI_CONTEXTACTIVITY=null

Diving into wp-h5p-xapi.js, the ajax post to process-xapi-statement.php fails with the following response:

code: 404
message: "<!DOCTYPE html>.... almost entire html"
textStatus: "success"

So the 404 indicates a nonexisting page, but surfing to process-xapi-statement.php works fine.
Also textStatus success seems strange.

Any ideas? I know the plugins haven't been updated in a while, so it's likely a problem with newer versions of Wordpress or H5P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions