• I have a private WP page and included MEC lite. I show a calendar and can switch to next or previous month but only when I’m logged in as admin. When an another user logs in and click to the nest or previous month there is only an infinite spinner and nothing happens. The HTTP response code is 302 instead of 200. The request to the next or previous month is running via /wp-admin/admin-ajax.php.
    How can I fix it to let all users see the whole calendar?

    MCE lite version is 6.1.6 freshly updated a few hours ago.
    I use the monthly view skin (simple).

    Thank you in advance.

    • This topic was modified 4 years, 1 month ago by naptoon.
    • This topic was modified 4 years, 1 month ago by naptoon.
    • This topic was modified 4 years, 1 month ago by naptoon.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor webnus

    (@webnus)

    Hello @naptoon,

    Please share a live URL from your issue.

    Also, for troubleshooting, please deactivate all your plugins and let the MEC remain active only, set your theme on default, then reload the page, if the issue was solved, then activate your plugins one by one and your theme, refresh your page and check to see which plugin is causing the issue.

    Best Regards

    Thread Starter naptoon

    (@naptoon)

    Hello,

    I deactivated all plugins but it doesn’t help. I can’t share a URL because this is a private site with protected documents and I’m not allowed to give you access for the site. Is there any other way to get help?

    Thank you!

    Thread Starter naptoon

    (@naptoon)

    The action for admin-ajax.php seems to be mec_monthly_view_load_month but mec_list_load_more does also not work. There should be a setting which user role is enabled to execute those actions but where?

    Maybe there should be something like
    add_action( ‘wp_ajax_ACTION’, ‘ACTION’ );
    add_action( ‘wp_ajax_nopriv_ACTION’, ‘ACTION’ );

    • This reply was modified 4 years ago by naptoon.
    Thread Starter naptoon

    (@naptoon)

    Ok, I see it is already done:

    $this->factory->action(‘wp_ajax_mec_monthly_view_load_month’, array($this, ‘load_month’));
    $this->factory->action(‘wp_ajax_nopriv_mec_monthly_view_load_month’, array($this, ‘load_month’));

    also here:

    $this->factory->action(‘wp_ajax_mec_list_load_more’, array($this, ‘load_more’));
    $this->factory->action(‘wp_ajax_nopriv_mec_list_load_more’, array($this, ‘load_more’));

    $this->factory->action(‘wp_ajax_mec_list_load_month’, array($this, ‘load_month’));
    $this->factory->action(‘wp_ajax_nopriv_mec_list_load_month’, array($this, ‘load_month’));

    So I don’t know why it’s not working.

    Thread Starter naptoon

    (@naptoon)

    Any suggestions how to fix this problem? Unfortunately I’m not an wordpress expert 🙁

    Plugin Contributor webnus

    (@webnus)

    Hello @naptoon,

    I fully examined the issue you have raised on this topic and could not see it on my end.
    Please share a live URL from your issue.

    Also, please enable WordPress debugger and send your website log here.
    To see the error on WordPress, you can check the super administrator email; Or turn on the WordPress debugger mode. To enable it, please follow the steps explained in this link: https://wordpress.org/support/article/debugging-in-wordpress/#:~:text=information%20about%20errors.-,Example%20wp%2Dconfig.php%20for%20Debugging,-%23.

    Note: You can send the above information as code here or upload them to http://pastebin.com/ and get an exclusive link.

    Best Regards

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

The topic ‘Can’t switch to other months when not an admin’ is closed to new replies.