• I have upgraded my php version from 5.6 to 7.3 , after fixing the deprecated functions and test running the website i am stuck with an issue . I have a plugin from where i am getting a parking fee calculated and returned on the home page , i am sending the data through ajax and updating the form . For some reason the php 5.6 version was not showing me any error but when i update it to 7.3 , the ajax call always shows a http 500 error and i cant access the page where the script is written . This is the page that i am trying to send the data to using ajax :- https://textifly.co/thecarportandspa.com.au/wp-content/themes/car-port-spa/show_calculation.php
    This only happens when i update the php version . Can anyone help me with this issue ?

    • This topic was modified 4 years, 5 months ago by swarnabho.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @swarnabho ,

    Have you turned on the DEBUG mode and tried?

    I think it’s a version conflict with latest PhP.

    If not please perform the steps below:

    1. Open the wp-config.php file in your WP directory
    2. Please check if you find a line as shown below:
      
      define('WP_DEBUG', false);
      
    3. If yes, then just change ‘false’ to ‘true’ and if you don’t see that line then add a line at the bottom of the file but set the value to ‘true’.
    4. Now run the functionality that you are getting 500 with. Now you will see the exact error due to which you are getting 500.
    Thread Starter swarnabho

    (@swarnabho)

    Hello @ketanvyawahare I have enabled the debug mode and tried the same functionality , it shows this error on the console https://textifly.co/thecarportandspa.com.au/wp-content/themes/car-port-spa/show_calculation.php 500….

    Hi @swarnabho ,

    I am sorry but I am just seeing the 500 page and nothing on the console.

    I would request you to see the error_logs in your apache or nginx whichever you are using.

    I would recommend to copy your site on local server so it will be easier for you to access all the error logs files etc.

    Let me know your thoughts.

    Thread Starter swarnabho

    (@swarnabho)

    I think i will transfer it to my local apache server and check the error logs so that i can understand whats the exact error , i will let you know after i get the error log .

    Thread Starter swarnabho

    (@swarnabho)

    @ketanvyawahare I have tried the same on my local apache server , the issue is my ajax cant find the page https://textifly.co/thecarportandspa.com.au/wp-content/themes/car-port-spa/show_calculation.php . I guess there is some issue with the htaccess file which doesnt allow the file to be accessed . But its working fine when the php version is 5.6 , the script page throws a http 500 error when i open it on the browser itself after the update . Can you suggest any fix for this ?

    • This reply was modified 4 years, 5 months ago by swarnabho.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTTP 500 error after php update’ is closed to new replies.