• Hello

    A few years ago I wrote a wp plugin using Ajax. It worked well on my wordpress site. I read that you need to change the php version on the site to the latest one – php8.1. I recently noticed that this plugin is throwing a 500 error (in /wp-admin/admin-ajax.php).
    I changed the version of php to 7.4 and there is no error.
    How to find out what has changed in version php8.1 compared to the previous version and how to change the code so that you can install the latest version of php on the site and not have an error?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Take a look at the error log of your project. There you should be able to see what the specific error is in your case. The changes in the PHP versions are so big that it does not make sense to work through them completely. Here you can find a starting point: https://www.php.net/manual/en/migration80.php – but rather investigate the concrete problem with you on the basis of the log file.

    Thread Starter vrpr

    (@vrpr)

    Thanks for your answer, but where i can find error log?

    I think, I have found

    • This reply was modified 2 years, 1 month ago by vrpr.
    • This reply was modified 2 years, 1 month ago by vrpr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Got error 500 if php is php 8.1’ is closed to new replies.