• Resolved Sheryar Khan

    (@thesheryar)


    Hello Jeg Elementor Kit Support,

    I am writing to seek assistance regarding an issue with your Jeg Elementor Kit plugin. I am using the plugin in conjunction with Stripe for payment processing on my WordPress site. When Stripe webhooks events are fired, I receive a 500 (Internal Server Error) with the message “There has been a critical error on this website.” This seems to be causing disruptions in my payment processing.

    Could you please provide guidance on how to resolve this issue? I suspect there may be a conflict or compatibility issue between Jeg Elementor Kit and Stripe’s webhooks API calls.

    I can share a video and logs privately if necessary, as the data is sensitive. Please let me know how I can share this information securely.

    Troubleshooting Steps Taken:

    • Plugin / Theme conflict test
    • Enabled only Elementor + Jeg plugin
    • Disabled Jeg Plugin (And it worked flawless, but not the solution)
    • Rollback to previous Elementor versions
    • Rollback to previous Jeg Kit plugin versions
    • Checked logs for specific issue (Hint: /wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)
    • Tested it on local server
    • Tried using Woocommerce Stripe Plugin
    • Tried using Gravity Form Stripe Payment
    • Tried direct Stripe Payment Button
    • Tried using Apache web server
    • Tried using OpenLiteSpeed web server

    Keynote: No matter the what combination I do with themes or plugin, if I turn on Jeg Elementor Kit plugin. Stripe would be return 500 Error on webhook events.

    Return Log from Stripe’s Webhook

    {
      "code": "internal_server_error",
      "message": "<p>There has been a critical error on this website.</p><p><a href=\"https://www.ads-software.com/documentation/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>",
      "data": {
        "status": 500,
    
    "message": 
    
    "Uncaught Error: Call to a member function get_page_permastruct() on null in /home/xxxxx/xxxxx/wp-includes/link-template.php:435\nStack trace:\n#0 /home/wordpress/xxxxxxxxxxxx.com/wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)\n#1 /home/wordpress/xxxxxxxxxxxx.com/wp-includes/link-template.php(197): get_page_link
    
    "file": "/home/wordpress/xxxxxxxxxxxx.com/wp-includes/link-template.php",
    "line": 435
    }

    Thank You ??

    • This topic was modified 7 months, 2 weeks ago by Sheryar Khan. Reason: Underline feature was not working in WP forum editor, so changed text to no decoration
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @thesheryar,

    We apologize for the delay in our response and for any inconvenience you may have experienced. Could you please provide the remaining information by sending it to the two email addresses below?

    [email protected]
    [email protected]

    Previously, we tried configuring Stripe on our local environment using the WooCommerce Stripe Gateway plugin. Afterward, we attempted to make a purchase, from adding items to the cart to completing the payment process. However, we did not encounter any issues similar to what you experienced.

    Therefore, we will wait for further information from you.

    Thank You

    Thread Starter Sheryar Khan

    (@thesheryar)

    Hello Fauzan,

    I shared an e-mail. Please check, it has all the details.

    Thanks

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @thesheryar,

    After further investigation, we found the code causing this issue. You can see the code on line 51, which we’ve marked in the image below.

    Screenshot-2024-04-24-at-17-00-04

    Upon examining the code, we didn’t find anything unusual that could lead to the issue you’re experiencing. Therefore, we recommend reaching out to the Ultimate Membership Pro team regarding the problem you’re facing. You can provide them with the link to this forum so they can better understand the situation.

    We’ll await your further updates.

    Thank You

    Thread Starter Sheryar Khan

    (@thesheryar)

    Hello Fauzan,

    I do understand but when you disable the Jeg Plugin, the stripe webhooks works fine or if you remove Ultimate Membership Pro and use stripe on Elementor Forms it stills gives errors.

    Please check e-mail for further details.

    Thanks

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @thesheryar,

    You can investigate it with the error message below:

    
    Uncaught Error: Call to a member function get_page_permastruct() on null in /../wp-includes/link-template.php:435
    Stack trace:
    #0 /../wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)
    #1 /../wp-includes/link-template.php(197): get_page_link(Object(WP_Post), false, false)
    #2 /../wp-content/plugins/indeed-membership-pro/clZasses/gateways/PaymentAbstract.php(199): get_permalink(Object(WP_Post))
    #3 /../wp-content/plugins/indeed-membership-pro/classes/gateways/PaymentAbstract.php(164): Indeed\\Ihc\\Gateways\\PaymentAbstract->setReturnUrlAfterPayment()
    #4 /../wp-content/plugins/indeed-membership-pro/indeed-membership-pro.php(748): Indeed\\Ihc\\Gateways\\PaymentAbstract->__construct()
    #5 /../wp-includes/class-wp-hook.php(324): ihc_payment_gate_check(Object(WP_Query
    

    In the code, there is a call to the get_permalink() function, which is called within the pre_get_posts hook. Meanwhile, in the Jeg Elementor Kit code, there is a query to retrieve posts, and this code is within the plugins_loaded hook where the $wp_rewrite variable is not ready yet. In the WordPress documentation, it is documented that the get_permalink() function can only be used during and after the setup_theme hook. Please refer to our documentation below for more information:

    https://developer.www.ads-software.com/reference/functions/get_permalink/#more-information

    For now, we have adjusted your site. If there are any issues after updating the plugin, feel free to ask us again.

    Thank You

    Thread Starter Sheryar Khan

    (@thesheryar)

    Hi @fauzanjegstudio

    I hope you’re having a good day!

    Thank you, the issue has been resolved as stated above. I really appreciate the time and effort.

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @thesheryar,

    We would like to inform you that we have recently updated the Jeg Elementor Kit to version 2.6.5, and we have adjusted our code to prevent this issue from occurring. We hope you can check it out.

    If you have any other questions or concerns, feel free to create a new topic.

    Thank You

    Happy weekend! ???

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘500 (Internal Server Error) with Jeg Elementor Kit and Stripe Webhooks’ is closed to new replies.