Title: Null value warnings.
Last modified: April 8, 2022

---

# Null value warnings.

 *  [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/null-value-warnings/)
 * 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 4 years, 2 months ago by [ABCdatos](https://wordpress.org/support/users/abcdatos/).
    -  This topic was modified 4 years, 2 months ago by [ABCdatos](https://wordpress.org/support/users/abcdatos/).
      Reason: little correctoios for better wiew

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Namith Jawahar](https://wordpress.org/support/users/namithjawahar/)
 * (@namithjawahar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/null-value-warnings/#post-15555753)
 * 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](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/null-value-warnings/#post-16003644)
 * 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](https://wordpress.org/support/users/namithjawahar/)
 * (@namithjawahar)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/null-value-warnings/#post-16003711)
 * I will check and fix in the next update. Thanks for letting me know.
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/null-value-warnings/#post-16003765)
 * Thanks to you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Null value warnings.’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense/assets/icon-256x256.png?rev=2682075)
 * [Quick Adsense](https://wordpress.org/plugins/quick-adsense/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/null-value-warnings/#post-16003765)
 * Status: not resolved