• Resolved rosstarg

    (@rosstarg)


    I have several sites, and so on one of them when the AdSense WP QUADS plug-in is enabled, such errors come out. Look at the screenshot, I tried to disable the plug-in, I tried to remove the plug-in and reinstall, nothing helps. Is there a solution?

    screenshot

    These lines as seen in the screenshot, they do not disappear, they do not disappear, they are always and everywhere displayed.!

    Notice: Undefined offset: 1 in /var/www/52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/vendor/google/adsense.php on line 70

    Notice: Undefined offset: 1 in /var/www/52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2120

    Notice: Undefined offset: 1 in /var/www/52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2125

    • This topic was modified 7 years, 3 months ago by rosstarg.
    • This topic was modified 7 years, 3 months ago by rosstarg.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    do you use the latest version of the plugin 1.8.2?

    When you disable or uninstall the plugin, the warning disappears, right?

    Until there is a fix for this, I recommend to disable the visibility of warnings on your site.

    Please read that article to learn how to do so:
    https://wp-staging.com/docs/enable-wordpress-debug-log-mode/

    At line 2125 in register-settings.php there is no code so I wonder about the warnings.

    Please get in contact with me at support [at] wpquads.com and let me know the version you use.

    Thread Starter rosstarg

    (@rosstarg)

    Yes, I use 1.8.2, and yes when disconnecting or removing the plugin, the warnings disappear completely. In line 2125, this is the code

    // get g_data_ad_slot
    $ explode_ad_code = explode (‘data-ad-slot’, $ value [‘code’]);
    preg_match (‘# “([a-zA-Z0-9 / \ s] +)” #’, $ explode_ad_code [1], $ matches_add_slot);
    $ quads_options [‘ads’] [$ key] [‘g_data_ad_slot’] = str_replace (array (‘”‘, ”), array (”), $ matches_add_slot [1]);
    } else {
    // *** GOOGLE SYNCRON

    • This reply was modified 7 years, 3 months ago by rosstarg.
    Thread Starter rosstarg

    (@rosstarg)

    I did as in the article that you sent me, that’s what is written in it in debug.log

    [05-Mar-2019 16:17:17 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/vendor/google/adsense.php on line 70
    [05-Mar-2019 16:17:37 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/vendor/google/adsense.php on line 70
    [05-Mar-2019 16:17:38 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2120
    [05-Mar-2019 16:17:38 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2125
    [05-Mar-2019 16:17:38 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/vendor/google/adsense.php on line 70
    [05-Mar-2019 16:17:38 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/e.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2120
    [05-Mar-2019 16:17:38 UTC] PHP Notice: Undefined offset: 1 in /var/www/vh52/data/www/.ml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2125

    Thread Starter rosstarg

    (@rosstarg)

    So how to solve this problem?

    Will release an update soon. Until that is ready please debug the WordPress debug mode to not display these warnings: https://wp-staging.com/docs/enable-wordpress-debug-log-mode/

    You can also check your ad settings to make sure that there is a correct ad slot id in populated, see: https://monosnap.com/file/n6yTNRt1dIk2AMFnwuOcVkjKdIFLOe

    Thread Starter rosstarg

    (@rosstarg)

    Hello, I tried something all and it doesn’t help anything, will you update the plugin soon?

    Hi,

    can you check out the latest version?

    Thread Starter rosstarg

    (@rosstarg)

    No, it does not help, I just turned on the plugin version 1.8.5, and still there are errors

    Notice: Undefined offset: 1 in /var/www/vh1052/data/www/eml/wp-content/plugins/quick-adsense-reloaded/includes/admin/settings/register-settings.php on line 2148

    Thread Starter rosstarg

    (@rosstarg)

    I solved the problem, this problem was in the database, because the database is curved. And not in the plugin

    Great, thanks for your feedback.

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

The topic ‘Help Me )’ is closed to new replies.