• Hi Guys,

    I presume you already know. The plugin doesn’t work anymore with the new WordPress version… I had to deactivate it because it gave a critical error.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter JoskeVermeulen

    (@joskevermeulen)

    This is the code: `Error Details
    =============
    An error of type E_ERROR was caused in line 152 of the file /var/www/clients/client2/web2/web/wp-content/plugins/pdf-light-viewer/vendor/webdevstudios/cmb2/init.php. Error message: Uncaught Error: Call to undefined function cmb2_bootstrap() in /var/www/clients/client2/web2/web/wp-content/plugins/pdf-light-viewer/vendor/webdevstudios/cmb2/init.php:152
    Stack trace:
    #0 /var/www/clients/client2/web2/web/wp-includes/class-wp-hook.php(307): CMB2_Bootstrap_221->include_cmb()
    #1 /var/www/clients/client2/web2/web/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 /var/www/clients/client2/web2/web/wp-includes/plugin.php(476): WP_Hook->do_action()
    #3 /var/www/clients/client2/web2/web/wp-settings.php(598): do_action()
    #4 /var/www/clients/client2/web2/web/wp-config.php(89): require_once(‘/var/www/client…’)
    #5 /var/www/clients/client2/web2/web/wp-load.php(50): require_once(‘/var/www/client…’)
    #6 /var/www/clients/client2/web2/web/wp-admin/admin.php(34): require_once(‘/var/www/client…’)
    #7 /var/www/clients/client2/web2/web/wp-admin/index.php(10): require_once(‘/var/www/client…’)
    #8 {main}
    thrown`

    I had the same error this morning and I deactivated the plugin and re-activated it and it works fine now. I’m not sure what the cause was, but since the plugin has not been updated in 11 months, it might be time to look for an alternative.

    At least it is working for now. Hopefully, this will help you, too.

    Thread Starter JoskeVermeulen

    (@joskevermeulen)

    Thanks, I tried it, but it doesn’t work, unfortunately.

    Yeah, I just tried it on another site that had this issue and it did not work there either. I’m not sure why it worked on one and not the other.

    There seems to be a conflict with this plugin and the latest version of UpdraftPlus backup. I looked to see what plugins updated overnight and UpdraftPlus and Yoast SEO both auto-updated. When I switch off UpdraftPlus and click resume on PDF Viewer, it works. If I turn UpdraftPlus back on, it breaks again. No problems with the Yoast SEO plugin.

    Thread Starter JoskeVermeulen

    (@joskevermeulen)

    That works indeed! For the time being it is a solution. Thanks!

    You’re welcome. As you said it is a temporary fix. I am also bringing this to the attention of the Updraft Team, so maybe there is a more permanent fix.

    Reply from Updraft:

    Hi,
    
    The plugin you mention has a bug on this line:
    
    https://plugins.trac.wordpress.org/browser/pdf-light-viewer/trunk/vendor/webdevstudios/cmb2/init.php#L151
    
    That line says “load the file bootstrap.php“.
    
    UpdraftPlus now includes a file with that name, and that gets loaded. The line ought to specify that it wants “the file bootstrap.php that’s in this plugin”. By failing to be specific, it loads the wrong file. You will need to ask the authors of that plugin to correct it so that it specifies the exact file it wanted loaded.

    Temporary fix:

    In file:

    /wp-content/plugins/pdf-light-viewer/vendor/webdevstudios/cmb2/init.php

    On (or about) line 151

    Change this:

    require_once '/bootstrap.php';

    To this:

    require_once __DIR__ . '/bootstrap.php';

    This change will be overwritten if pdf-light-viewer ever updates.

    Perfect. That worked. Hopefully if/when the plugin gets updated this will be fixed in that new version and we won’t have to go through this again.

    Thanks for the help!

    Thread Starter JoskeVermeulen

    (@joskevermeulen)

    Super, works perfect! Thanks raywjohnson!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Critical Error’ is closed to new replies.