I am using ninja firewall on several WP sites, my hoster had me have the main site on www and subdomains in their own folders.
I have the site offline problem with mautic on a subdomain : it tells me
System administrators, check server logs for errors.
[18-Dec-2016 17:18:14 Europe/Berlin] PHP Notice: Constant PASSWORD_BCRYPT already defined in /home/myself/public_html/mysite.com/membre/update_pass.php on line 11
[18-Dec-2016 17:18:14 Europe/Berlin] PHP Notice: Constant PASSWORD_DEFAULT already defined in /home/myself/public_html/mysite.com/membre/update_pass.php on line 12
[18-Dec-2016 17:18:42 Europe/Berlin] PHP Warning: Class __PHP_Incomplete_Class has no unserializer in /home/myself/public_html/wp-content/plugins/ninjafirewall/lib/firewall.php on line 454
[18-Dec-2016 16:18:42 UTC] PHP Fatal error: MauticUserBundleControllerSecurityController::loginAction(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "SymfonyComponentSecurityCoreExceptionSessionUnavailableException" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/myself/public_html/mysite.com/membre/app/bundles/UserBundle/Controller/SecurityController.php on line 95
ninjafirewall dev told me :
[quote]Line 454 is a call to the ‘session_start()’ PHP function. Maybe your application is attempting to start a session without checking if there is one that was started already? In that case, you would need to whitelist the folder where that application is installed[/quote]
I tried several folders but didn’t solve the issue.
I even tried to de-activate ninjafirewall, but the issue stayed.
I’ve had the issue with
Mautic version 2.2.1 - 2.3.0 - 2.4.0
PHP version 7
Also opened an ussue on github : https://github.com/mautic/mautic/issues/3002 but got no answer
Any hint on how to solve ?