• Resolved dustysun

    (@dustysun)


    Hi, when you have on debugging, there are five notices logged for every page load, like this:

    [31-Dec-2020 03:50:04 UTC] PHP Notice:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/seriously-simple-podcasting/php/classes/blocks/class-castos-blocks.php on line 81
    [31-Dec-2020 03:50:04 UTC] PHP Notice:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/seriously-simple-podcasting/php/classes/blocks/class-castos-blocks.php on line 82
    [31-Dec-2020 03:50:04 UTC] PHP Notice:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/seriously-simple-podcasting/php/classes/blocks/class-castos-blocks.php on line 90
    [31-Dec-2020 03:50:04 UTC] PHP Notice:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/seriously-simple-podcasting/php/classes/blocks/class-castos-blocks.php on line 97
    [31-Dec-2020 03:50:04 UTC] PHP Notice:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/seriously-simple-podcasting/php/classes/blocks/class-castos-blocks.php on line 105
    

    I looked at the class-castos-blocks.php file, and if you add $this->asset_file = to the beginning of line 68, it fixes the issue. Is this something you guys can include in the next release so there aren’t so many log notices being generated? Thanks!

    Fixed line 68:
    $this->asset_file = include SSP_PLUGIN_PATH . 'build/index.asset.php';

    • This topic was modified 4 years, 2 months ago by dustysun.
Viewing 1 replies (of 1 total)
  • Thread Starter dustysun

    (@dustysun)

    Well – nevermind! I thought I was up to date on my development server but wasn’t. I see you’ve fixed this in the latest version. Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘“Trying to access array offset” notices’ is closed to new replies.