• Hi,

    we installed on three local systems three wordpress installations for our three sites. On the table wp_options we set the properties siteurl and home to our url, in this case https://www.orma-solutions.it

    For some hours anything is working fine.

    After while then we get an 500 status error on our sites and in the “httpd” log and “debug.log” we see this error

    PHP Fatal error:  Call to undefined function wp_validate_redirect() in /var/www/html/wp-includes/http.php on line 590

    In this case, the site is not available and also not the wp-admin but phpmyadmin is still available, so it could not be an network or webserver error.

    By pure coincidence we found a temporary solutions, if the error happens, we log in in phpmyadmin and change siturl and home to our local IP address http:/XXX.XXX.XXX.XXX and save it, after that we rechange the urls to the real url https://www.orma-soltuions.it and the site works for some hours, after which the same error.

    Has someone an idea?

    thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    It’s most likely due to a plugin. Disable your plugins , then enable them one at a time to catch the likely culprit.

    All the best!

    Thread Starter mburger

    (@mburger)

    Okay

    I will try but it could be a bit tricky, there are about 42 plugins activated, so which one is it and honestly which one can I deactivate, we are in production so it could be very difficult to find it out.
    Also I have to wait several hours before it errors happens. So on 42 plugins it could take days and days.

    Can I not log the error in a better way?

    There is no magic bullet in these situations. This is just basic troubleshooting – a process of elimination deliberately designed to locate the root cause as quickly as possible by first removing the most obvious and common culprits via a series of (often) temporary steps.

    Your theme & plugin settings are saved in your database and should be retained for future use.

    Thread Starter mburger

    (@mburger)

    We tried saturday to create wp-admin/php.ini and
    paste this code in memory=64MB.

    With increasing the memory for php the sites for now works two days without error.

    What do you think?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘500 after a while with error Call to undefined function wp_validate_redirect()’ is closed to new replies.