• Resolved beunoit

    (@beunoit)


    Hi !
    And thank you for this plugin.
    Since last update, I have this error notice on the front (with debug on true) when Offline mode is enable :
    Notice: Undefined index: preview_offline in /wp-content/plugins/super-simple-site-offline-beta/functions/rights.php on line 11
    Any idea ?
    Best regards,
    Benoit

Viewing 5 replies - 1 through 5 (of 5 total)
  • pimschaaf

    (@pimschaaf)

    Replace the following:

    if($_GET['preview_offline']==true){ return false; }

    with:

    if(isset($_GET['preview_offline']) && $_GET['preview_offline']==true){ return false; }

    on super-simple-site-offline-beta/functions/rights.php:11

    Thread Starter beunoit

    (@beunoit)

    Great !
    Thank you !

    chzumbrunnen

    (@chzumbrunnen)

    I have the same error when running php 8.0 but not when running php 7.4.2.
    Therefore, I guess it’s something that should be refactored in the plugin.

    Thanks @pimschaaf for the hint

    I’m seeing the same error with PHP 8.0 and 8.1 – is there a chance to get this resolved? Error is showing both in admin and front-end maintenance notice, so the plugins becomes unusable

    Plugin Author Rik

    (@betacore)

    Hi! Sorry you had to wait for a fix! Currently a lot of away from computer things going on right now so I’ll try to push the updated version as soon as possible.

    In the meantime you can download the updated 2.1 version from my github page: https://github.com/rik-janssen/super-simple-site-offline-beta

    Thanks @pimschaaf for helping people in my absence. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Notice: Undefined index: preview_offline’ is closed to new replies.