• My Current version of WordPress is 6.7.1

    My Current version of WP Statistics: is Version: 14.11.4

    I have just installed WP Statistics. I have Monitor Online Visitors checked (This is under Tracking Options) Under Email Reports I have the following set up: Email Configuration (My email-address) Automated Report Delivery Report Frequency = “Daily” Delivery Method = “Email” Custom Report ” Today’s Visitors:[wpstatistics stat=visitors time=today]
    Today’s Views: [wpstatistics stat=visits time=today]
    Yesterday’s Visitors: [wpstatistics stat=visitors time=yesterday]
    Yesterday’s Views: [wpstatistics stat=visits time=yesterday]
    Total Visitors: [wpstatistics stat=visitors time=total]
    Total Views: [wpstatistics stat=visits time=total] ” Email Header Customization “XXXXX Website Statistics Report” Email Footer Customization “End Report”

    When I login to WordPress and look at the statistics for “WP statistics” all the statistical statics and data is there. No emails are being sent Yes I have checked my spam folder not there my personnel email is gmail There is a Mailchimp active plugin in use as well What is missing

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Matthew

    (@mhdizmni)

    Hi @jperson19468,

    Thank you for opening the thread!

    Could you please check if the related Cron event has been created? You can use a plugin like WP Crontrol to inspect Cron events. After installation, kindly navigate to Tools > Cron Events and search for wp_statistics_report_hook in the Cron events list. You should see something similar to this: https://i.vgy.me/Rucv08.png.

    If the Cron job is not created, please try saving the Email Reports settings once and then check the Cron events list again.

    If the Cron job is created but the issue persists, it might be related to your mail server not sending the emails. In that case, we recommend checking your mail server configuration to ensure it’s functioning correctly.
    You can also click “Run now” and check the matter: https://i.vgy.me/1h5i5V.png.

    Looking forward to your response!

    Regards,
    Matthew

    Plugin Support Matthew

    (@mhdizmni)

    Dear @jperson19468,

    We will mark this thread as “resolved” since we haven’t heard back from you in a while.

    Please feel free to reopen it or create a new one if you still need help or have any further questions.

    Thank you!

    Regards,
    Matthew

    Hi Matthew. I’m following up because I’m responding to the same issue. In our site’s case, we’re using FluentSMTP to send email through Google. How does this impact the plugin’s ability to send reports?

    Thanks,
    Mark

    Plugin Support Matthew

    (@mhdizmni)

    Dear @scorintha,

    After conducting multiple tests, we can confirm that report emails are being sent successfully using FluentSMTP.

    Please note that WP Statistics uses the wp_mail() function to send emails.

    That said, since SMTP plugins override or extend the default wp_mail() function, we recommend reaching out to their respective support teams for further assistance.

    Additionally, if non-WP Statistics emails are being sent using FluentSMTP, I would like to refer you to my previous reply regarding the cron jobs.

    Regards,
    Matthew

    Thread Starter jperson19468

    (@jperson19468)

    Sorry, got pulled away by something else

    My Current version of WordPress is 6.7.2

    My Current version of WP Statistics: is Version: 14.12.6

    Just installed wp crontrol Found hook “wp_statistics_report_hook” Actions says "WP_STATISTICS\Schedule->send_report()” Did not see anything like “https://i.vgy.me/Rucv08.png”

    Plugin Support Mehmet

    (@gandomi)

    Hi @jperson19468,

    Please click Run now to manually trigger the hook wp_statistics_report_hook and check if you received the email.

    • If you receive the email, the issue is with the cron job not running correctly, and we’ll need to fix it.
    • If you don’t receive the email, the issue is likely with the mail service. In that case, we need to check the logs to identify the problem.

    To check for errors:

    Enable WordPress logging by adding these lines to wp-config.php:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('log_errors', 1);

    This creates a log at /wp-content/debug.log.

    You can also use an SMTP plugin like WP Mail SMTP to log email activity. Install it, configure an SMTP service, and check the Email Log.

    Let me know if you need further assistance or if you can share any logs to help us pinpoint the issue.

    Best regards,
    Mehmet

    Thread Starter jperson19468

    (@jperson19468)

    Clicked on “Run” of the wp_statistics_report_hook action I then received the following message: “Scheduled the cron event wp_statistics_report_hook to run now. The original event will not be affected” I then went to “ADD Cron Event” tab I then added the following event and clicked “add event”

    Event Type Event Type Standard cron event

    Hook Name wp_statistics_report_hook

    Arguments (optional) “None” or “Blank”

    Next Run Now

    Went back to the “cron events” page and what I think was “wp_statistics_report_hook” running under schedule It said “Now” I have received no email Tried it a couple of times

    Plugin Support Mehmet

    (@gandomi)

    Hi @jperson19468

    Since you received the message:
    “Scheduled the cron event wp_statistics_report_hook to run now. The original event will not be affected.”

    Confirm that the cron is working correctly. However, since you ran it manually and did not receive an email, there is a good chance that your mail server is not sending emails.

    Please proceed with the “Check for Errors” section from my last message to see if you can access the related error logs and share them with me.

    Best regards,
    Mehmet

    Thread Starter jperson19468

    (@jperson19468)

    Have added the following code to wp-config.php

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
    @ini_set(‘log_errors’, 1);

    Log out of WordPress Log back in WordPress Running cron-job “wp_statistics_report_hook”

    First line on on “Cron Events” page

    wp_statistics_report_hook March 19, 2025 6:28 pm nowWP_STATISTICS\Schedule>send_report()Non-repeating

    Checking at wp-content for error log No error log The only error log that is on the site is a file called error_log It is in public_html size 532.49?KB time Today, 6:37 PM

    Received the following message in the “error Log” file

    [19-Mar-2025 22:09:10 UTC] PHP Warning: Constant WP_DEBUG already defined in /home/tricountyaac/public_html/wp-config.php on line 80 [19-Mar-2025 22:09:10 UTC] PHP Warning: Constant WP_DEBUG_LOG already defined in /home/tricountyaac/public_html/wp-config.php on line 81 [19-Mar-2025 22:09:10 UTC] PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /home/tricountyaac/public_html/wp-config.php on line 82

    Plugin Support Mehmet

    (@gandomi)

    Hi @jperson19468,

    This error happens when WP_DEBUG, WP_DEBUG_LOG, and WP_DEBUG_DISPLAY are defined more than once in your wp-config.php file. This can cause problems with error logging.

    Please check the wp-config.php file, keep only one set of these definitions, and remove any duplicates. Then save the file and test your site again.

    Looking forward to your response.

    Best,
    Mehmet

    Thread Starter jperson19468

    (@jperson19468)

    I only have WP_DEBUG, WP_DEBUG_LOG, and WP_DEBUG_DISPLAY once in the wp-config.php file I used the editor to search for them

    Is it possible they are defined somewhere else?

    There is a file called wp-settings.php in that file the following lines list the WP_DEBUG call

    // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE.

    // Check if WP_DEBUG mode is enabled.
    wp_debug_mode();

    I think I found the code It is in a directory called wp-includes/ The file is called load.php Can I / do you want me to copy and past the code of Function? Not sure when or how it is called

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.