unable to load libraries in WP

i have an error message when i want to edit content.
"Error.Unable to load library"
And after upload i see the view, but when i want to edit...i have this message.
Another thing after uploading, nothing appear when i go to " all H5P..
Thanks for your help

falcon's picture

Ok, so you're able to upload H5P content from H5P.org, but you're not able to edit it and not able to create new with the editor? Have you ever been able to create or edit content? What do you mean by " all H5P... ?

yes i'm able to upload, and as you said i can't edit or create new in editor.
I never been able to create.
When i said "all HP..." i mean the first menu of H5P in wordpress.
When i upload files and after if i want to see the total list, nothing appear.

Thanks for your help

falcon's picture

I see. Could you try to edit content again with the developer console open and copy and paste here any error messages you get? Developer console is opened by pressing F12 or controll + shift + j (command + Option + J on mac)

 Message from Chrome console :
GET http://www.labeliz.com/wp-admin/admin-ajax.php?action=h5p_contents&offse... 500 (Internal Server Error)

It seems that there is a probleme with admin-ajax.php.
Maybe something from my server config.
I don't know. If you have any answer, i'll be very thanksfull.

falcon's picture

Ok, you'll have to see what fails there in your php error log. The php error messages are stored differently depending on your setup and you might even use a server that doesn't store php errors so I can't point you to where the error log is found, but if you can send us details about the error we might be able to help.

[Fri Sep 18 09:18:03 2015] [warn] [client] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/labeliz.com/httpdocs/wp-admin/includes/ajax-actions.php on line 1765, referer: http://www.labeliz.com/wp-admin/index.php

falcon's picture

Both the editor and the content list in H5P uses ajax so it is probably something going wrong with your ajax requests. We can see how H5P should be messing this up, but we can't exclude it either. Which WP version are you using? There were some fixes that might fix this released for wordpress recently.

Thanks a lot.
I'm using WordPress 4.3.1

 I found issue :
increase memory_limit in php.ini to 256M.
Everything is loaded now and i can edit all H5P contents.
Thanks for your Help and thanks for your incredible plugin !!!!

falcon's picture


Hi i have the same problem but I'm on godaddy shared server and dont have access to the php memory limits..what can i do? does this mean that h5p doesn't work on godaddy?

icc's picture

I'm not familiar with all the web hosting services GoDaddy provide, but I did some googling. From what I can understand, you should be able to set the memory_limit = 128M using the php5.ini file in your website root or if you have the new cPanel; user.ini.

The hosting provider should have information easily available on how you can change basic PHP settings like this, if not I would consider contacting support or changing to another provider.