• I am also experiencing problems on different sites I maintain (not all of them) that the Dashboard Widget remains empty.
    I noticed the other post about this but this does not offer a solution other than the suggestion of inactivating all plug-ins.
    There are no errors in the console.

    Is already known what causes this problem? Or should I still follow that last suggestion?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    You can try this plugin. It has a troubleshooting mode which disables all plugins for the current admin user (not for the visitors!), so you can check if it is a plugin conflict:
    https://ww.wp.xz.cn/plugins/health-check/

    Mostly it is a JS error, but if the console is not showing any errors we need to dig deeper here …

    All the best,
    Torsten

    Thread Starter Harm10

    (@harm10)

    I will try your suggestion and report back.

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Setting this to resolved due to inactivity. Seems to be solved. If not, just reply again and we will have a look.

    All the best,
    Torsten

    Thread Starter Harm10

    (@harm10)

    Sorry it took a while for me to reply.

    I did some testing but did not find the culprit yet. But I have a question: is the widget directly related to the number of blocked spams?
    Because those are also on zero for the sites where it is not working.
    I noticed on those sites where it is working that the widget only displays days when there was at least 1 spam blocked. So if there is no spam there is no entry added to the widget?
    Is this correct?
    Although I find it hard to believe but could this mean there is no spam on the sites where the widget is empty?
    Is there a way that I can test whether spam is blocked on these sites?

    Thread Starter Harm10

    (@harm10)

    Forgot to change the status…..

    Thread Starter Harm10

    (@harm10)

    Can you please answer my question?
    “Is there a way that I can test whether spam is blocked on these sites?”

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    You can try to use some BBCode in your comment and activate the BBcode feature in the settings.

    All the best,
    Torsten

    Thread Starter Harm10

    (@harm10)

    Sorry it took me a while to notice your reply.
    I did some investigation of my own.
    I noticed that on sites where the widget display is empty the get_option(‘daily_stats’) has a value false.
    I assumed this has something to do with cronjobs running so I looked at the setting cronjob_enable and found that it was also false on the site I am currently testing with (no additional plug-ins active and default theme).
    Looking at a site where it is working the cronjob_enable and daily_stats are true.

    The result of query

    SELECT *
    FROM <code>wp_options</code>
    WHERE <code>option_name</code> = 'antispam_bee'
    LIMIT 0 , 30

    on faulty site:

    a:26:{s:9:"flag_spam";i:1;s:12:"email_notify";i:0;s:14:"cronjob_enable";i:0;s:16:"cronjob_interval";i:0;s:9:"no_notice";i:0;s:15:"dashboard_count";i:1;s:15:"dashboard_chart";i:1;s:14:"advanced_check";i:1;s:12:"regexp_check";i:1;s:7:"spam_ip";i:1;s:17:"already_commented";i:1;s:10:"time_check";i:0;s:14:"always_allowed";i:0;s:12:"ignore_pings";i:0;s:13:"ignore_filter";i:0;s:11:"ignore_type";i:1;s:14:"reasons_enable";i:0;s:14:"ignore_reasons";a:0:{}s:12:"bbcode_check";i:1;s:14:"gravatar_check";i:0;s:11:"dnsbl_check";i:0;s:12:"country_code";i:0;s:13:"country_black";s:0:"";s:13:"country_white";s:0:"";s:13:"translate_api";i:0;s:14:"translate_lang";s:2:"de";}

    Is there some setting I have overlooked that influences the cronjob setting?

    Thread Starter Harm10

    (@harm10)

    I guess you have been too busy to notice my information and question.
    In the meantime I have tried some things.

    First I changed in options fields cronjob_enable and cronjob_interval to 1. I waited several days but nothing changed in the display.
    Then I noticed that the cron event antispam_bee_daily_cronjob was not in the schedule. I added it and specified that it should run daily as seen on a working site. And it runs as the scheduled date gets updated each day.
    Still the display did not change after several days.
    Field cronjob_timestamp got added after the cron ran for the first time.
    But fields spam_count and daily_stats are still not there on the failing site.

    Please tell me what I can do more to get it working?

    Thread Starter Harm10

    (@harm10)

    I created a comment with BBcode and the second time Antispam Bee blocked it! I now have 1 information day in my display. Looking in more detail to other working displays it looks like this display only reports days that spam was blocked. Is this true?
    If so, this explains that sites that have no (spam) comments whatsoever will display an empty display? Maybe that could be solved by introducing an option that also days with no spam can be displayed?

    Thread Starter Harm10

    (@harm10)

    I can confirm that when using a BBcode on a site where I didn’t change anything to the options and spam is detected the stats get registered including the other option settings.

    But first of all I would like to get some response from plugin support…….?

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi @harm10 !

    Sorry for the late reply!

    So if there is no spam there is no entry added to the widget?

    I am not sure about this. I think it stays just on “1” in this case. (for the chart info)

    I noticed that on sites where the widget display is empty the get_option(‘daily_stats’) has a value false.

    This is obviously true, because this is the settings from Settings -> Antispam Bee if the dashboard widget should be shown or not. If you want to show the dashboard, you need to enable it on the settings page.

    I assumed this has something to do with cronjobs

    cronjob_enable is a check if the WP Cron system is enabled or disabled.

    The relevant cronjob from ASB is named antispam_bee_daily_cronjob and is just for deleting old spam (if this option is enabled).

    I would recommend not hacking the database for these changes and stick to the settings page which is recommended for configuring the plugin 😉

    Maybe start from scratch with those settings and try again?

    Please report back if something is still broken for you!

    All the best,
    Torsten

    Thread Starter Harm10

    (@harm10)

    Sorry, I totally missed your reply……

    I only want to continue the discussion about
    “So if there is no spam there is no entry added to the widget?”
    I can definitely say that there is no value added to the widget display if no spam is detected.
    The one I triggered with the BBcode test is still the only one on that test site I used for that. A merely single dot in further empty display.
    In my view each day without spam detected should result in a 0 entry in the display and hence creating a proper graph.
    Don’t you agree?

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

The topic ‘Dashboard widget empty’ is closed to new replies.