• I am facing this error invalid argument supplied for each redirect.php 51
    how can i fix this error

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • @hafeezfrontend I can see the error you mentioned on the top of the page:

    Warning: Invalid argument supplied for foreach() in /home/customer/www/axcoreacademy.com/public_html/redirect.php on line 51

    The referenced file doesn’t appear to be a file that core WordPress would use. Does that filename seem familiar to you? A plugin or theme that references that file may be causing the warning to appear. Please attempt to disable all plugins and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    Unrelated to that specific issue, it’s generally best practice to suppress errors and warnings on production websites. To do so, open your wp-config.php file and make sure the following lines are added, which will hide those types of messages from appearing on your site (but will still be recorded in your log files).

    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);

    Good luck, and I hope one of these suggestions helps pinpoint the issue.

    • This reply was modified 2 years, 7 months ago by Ben Greeley.
    • This reply was modified 2 years, 7 months ago by Ben Greeley.
    Thread Starter hafeezfrontend

    (@hafeezfrontend)

    https://axcoreacademy.com/ please check incognito there is showing error i will clear cacheir it is remove after fue time appear again

    @hafeezfrontend It appears the error is gone when I add a parameter to the URL to view a previously-uncached version of the page: https://axcoreacademy.com/?cache_bust

    Once your site cache is cleared, it should be resolved moving forward. If not, be sure to go through the above steps for troubleshooting. If you still have issues after taking those steps, post detailed information about the issue and what you tried.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘invalid argument supplied for each redirect.php 51’ is closed to new replies.