• Hi,

    Thanks for your job.

    From some days ago, I see repeated erros like these. On web log:

    Warning:  Undefined variable $cusrnd in [...]wp-content/plugins/quick-adsense/includes/content.php on line 265
    Warning:  Undefined variable $cusrnd in [...]wp-content/plugins/quick-adsense/includes/content.php on line 281

    Running from CLI:

    Warning: count(): Parameter must be an array or an object that implements Countable in [...]wp-content/plugins/quick-adsense/includes/content.php on line 36
    Warning: array_push() expects parameter 1 to be array, null given in [...]wp-content/plugins/quick-adsense/includes/content.php on line 40
    Warning: array_push() expects parameter 1 to be array, null given in [...]wp-content/plugins/quick-adsense/includes/content.php on line 45
    Warning: count(): Parameter must be an array or an object that implements Countable in [...]wp-content/plugins/quick-adsense/includes/content.php on line 47
    Warning: count(): Parameter must be an array or an object that implements Countable in [...]wp-content/plugins/quick-adsense/includes/content.php on line 36

    This or something so similar happened to me large months or years ago, a bunch of weeks givings warnings and later, it stops. Now it repeats.

    Quick-adsense version 2.8.2
    PHP version 8.0.17

    Thanks for your attention.

    • This topic was modified 2 years, 11 months ago by ABCdatos.
    • This topic was modified 2 years, 11 months ago by ABCdatos. Reason: little correctoios for better wiew
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Namith Jawahar

    (@namithjawahar)

    Can you revisit Quick adsense admin and click save and see if it goes away. Might be an upgrade routine which didnt fully run.

    Thread Starter ABCdatos

    (@abcdatos)

    Hi,

    I tried this in two sites, clicking save in all tabs with no effect.

    Got error 'PHP message: PHP Warning: Undefined variable $cusrnd in /var/www/clients/client2/web35/web/wp-content/plugins/quick-adsense/includes/content.php on line 291PHP message: PHP Warning: Undefined variable $cusrnd in /var/www/clients/client2/web35/web/wp-content/plugins/quick-adsense/includes/content.php on line 307PHP message: PHP Warning: Undefined variable $cusrnd in /var/www/clients/client2/web35/web/wp-content/plugins/quick-adsense/includes/content.php on line 291PHP message: PHP Warning: Undefined variable $cusrnd in /var/www/clients/client2/web35/web/wp-content/plugins/quick-adsense/includes/content.php on line 307'

    Reviewing the code, at wp-content/plugins/quick-adsense/includes/content.php,, in the “Begin Insert StandIns for all Ad Blocks”, beginning line 82, you take the presence of “<!–OffDef–>” as $offdef

    $offdef = ( strpos( $content, '<!--OffDef-->' ) !== false );

    and then begin a conditional block where you define $cusrnd

    $cusrnd = 'CusRnd';

    At line 240, this conditional block ends, but you continue using $cusrnd, raising the warning.

    Thanks for your attention.

    Plugin Author Namith Jawahar

    (@namithjawahar)

    I will check and fix in the next update. Thanks for letting me know.

    Thread Starter ABCdatos

    (@abcdatos)

    Thanks to you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Null value warnings.’ is closed to new replies.