Okay
  Public Ticket #3135332
pdf not loading
Closed

Comments

  •  12
    MeesterGijs started the conversation

    Hello,

    I know we have discussed this before. But have a look here, see the dynamics.

    You told me it had to do with caching, but I have no caching enabled. So it's browser caching perhaps? Anyway, my students will probably have this experience as well. And they don't know that they can click the titel/course item in navigation to reload the PDF.

    Could you have another look and see what causes this? Just so we're sure and can perhaps fix this. It should load immediately, right? Regardless...

    Thanks,

    Gijs

  • [deleted] replied

    ok please check if there is some error message appearing in browser console? : 

    https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/

    please share the console error to us .

  •  12
    MeesterGijs replied

    This is what I could find (three errors):

    Uncaught Error: Syntax error, unrecognized expression: #component=course&action=course&id=6148
        at se.error (jquery.min.js?ver=3.6.0:2:13639)
        at se.tokenize (jquery.min.js?ver=3.6.0:2:21650)
        at se.select (jquery.min.js?ver=3.6.0:2:22477)
        at Function.se (jquery.min.js?ver=3.6.0:2:7116)
        at s.find (jquery-migrate.min.js?ver=3.3.2:2:2230)
        at S.fn.init.find (jquery.min.js?ver=3.6.0:2:25047)
        at S.fn.init (jquery.min.js?ver=3.6.0:2:25536)
        at new s.fn.init (jquery-migrate.min.js?ver=3.3.2:2:1827)
        at S (jquery.min.js?ver=3.6.0:2:1051)
        at HTMLDocument.hashNavigation (vc-accordion.min.js:10:10236)
    jquery.min.js?ver=3.6.0:2 Uncaught TypeError: Cannot read properties of undefined (reading 'currentTheme')
        at window.vc_rowBehaviour.window.vc_rowBehaviour (js_composer_front.min.js:10:9014)
        at window.vc_js.window.vc_js (js_composer_front.min.js:10:659)
        at HTMLDocument.<anonymous> (js_composer_front.min.js:10:20071)
        at e (jquery.min.js?ver=3.6.0:2:30038)
        at t (jquery.min.js?ver=3.6.0:2:30340)
    jquery.min.js?ver=3.6.0:2 Uncaught ReferenceError: pdfjsLib is not defined
        at all-pdfemb-premium-5.0.2.min.js:1:41363
        at PDFEMB_NS.pdfembGetPDF (all-pdfemb-premium-5.0.2.min.js:1:39226)
        at HTMLAnchorElement.<anonymous> (all-pdfemb-premium-5.0.2.min.js:1:41325)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at t.fn.pdfEmbedder (all-pdfemb-premium-5.0.2.min.js:1:40741)
        at HTMLDocument.<anonymous> (all-pdfemb-premium-5.0.2.min.js:1:42181)
        at e (jquery.min.js?ver=3.6.0:2:30038)
        at t (jquery.min.js?ver=3.6.0:2:30340)


    And these five warnings:

    WARNING: cdn.mathjax.org has been retired. Check https://www.mathjax.org/cdn-shutting-down/ for migration tips.
    replaceScript @ cdn.mathjax.org/math…MS-MML_HTMLorMML:32
    jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'currentTheme') TypeError: Cannot read properties of undefined (reading 'currentTheme')
        at window.vc_rowBehaviour.window.vc_rowBehaviour (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js:10:9014)
        at window.vc_js.window.vc_js (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js:10:659)
        at HTMLDocument. (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js:10:20071)
        at e (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)
        at t (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: pdfjsLib is not defined ReferenceError: pdfjsLib is not defined
        at https://staging-meestergijs.kinsta.cloud/wp-content/plugins/PDFEmbedder-premium/js/all-pdfemb-premium-5.0.2.min.js:1:41363
        at PDFEMB_NS.pdfembGetPDF (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/PDFEmbedder-premium/js/all-pdfemb-premium-5.0.2.min.js:1:39226)
        at HTMLAnchorElement. (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/PDFEmbedder-premium/js/all-pdfemb-premium-5.0.2.min.js:1:41325)
        at Function.each (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481)
        at t.fn.pdfEmbedder (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/PDFEmbedder-premium/js/all-pdfemb-premium-5.0.2.min.js:1:40741)
        at HTMLDocument. (https://staging-meestergijs.kinsta.cloud/wp-content/plugins/PDFEmbedder-premium/js/all-pdfemb-premium-5.0.2.min.js:1:42181)
        at e (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)
        at t (https://staging-meestergijs.kinsta.cloud/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    DevTools failed to load source map: Could not parse content for https://staging-meestergijs.kinsta.cloud/wp-content/plugins/vibebp/assets/js/tus.min.js.map: Unexpected token '<', "
    DevTools failed to load source map: Could not parse content for https://staging-meestergijs.kinsta.cloud/wp-content/plugins/wplms_plugin/assets/css/tabulator.min.css.map: Unexpected token '<', "



  • [deleted] replied

    add this code in your wplms-customizer.php file in wplms customizer plugin : 

    add_action('wp_footer',function(){
    wp_enqueue_script( 'pdfemb_pv_core_js');
    },999999);

  •  12
    MeesterGijs replied

    Unfortunately, even after hard reset and deleting broswer cache, it didn't work. PDF still didn't load.

  • [deleted] replied

    Please share your site url and admin creds in private reply

  •   MeesterGijs replied privately
  • [deleted] replied

    still cannot access wp-admin with given creds : https://prnt.sc/Xm0wmxnWbuGX


  •   MeesterGijs replied privately
  •  12
    MeesterGijs replied

    It loads because you click on the unit in the navigation. Restart your own account in course admin, restart course and see if it loads. Because then you will see it doesn't.

    Sorry

  • [deleted] replied

    hi this is a custom plugin issue , it will take time to check how to make it work ,, we are actually making a third party code work with our modern framework here . 


  •  12
    MeesterGijs replied

    I've deactivated the plugin and now use the option that you guys give. Create multimedia unit and add PDF, that works. Just doesn't look modern, minimalistic. That's all. But it does what it should. Fine for now.

    Can you tell me a bit more? What will the third party code do with the modern framework?

    Gijs

  • [deleted] replied

    the pdf embedder premium plugin is based on jquery and does not work well with react , there is some issue of milliseconds which is causing pdf to not to load.

  •  12
    MeesterGijs replied

    Ok. I'll wait when it's fixed. Could you tell me then? So that I can use it again.

    closing

  • [deleted] replied

    this will take time since we are runnign out of resources and time and support is overloaded these days . 

    and this is a third party plugin we are supporting despite we have our own better pdf embeder inbuilt.

  •  12
    MeesterGijs replied

    Ah forget it then. I will be using your pdf embedder. Just don't like the look, but that secondary to actually functioning, right? ;)

    Thanks, Alex. Let's close