Wordpress libraries update

timothyvail's picture

I haven't updated my library since September and when I hit
update on the wordpress H5P Content Type Cache, it gives me this error:
cURL error 28: Connection timed out after 10000 milliseconds
Couldn't communicate with the H5P Hub. Please try again later.

Do I update manually?  If so, where can I get the file?

BV52's picture

Hi timothyvail,

Have you tried uploading a sample content from H5P.org? If not can you tried uploading this to WP, I've been using this to update my local libraries if there are new updates.

-BV52 

timothyvail's picture

Hi BV52,

I actually accidently figured that out just before you posted, but now I know for sure!  Thank you so much and Happy New Year!

BV52's picture

Good to hear that you found a solution.

Happy New Year to you Timothy :-)

Hi

I have this error too.

If it's possible give me the link that we are supposed to connect to it for installing a new content type.

Thanks

 

BV52's picture

Hi salamzaban,

Have you tried the steps above? Also a visit to this page can help with the issue you are having.

-BV52

As I recive "Couldn't communicate with the H5P Hub. Please try again later." I assumed maybe your server has set some restricts.

BV52's picture

Hi salamzaban,

There are such restrictions specially for updating content types. The error you are getting means that in the process of upgrading the connection times out. There is a similar case where adjusting the timeout limit for your server should fix the issue.

-BV52 

Thanks for your attention and answer. My host says They do not have restriction and maybe the host of H5p baned our IP our country.

icc's picture

What platform are you on? Are you using Drupal, WordPress or Moodle – and which version of the H5P plugin?

It seems the problem is in the error message. The timeout is only 10 seconds which may not be enough for your internet connection to download the needed files/data. You should check your php.ini file and makes sure that option called default_socket_timeout is at least 30+ seconds.

Thanks for your attention and answer.

I am using the H5p Version 1.10.1 on Wordpress.

I went to the php.ini and increased all the numbers but when I want to upload a 16 MB H5p file that I get from

https://h5p.org/presentation#example=57130

on It I recive

Could not get posted H5P.

And whe I want to install a new quiz I recive this error.

cURL error 28: Connection timed out after 10001 milliseconds

If in future I can update the parts of the plugin and its quizes with just uploading a sample from here then I do not work on this problem more.

 

Now my php.ini include this text:

Normal 0 false false false EN-US X-NONE AR-SA /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

Normal 0 false false false EN-US X-NONE AR-SA /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

allow_url_fopen = Off

allow_url_include = Off

asp_tags = Off

display_errors = Off

enable_dl = Off

file_uploads = On

max_execution_time = 30

max_input_time = 60

max_input_vars = 9000

memory_limit = 128M

post_max_size = 20M

session.gc_maxlifetime = 1440

session.save_path = "/var/cpanel/php/sessions/ea-php56"

upload_max_filesize = 20M

zlib.output_compression = Off

 

P.S:

When I try to upload the file of this example

https://h5p.org/presentation#example=57130

on 

https://h5p.org/node/add/h5p-content

I get the same error.

 

Could not get posted H5P.

 

 

thomasmars's picture

Hi, the settings you have listed looks fine, however some of the defaults of your server may be off. You could try to increase default_socket_timeout, like ICC suggested.

Unfortunately your error message does not give any particular insight into exactly what is going wrong, so I suggest you go through our configure php guide again and make sure you have everything properly configured as listed there. Then go through debug list for WordPress to debug cURL messages like this: https://www.samuelaguilera.com/post/curl-error-28-wordpress. Pay particular notice to the "Things to check in the server" section. And finally, in case this is an issue with how the address is being resolved, check out the following guide: https://www.digitalocean.com/community/questions/how-do-i-switch-my-dns-resolvers-away-from-google, which has resolved similar problems.

Sorry I don't have any more concrete solution for you. Good luck.