• Hello everyone,

    I have been using H5P plugin on my wordpress without any problem one month ago. I tried again recently and when I try to add new content and click “Create” I just have a message “Loading, please wait” and it comes back to the previous page without creating the content.
    If I remember well, there used to be a button “preview” to click before the button “create”, this button is not here anymore, I only have the button “create”.
    Also, I try to modify and update previous contents and it’s working well.

    My wordpress and H5p is updated so it should not be the cause of the problem.

    Sorry if my explanations are not clear, don’t hesitate to ask me any precisions.

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author icc0rz

    (@icc0rz)

    Hi,

    Please check your browser console (Ctrl+Shift+J in Chrome) for any error messages. Also, have a look at your web server’s error log.
    Typically, it’s either a conflict with another plugin or a problem with the hosting setup.

    Thread Starter nicolasmnl

    (@nicolasmnl)

    Hi icc0rz,

    Here is the error message I have in the browser console: “jquery.js?ver=1.15.0:2 Allow attribute will take precedence over ‘allowfullscreen’.” I don’t know if it is of any help.
    I can’t find anything in the web server’s error log unfornately.
    I tried to use a different browser, to open a private session and I tried to deactive other plugins on wordpress without any success.

    Thank you.

    Plugin Author icc0rz

    (@icc0rz)

    I do not believe that error message is related.
    Did you have the console open while reloading the page that doesn’t work?

    You could try “reinstalling” the plugin manually by downloading the plugin zip file, deleting the existing wp-content/plugin/h5p and then extract the downloaded plugin again.

    Thread Starter nicolasmnl

    (@nicolasmnl)

    Hi icc0rz,

    Yes the console was opened when the page was loading.

    If I proceed to reinstalling the plugin manually, will I lose the contents I already created?

    Thank you

    • This reply was modified 6 years, 6 months ago by nicolasmnl.
    Plugin Author icc0rz

    (@icc0rz)

    No content should be lost if you only delete the wp-content/plugin/h5p folder and unzip the new one.
    However, if you use the plugin page to uninstall, the content will be gone.

    Thread Starter nicolasmnl

    (@nicolasmnl)

    Hello icc0rz,

    I tried what you said (to re-install manually the plugin). But the problem is still here. Here is a video to show what is the actual issue: https://youtu.be/X3aQ8g6IsNI
    Would you have any other idea on how I could solve this issue?

    Thank you!

    Plugin Author icc0rz

    (@icc0rz)

    It is having trouble validating the submit request. I’m pretty sure this is a conflict with another plugin you’ve installed that is trying to do something with the H5P form or the submitted data.
    You could try to debug this by adding a line to admin/class-h5p-content-admin.php#L328 to see if the code runs at all:
    print 'this code is running'; exit;

    If a text doesn’t display after adding this on the next time you try to create, then there is another plugin misbehaving and breaking it.

    Thread Starter nicolasmnl

    (@nicolasmnl)

    Hello icc0rz,

    I added the line in the file as you told me and when I go to the “add new content” page, I got the message “this code is running”.
    As for a conflict with another plugin, I already tried to deactivate them all without success, I also didn’t added new plugins since the “bug” appeared and I also only have very few plugins. Apart from H5P, the only activated plugin is WPForms Lite.

    Thank you.

    • This reply was modified 6 years, 6 months ago by nicolasmnl.
    Plugin Author icc0rz

    (@icc0rz)

    Ok, that is good.
    Where does the Ad at the top come from, are you using a special theme?

    I’m starting to wonder if there is actually an error message there, it’s just covered up or hidden.
    Right before pressing the Create button try adding an exit; after this line: admin/class-h5p-plugin-admin.php#L357, that should print any error you get while you saving and then exit straight away. If it’s just a blank page, try right-clicking and inspecting to see if there is anything.

    Thread Starter nicolasmnl

    (@nicolasmnl)

    Hello icc0rz,

    Sorry for the late answer. The ad at the top come from the fact that I’m using a free hosting service (000webhost), it’s an ad to upgrade the service to a paid one.

    After adding the exit; I just got blank pages on any page of the plugin (“add new”, “all h5p content”, “librairies”…).

    Thank you

    Plugin Author icc0rz

    (@icc0rz)

    Did you add it right before pressing the Create button?

    It sounds like there may be some incompatibility with your hosting provider that is causing these issues.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Problem to create new content’ is closed to new replies.