• Resolved Dennis Bareis

    (@dbareis)


    I’m getting a lot of these in the PHP log:

    27-Aug-2024 08:14:30 Australia/Melbourne] PHP Warning: session_start(): open(/opt/alt/php83/var/lib/php/session/sess_41ua66kt3iga5pjl0ob8kltv0r, O_RDWR) failed: No such file or directory (2) in /home/wcipporg/public_html/wp-content/plugins/ninjafirewall/lib/utils.php on line 130
    [27-Aug-2024 08:14:30 Australia/Melbourne] PHP Warning: session_start(): Failed to read session data: files (path: /opt/alt/php83/var/lib/php/session) in /home/wcipporg/public_html/wp-content/plugins/ninjafirewall/lib/utils.php on line 130

    In the dashboard it says:

    User session: It seems that the user session set by NinjaFirewall was not found by the firewall script.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Can you make sure that PHP can access (read/write) the /opt/alt/php83/var/lib/php/session/ folder ? It seems it can’t access it, which would mean that’s a permissions issue. Did you update PHP lately?

    • This reply was modified 2 months, 4 weeks ago by nintechnet.
    Thread Starter Dennis Bareis

    (@dbareis)

    Given the name “/opt” I looked in the root directory and it is not there (according to cpanel’s file manager). I have not recently updated PHP and I am on version 8.3 and the latest WP version.

    The site is hosted on a shared server.

    • This reply was modified 2 months, 3 weeks ago by Dennis Bareis.
    Plugin Author nintechnet

    (@nintechnet)

    The /opt folder is available in all Linux distributions, but you need to be root, the admin, to access it. As that is a shared server, I recommend you contact your host and show them the error message and tell them that it happens when a PHP script calls session_start().

    Thread Starter Dennis Bareis

    (@dbareis)

    Support changed my CPANEL PHP value for “session.save_path” to “/tmp” but the same message and path is still being logged.

    Plugin Author nintechnet

    (@nintechnet)

    It seems it is not fixed yet, you’d need to let them know.
    In the meantime, try to log out of WordPress and log in back again, but I don’t think that will solve the problem.

    Thread Starter Dennis Bareis

    (@dbareis)

    Logging off/on disabling/re-enabling plugin didn’t work. PHPINFO shows it unchanged so I have reported that to them.

    Thread Starter Dennis Bareis

    (@dbareis)

    Looks like we needed to set the setting in “.htaccess”, they are investigating why the cpanel change doesn’t work. Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.