Support » Plugin: Multisite Post Reader » Warnings shown in output although debug constant set to false

  • Resolved blubbubb

    (@blubbubb)


    Hello,
    I’m using our plugin in widget. The Posts are shown but I get lots of warnings, although the debug constant in wp-config ist set to false. At the moment my site runs only locally in XAMPP (PHP Version 7.3) –Edit: Now online on https://justfordevelopment.de
    I only got the output working with the help of the Plugin “Shortcode Widget”, HTML and Text Widget don’t work.

    The warnings:

    Warning: Use of undefined constant debug – assumed ‘debug’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 252
    Showing: newest 4 posts , Includes these categories: aktuelles.
    Warning: Use of undefined constant includesites – assumed ‘includesites’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 330

    Warning: Use of undefined constant excludesites – assumed ‘excludesites’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 333

    Warning: Use of undefined constant includesites – assumed ‘includesites’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 347

    Warning: Use of undefined constant excludesites – assumed ‘excludesites’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 357

    Warning: Use of undefined constant debug – assumed ‘debug’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    Site: 1 – ‘Feuerwehr Lilienthal’ – http://fwlilienthal.local
    Hallo Welt!
    2019-06-16 20:17:42

    Beitrag von der Hauptseite

    Warning: Use of undefined constant debug – assumed ‘debug’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    Site: 2 – ‘Ortsfeuerwehr Heidberg’ – http://fwlilienthal.local/heidberg
    Hallo Heidberg
    2019-06-16 20:23:43

    Beitrag von Ortsfeuerwehr Heidberg

    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 508
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 508
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 508
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 495
    
    Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\fwlilienthal\wp-content\plugins\multisite-post-reader\multisite-post-reader.php on line 508

    Thanks in advance & regards,
    Lars

    • This topic was modified 2 years, 11 months ago by blubbubb.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    Thanks for the alert.

    That is a warning in PHP 7.x, due to my laziness in writing array elements. This is no longer allowed:

    
    $atts[elementname]

    You must include the quote character on element names, like this:

    
    $atts['elementname']

    So, version 2.40 (just uploaded, should appear soon as an update) fixes that.

    The warning message displayed by some plugin/setting that turned on the warning displays; that setting is not in my plugin.

    Sorry for the issue. Should be all better now.

    Thanks again !!

    Thread Starter blubbubb

    (@blubbubb)

    Hi,
    no problem, thanks for your quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warnings shown in output although debug constant set to false’ is closed to new replies.