• Resolved sven321a

    (@sven321a)


    Hi,

    I’ve noticed for a while that sometimes the AJAX-related processes will break randomly when I load into them. Specifically the post sliders and post list AJAX pagination. And I’ll need to refresh the page a few times for them to load properly.

    I suspected that it might be related to caching (I use WP Optimize and Cloudflare). I tried deactivating it and it seems to fix the issue. So my question is there a way for me to bypass the caching of these processes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sven321a

    (@sven321a)

    I’ve just found this post from 6 months ago and I want to report that I’m also having this issue

    ajax returning 0 | www.remarpro.com

    I looked and didn’t find the stated line in initialization.php so I assumed it was revised since then

    Thanks for reaching out. It appears there might be a caching conflict related to the nonce.

    Here’s a possible solution:

    1. Navigate to the plugin editor.
    2. Open the blocks.php file located at: ultimate-post > classes > Blocks.php
    3. Locate the following code for the ultp_next_prev_callback function:

    if (! (isset($_REQUEST[‘wpnonce’]) && wp_verify_nonce(sanitize_key(wp_unslash($_REQUEST[‘wpnonce’])), ‘ultp-nonce’))) {

    return ;
    }

    4. Comment out this block of code and save your changes.

      Please give this a try and let me know .It should resolves the issue.

      Thread Starter sven321a

      (@sven321a)

      Hi,

      Yes that seems to resolve the issue. Though just commenting ultp_next_prev_callback?function doesn’t seem to work. I had to comment out all 5 instances in the php for things to work properly.

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