• Resolved boyann

    (@boyann)


    Hello guys!

    First of all, I wish to use this opportunity to thank you for all the great work you do with H5P and letting us to enjoy using it!
    As many H5P users, I find it very useful.

    Now, I would like to ask if someone have a solution for issue I’m dealing with for the couple of days now.

    I’ve been working on some content update and I need to combine some content, but I found that it can’t be done without library upgrade. Now, I’ve upgraded some where were aprox. 30-50 of content, but there’s content with more than a 150 and every upgrade stuck at some point showing me 403 at link such as: /wp-admin/admin-ajax.php?action=h5p_content_upgrade_progress&id=92 where I used the ”Interactive Book (1.3.1)” no. of content 31 and I need to upgrade it to v. 1.6.3). The same thing happens with the Course Presentation (1.22.11) /wp-admin/admin-ajax.php?action=h5p_content_upgrade_progress&id=81 when I try to upgrade to 1.24.1 version with only 31 content made in it.

    Does anyone has any idea what I need to do to make it perfect again? ??

    Kindly,
    Boyann

    • This topic was modified 2 years, 7 months ago by boyann.
    • This topic was modified 2 years, 7 months ago by boyann.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author icc0rz

    (@icc0rz)

    Hi boyann,

    Have you checked if there are any error messages in your php error_log file?
    Also, are there any error in your browser’s console (Ctrl+Shift+J in Chrome) ?

    Thread Starter boyann

    (@boyann)

    @icc0rz
    Hi!

    Thank you foryour a fast response and sorry for my delay.

    I’ve checked for the errors and there’s nothing showing me any connection with H5P, but I’m getting the Error message in the Chrome:

    POST https://website.com/wp-admin/admin-ajax.php?action=h5p_content_upgrade_progress&id=81 403 `jquery.js?ver=1.15.4:4 **

    send @ jquery.js?ver=1.15.4:4
    ajax @ jquery.js?ver=1.15.4:4
    b.<computed> @ jquery.js?ver=1.15.4:4
    ContentUpgrade.nextBatch @ h5p-content-upgrade.js?ver=1.15.4:163
    ContentUpgrade.workDone @ h5p-content-upgrade.js?ver=1.15.4:308
    done @ h5p-content-upgrade.js?ver=1.15.4:121
    self.workers.<computed>.onmessage @ h5p-content-upgrade.js?ver=1.15.4:147`

    ** for the `jquery.js?ver=1.15.4:4 -link is: */plugins/h5p/h5p-php-library/js/jquery.js?ver=1.15.4

    All plugins are disabled, the theme set to Twenty Twenty.

    Before this error message it shows one more:
    Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.
    I’m not sure if this one has something to do with the upgrade.

    • This reply was modified 2 years, 7 months ago by boyann.
    Plugin Author icc0rz

    (@icc0rz)

    I tried to reproduce this on my testing site without any luck.
    Did you try with a different browser?

    If you try opening the Network tab in the open console, and then locating the 403 request, could you check if it has any content or an error messages in it?

    The next step would be trying to determine if the request makes it to the plugin at all. This can be done by adding some simple debugging to the following line:
    https://github.com/h5p/h5p-wordpress-plugin/blob/master/admin/class-h5p-library-admin.php#L544
    print 'Hello'; exit;
    If this doesn’t print then it’s another plugin or the web server is refusing the request.

    Thread Starter boyann

    (@boyann)

    @icc0rz

    Thank you soo much for this steps!!!

    Please, except my apologies on this.
    Now, when I’ve gone through all these steps, I’ve asked, again, my hosting support to find the issue… And they did. It was on the server side, actually and has something with low Modsecurity rule.

    Tank you so much for your time, and for being quick on response!
    Cheers!

    Plugin Author icc0rz

    (@icc0rz)

    Ah, great to hear to you managed to figure it out!
    All the best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t upgrade some libraries’ is closed to new replies.