• gramz1

    (@gramz1)


    First i was getting time zone error now i updated the pluging its now only 500 error with a successful message but no email whatsoever

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author dominic_ks

    (@dominic_ks)

    Hi @gramz1,

    Thanks for the report, can I get you to open a support thread for this please?

    When you do can you please include some of the following information? This will help me to reproduce the issue and find a fix for it:

    If you are using WordPress 5.2+…

    • Can you paste a copy of your site’s debug info from Tools > Site Health > Info > Copy site info to clipboard

    If you are using lower than WordPress 5.2+…

    • WordPress version
    • PHP version
    • Server type, i.e. Windows or Linux

    Regardless of the above it’d also be good to know:

    • What theme you are using
    • Any plugins you are using
    • Your timezone settings

    I look forward to getting this info and looking into this issue!

    Cheers,

    Thread Starter gramz1

    (@gramz1)

    I am using WordPress 5.0.10 , php7.2 server linux, theme Electro, woocommerce is the main. Time zone utc +2. After i update timezone is fine no more problem though its not working to show the time. I have been through your code if i comment out line 28 in api.route.reset-password.php its working its giving me a 200 success but with that line on 500. And is showing the code in postman 500 error response. If i use that code to reset password is working just that it cant send email its sending the message of the email to 500 error exception message. Just curious what is that try or catch do from line 26 to line 33 api.route.reset-password.php

    Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    Thanks for that, OK so:

    • Line 28 in api.route.reset-password.php is the line that triggers the password reset process, so commenting it will bypass the entire process.
    • The try / catch in that file wraps around the process that fetches the user and triggers the reset process. There are many points during the process where an exception may be thrown, and if so the catch picks that up and returns the 500 error code to the API request

    Are you getting an error message when you receive the 500 error code? I assume you are receiving an error like:

    {
        "code": "error_code",
        "message": "Error message.",
        "data": {
            "status": 500
        }
    }

    And not that WordPress is crashing? If there’s an error message in the response that’d be very useful. If not from your server logs? Or by enabling WP_DEBUG?

    Thread Starter gramz1

    (@gramz1)

    Nooo the response is not Json its text saying in postman

    A password requested for your account and your password code is 6543.please not that this code will expire at

    And Server status 500 internal server Error.

    So if you use that 4 digit code given in text format above it will reset.

    I will activate my logs and see.

    Thread Starter gramz1

    (@gramz1)

    I activated the logs no any info about that 500 error. I have no luck😒😒😒

    Thread Starter gramz1

    (@gramz1)

    I think i have to read all of your code that can cost me 2 days. At least give me starting point. I only need the sending email function part. With that i can reduce my reading time to 12hrs

    Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    OK, I think I have found the issue, the fix I put in for this issue:

    Used this function:

    Which is only available from WordPress 5.3.0

    This function is a shortcut to create a DateTimeZone object. I’ll look and see if I can add support for this for earlier WP versions.

    Will probably be able to do this today.

    Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    OK, I think I have found the issue, the fix I put in for this issue:

    Used this function:

    Which is only available from WordPress 5.3.0

    This function is a shortcut to create a DateTimeZone object. I’ll look and see if I can add support for this for earlier WP versions.

    Will probably be able to do this today.

    Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    Just pushed in version 0.0.6 with a fix for this, please could you update and confirm if it is now working for you?

    Thanks,

    Thread Starter gramz1

    (@gramz1)

    πŸ˜ƒπŸ˜πŸ˜πŸ˜πŸ˜πŸ˜πŸ˜˜πŸ˜˜πŸ˜˜πŸ˜˜ i love you. Its a now working i was halfway reading your code thanks man. I wanna be a contributor. I am building a mobile app with native lang and i was not willing to do server side coding much but this reset thing forced me to leave my native code and do server side. Anyway thats a million times you saved me a lot of hours😲😍

    Thread Starter gramz1

    (@gramz1)

    You can 😊😊😊 boldly mark it as ResolvedπŸ˜‰πŸ˜ thanks

    Plugin Author dominic_ks

    (@dominic_ks)

    Haha, well, that’s the first time someone has told me they love me because of my coding efforts, glad it’s now working for you.

    Yes, mobile apps as well as web apps / PWAs were my primary case for this plugin initially as I couldn’t find a good password reset solution for WordPress so I’m very happy to hear it’s plugging that gap for others to.

    Thread Starter gramz1

    (@gramz1)

    😊😊 you made my day bro i am really happy. When i get rich you are now on my list. Coz the app i am building is a big projct contact me via gramzrah@yahoo.com i like guys like you close . I will remember you. That was the missing link so i was thinking of building another api that woocommerce api but you patched it niceβ€πŸ‘Œ. I turned the api project to another feature thanks a lot. Ystdae i told my friend about you i will make you popular.πŸ˜ŠπŸ˜„

    • This reply was modified 5 years ago by gramz1.
    Plugin Author dominic_ks

    (@dominic_ks)

    Well thank you very much and I wish you all the best with your project!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘500 internal server error but request message is successful and no email’ is closed to new replies.