• Hi there,

    Thanks for the great plugin! It actually works fine. Still a question.
    I trying to migrate to PHP 8.0. I get a warning:

    Warning: The magic method Preloader_Plus\Preloader_Plus::__wakeup() must have public visibility in /home/hogehoge/XXXXX.com/public_html/wp-content/plugins/preloader-plus/inc/preloader-plus.php on line 94
    
    Warning: The magic method Preloader_Plus_Pro\Preloader_Plus_Pro::__wakeup() must have public visibility in /home/hogehoge/XXXXX.com/public_html/wp-content/plugins/preloader-plus/preloader-plus-pro/inc/preloader-plus-pro.php on line 59

    Thank you,
    mt

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same here, unfortunately.
    I got rid of the second warning by changing a few private_functions to public_funtions in the files, but line 94 remains and I can’t figure out where it comes from without any private functions.

    EDIT: If all else fails, it seems the error isn’t critical when using the Free version, so killing the error with “@” will do.

    /inc/preloader-plus.php
    $preloader_plus_plugin = new Preloader_Plus_Plugin();
    to
    $preloader_plus_plugin =@ new Preloader_Plus_Plugin();

    • This reply was modified 2 years, 1 month ago by magnuskallas.

    Thanks for analysis and fixing tip @magnuskallas!

    Waiting the author for updating its code in a new release ??

    Cheers

    Can someone explain how to access the /inc/preloader-plus.php to add the “@”?

    I’m new to this ??

    Thank you!

    @virginiamatthey

    1. In your admin menu go to: Plugins>Plugin File Editor
    2. On the right of the page you will see a dropdown menu “Select Plugin To Edit”. Make sure you select “Preloader Plus”.
    3. Once selected you will see all the plugin files. The main file is the one to edit (preloader-plus.php).
    4. Scroll down to line 94, change it from this:
    $preloader_plus_plugin = new Preloader_Plus_Plugin();

    to this:

    $preloader_plus_plugin =@ new Preloader_Plus_Plugin();

    PS: editing plugin files directly is not something that is normally reccomended as it can break them and also any edits will be overwritten when the plugin is updated. If you mess anything up with the plugin, uninstall it, then reinstall and it will overwrite your changes to the code.

    @pichichi You’re amazing, thank you so much for your help! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.0 Warning: __wakeup() must have public visibility’ is closed to new replies.