• Resolved ashishshah16

    (@ashishshah16)


    I have used Cartflows to build a thank you page. This is working fine but the Crawler (ahrefs) shows 500 internal server error as the HTTP status code. I am not sure what is wrong. Please let me know what all logs you need to further troubleshoot this issue. I am kind of new to the topic so please be as much elaborate as you can. Thank you in advance.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @ashishshah16 ,

    Thank you for getting back to us!

    It seems that you are getting 500 error message for the thank you page. Is it correct?

    If yes then let me tell you that in the CartFlows, the thank you page cannot be visited directly that is without placing an actual order.

    If anyone tries to visit or open the thank you page without placing an order, then they will get the error message and that will be 500. The reason is that the execution stops there and that is why the 500 error response is returned.

    So, if you visit the thank you page directly then you will get the below error message which is nothing but a 500 error.
    https://share.getcloudapp.com/12uLD51D

    I hope this helps and clarifies your doubts.

    Please let me know your thoughts on it.

    Thread Starter ashishshah16

    (@ashishshah16)

    Hi team.

    Thank you for that quick clarification.

    Correct me if I am wrong but then does that mean that all the pages that cannot be accessed directly or has no backlinks will return 500 error? if so, won’t it negatively effect the page/website ranking for SEO? Is there any way we can prevent the page from showing 500 error?

    Thanks in advance.

    Hello @ashishshah16,

    Thank you for getting back to us!

    It won’t negatively affect your SEO as the thank you page is a dynamic and customized page.

    However, you can use the following custom code to allow thank you page direct access:

    
    add_filter( 'cartflows_thankyou_direct_access', 'disable_secure_thank_you', 10, 2 );
    
    /**
     * Remove the default payment gateway button if the PayPal option is selected.
     * 
     * @param $allow Enable/Disable the feature
     * @param $thank_you_id Current thank you page ID
     * 
     * @return $allow Updated Enable/Disable the feature.
     */
    function disable_secure_thank_you( $allow, $thank_you_id ){
    
    	$allow = true;
    
    	return $allow;
    }
    

    Hope this helps.

    Best wishes,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Crawler showing 500 internal server error on thank you page’ is closed to new replies.