Support » Plugin: Inline Related Posts » Error 500 on ajax from shortcode

  • When I try to insert a shortcode in the content of a post plugin, after opening the window, where the total list of posts should be shown in order to select one, it does not show anything; and when reviewing the console, I see that in the answer of ajax there is an error 500. I count apart, that on average, my blog has 30,000 entries. The other functions work very well.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author IntellyWP

    (@intellywp)

    Hi Saul,
    Thanks for choosing IntellyWP products.

    I have checked your issue with our techs and seems that could be connected to the number of posts that you have defined (sometimes our plugin require a lot of time to load all the post inside the dropdown that, theoretically is shown in this popup when you click the shortcode button in WP editor).

    We are working on this to find a possible fix, in the while by suggestion is to use manually the shortcode due to is very easy.
    We have 2 different shortcodes that you can insert in any place or your post content.

    [irp] will insert the related box searching automagically the best content to fix (based on categories or tags)
    [irp posts=”YOUR-POST-ID”] will insert a specific post inside the content not necessary with the same categories or tags

    Please be aware that when you will insert one of this 2 shortcodes manually our plugin will not insert any other related box for this article.

    Let me know if you have any additional questions and will be a pleasure to help you.
    Cheers

    Alex

    Hello,
    Is there any fix available? We currently facing the same issue and contacting via e-mail with support isn’t very responsive (maybe you don’t receive my mails for some reason).
    It’s a great plugin and it’d be pity to replace it.
    Thank you

    Plugin Author IntellyWP

    (@intellywp)

    Hi @gasmas75,

    If you want i can send you a customized version that include this fix.

    In that case, please send an email to support@intellywp.com to open a ticket in our tech team helpdesk.

    Thank you

    Have a nice day

    Alex

    Hello @intellywp

    After updating this plugin three websites throws 500 error on related post.
    This makes this plugin almost useless.

    Kind regards

    Plugin Author IntellyWP

    (@intellywp)

    Hi @timon33,
    thank you, we are checking this issue right now.

    We will reply you soon.

    Thanks for your patience.

    Alex

    Plugin Author IntellyWP

    (@intellywp)

    Hi @timon33,
    We tested our plugin right now but we didn’t found no 500 error.

    Could you please include, on this topic, more details about the issue, your hosting and these three websites?

    Thank you

    Alex

    Hello.

    It seems the issue is with includes/classes/utils/Utils.php line 240:
    $options = array('posts_per_page' => -1, 'post_type' => $args['post_type'])

    If you test this on a website with 100.000 posts and over you will end up with 500 error. Our servers are MySQL dedicated(32GB RAM) for each website so I don’t think memory is the case.
    We changed this to something lighter under 250~300 posts and working fine:
    $options = array('posts_per_page' => 300, 'post_type' => $args['post_type'])

    Kind Regards

    • This reply was modified 2 years, 4 months ago by timon33.
    • This reply was modified 2 years, 4 months ago by timon33.

    Hello again,
    I’ve been using the customized patch you sent me. Until a week ago everything was fine. But the problem re-appeared: Doesn’t show a custom post from the dropdown search and can’t select one.
    Also the posts in the search results didn’t show up in chronological order (newest first)

    Any advice?
    I can provide login credentials if needed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error 500 on ajax from shortcode’ is closed to new replies.