• Hello,

    I noticed I have 3 critical issue warnings on wordpress. I have never gotten these before and do not how how to fix them.

    They are:
    1. An active PHP sessions was detected
    2. The Rest API encountered an error
    3. Your site is set to log errors to a potentially public file

    https://snipboard.io/Fo5Ngi.jpg

    Can anyone please help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • barnez

    (@pidengmor)

      For issue 1: disable all plugins and enable a stock WordPress theme (e.g. Twenty-Twenty). Then test. If the error resolves, enable the plugins and theme one by one, testing each time, until you find the troublesome theme/plugin. Then contact the plugin/theme author to report. Note that you can also use the health check plugin to troubleshoot this issue without affecting visitors to the front end of the website.
      For issue 3: in the wp.config.php file, located at the same level as the /wp-content/ directory, set WP_DEBUG to false: define( 'WP_DEBUG', false );. Note that you will need to use FTP or the control panel provided by the host (e.g. cPanel) to access this file.
    Kartik Shukla

    (@kartiks16)

    Hello Lori,

    It seems either some plugin is overwriting the functions or maybe if there is any custom development happened or some code file is edited it may have caused this issue.

    You may try to switch to the default theme and deactivate the plugins to see if that is causing the issue or else there may be a need to dig deeper at the code file.

    Let me know if this helps.

    Thank you!

    Thread Starter Lori Boone

    (@pleazo)

    Thank you for your help @pidengmor & @kartiks16

    Just a quick question about:

    For issue 3: in the?wp.config.php?file, located at the same level as the?/wp-content/?directory, set?WP_DEBUG?to?false:?define( ‘WP_DEBUG’, false );. Note that you will need to use FTP or the control panel provided by the host (e.g. cPanel) to access this file.

    * I already had the 1st one set to false. Must they all be set to false? https://snipboard.io/ZDRAxc.jpg

    barnez

    (@pidengmor)

    Great to see that you are making progress on those errors.

    You have 2 instances of define( 'WP_DEBUG', ___ );. One set to false (but commented out by // and so ignored) and one set to true. And also there are two additional debug rules set to true: 'WP_DEBUG_LOG' and 'SCRIPT_DEBUG'.

    First. delete the whole line //define (‘WP_DEBUG’, false );.

    Then set the following debug rules to false, so they are there ready for any future troubleshooting: 'WP_DEBUG_LOG', 'WP_DEBUG' and 'SCRIPT_DEBUG'.

    See here: https://snipboard.io/bRt8YE.jpg

    • This reply was modified 2 years ago by barnez. Reason: Fix typo
    • This reply was modified 2 years ago by barnez. Reason: Added link to image showing required changes
    Thread Starter Lori Boone

    (@pleazo)

    Perfect thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘3 critical issues on WP not sure how to fix’ is closed to new replies.