• For quite some time and it’s getting worse, when I click the “Notify Users About This Post” link, it will take a very long time to get to the page where I choose who to send the email notification to.

    Sometimes after about 5-10 minutes it will upload, but recently it’s been just a blank page or only showing the top half of the page so that I cannot even use it.

    If there’s a response, please respond in layman’s terms.

    Thank you,
    Kathy

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    How many users do you have? How about groups? Any special meta filters or group management plugins in use?

    Thread Starter kathyg1111

    (@kathyg1111)

    Thank you for response.

    I send to two groups with 9 in one group & 29 in other group.

    I’m not sure about special meta filters or group management plugins in use other than WP email users.
    Kathy

    Plugin Author Mike Walsh

    (@mpwalsh8)

    How do you define your groups? Email Users doesn’t provide any ability to define groups or manage roles. Those sort of tasks must be done with another plugin or with WordPress directly.

    1. How many total groups does your site have?
    2. How many total users does your site have?
    Thread Starter kathyg1111

    (@kathyg1111)

    I define my groups with WP directly.

    I have 6 groups including administrator.

    I have over 5000 total users.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    If you use the Dashboard > Email Users > Send to Users function, does it take about the same amount of time for the page to load as it does when you do the Notify Users about this Post function?

    Thread Starter kathyg1111

    (@kathyg1111)

    Yes, that is correct.

    It used to work great but around June 2016 it started having a popup say wait or kill it before it would send it, then around September 2016, it’s been getting progressively worse.

    Thank you.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    My guess is the database query to build the list of users is taking a very long time. Email Users has a debug setting and one of the things it does when debug is enabled is output some information as HTML comments on the Dashboard pages where the the the list of users is presented.

    For example, if I navigate to the Dashboard > Email Users > Send to Users page and then look at the HTML source of the page (Ctrl-U) I will find some comments which look like this:

    
    <!-- email-users.php::1386 -->
    <!-- email-users.php::1387 -->
    <!-- 
    Array
    (
        [total_users] => 1285
        [avail_roles] => Array
            (
                [administrator] => 1
                [contributor] => 4
                [editor] => 2
                [subscriber] => 1277
                [none] => 1
            )
    
    )
     -->
    <!-- email-users.php::1389 -->
    <!-- 
    Array
    (
        [exclude] => Array
            (
                [0] => 1
            )
    
        [fields] => all
        [offset] => 0
        [number] => 500
    )
     -->
    <!-- email-users.php::1391 -->
    <!-- email-users.php::1410  Query #1  Memory Usage:  15.75M -->
    <!-- email-users.php::1410  Query #2  Memory Usage:  20M -->
    <!-- email-users.php::1410  Query #3  Memory Usage:  24.25M -->
    <!-- 
    1282 -->
    <!-- email-users.php::1444 -->
    

    I added this when working with a user who had a very large database of users and memory was being exhausted. The query is broken up into “chunks” to ensure that memory isn’t exhausted.

    I could add some additional information to report how long the query is actually taking as I can see how that would be useful in your case. It wouldn’t take me long to do it if you are ok installing a beta version.

    Thread Starter kathyg1111

    (@kathyg1111)

    I love this plugin, so yes I would be very willing. Thank you.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Sorry I missed your reply before the weekend. I’ll see if I can get a build put together later tonight.

    Thread Starter kathyg1111

    (@kathyg1111)

    Thank you very much.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I’ve posted a new build which will report the time it takes to run the user query.

    When running this build in Debug Mode, it will report information like this as comments in the HTML on the Send to Users page:

    
    <!-- email-users.php::1391 -->
    <!-- email-users.php::1410  Query #1  Memory Usage:  15.75M -->
    <!-- email-users.php::1415  Query #1  Execution:  0.30101704597473s / 301.01704597473ms -->
    <!-- email-users.php::1410  Query #2  Memory Usage:  20M -->
    <!-- email-users.php::1415  Query #2  Execution:  0.29001688957214s / 290.01688957214ms -->
    <!-- email-users.php::1410  Query #3  Memory Usage:  24.5M -->
    <!-- email-users.php::1415  Query #3  Execution:  0.201012134552s / 201.012134552ms -->
    <!-- 
    1282 -->
    <!-- email-users.php::1448 -->
    
    Thread Starter kathyg1111

    (@kathyg1111)

    Thank you, do I need to anything special, do you receive the report automatically or do I do something?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I don’t see anything unless you send it to me or post it somewhere. To see what your site is doing, do the following:

    1. Download the v4.8.5-beta from my web site.
    2. You’ll need to manually install it. The easiest way is via FTP since you can unzip the file and drop it on the existing plugin. If you want to upload it using the WordPress plugin installer, you will need to delete the existing plugin before you can upload the zip file.
    3. Once the plugin is installed, Enable Debug from the settings page (Dasboard > Settings > Email Users).
    4. Visit the Send to Users page (Dashboard > Email Users > Send to Users) and let the page completely load. I think you stated this was taking minutes to do.
    5. Once the page is fully loaded, view the HTML source for the page and look for the comments section like I posted above. It should be in the first 400-600 lines of the HTML.
    6. Copy the information and email it to me (mpwalsh8 at gmail dot com) or post it here so we can see what the numbers look like.

    Once we see what the numbers look like, we’ll have an idea of where to go next.

    • This reply was modified 9 years, 4 months ago by Mike Walsh.
Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Cannot Access Notify Users Page’ is closed to new replies.