Page 1 of 1

Login and PHP 7.0

Posted: Wed Jul 22, 2020 10:31 pm
by mfirlotte
Hi Pablo...I was using PHP 5.5 and need to upgrade to PHP 7.0+. Initially, I had errors with SMTP/PHPMailer and the Login tool.

As you already noted in another post, the SMTP is a server-side issue. Good news is that I was fortunate to get that resolved this evening with the hosting service. So PHPMailer now works just fine under PHP 7.0.

Now I seem to still have an issue with the Login tool. It works just fine while am under PHP 5.5 but as soon as I change it on the hosting service to PHP 7.0, the login button no longer works or even redirect to the error page.

I set server side back to PHP 5.5 and it works again. Change it to PHP 7.0 and it doesn't work.

I'm confused. Any ideas?

Thanks.

Re: Login and PHP 7.0

Posted: Thu Jul 23, 2020 6:50 am
by Pablo
There are no known issues with PHP7. The tools have been extensively tested with this PHP version.
To be able to help you, I need to know the exact error message.
If you do not see an error on the page then make sure PHP error reporting on the server is enabled.

Re: Login and PHP 7.0

Posted: Thu Jul 23, 2020 10:29 am
by mfirlotte
OK...here's what's in the error file...

20200723T062407: www.firlottecreations.com/MF/login-test ... -page2.php
PHP Warning: session_start(): open(/var/php_sessions/sess_512789a1a7fb2d9932e5d449c84a5ec8, O_RDWR) failed: No such file or directory (2) in /hermes/bosnacweb01/bosnacweb01aa/b1395/nf.firlottecreations/public_html/firlottecreations.com/MF/login-test/logintest-page2.php on line 4

PHP Warning: session_start(): Failed to read session data: files (path: /var/php_sessions) in /hermes/bosnacweb01/bosnacweb01aa/b1395/nf.firlottecreations/public_html/firlottecreations.com/MF/login-test/logintest-page2.php on line

However...the file "logintest-page2.php" does exist there. And it works just fine under PHP 5.5???

Permissions are 0644

Re: Login and PHP 7.0

Posted: Thu Jul 23, 2020 11:20 am
by Pablo
This error seems to indicates that PHP sessions on the server are not correctly configured.

Re: Login and PHP 7.0

Posted: Thu Jul 23, 2020 6:04 pm
by mfirlotte
That was it Pablo. Hosting Service only sets Session when call to have it set up. All works as planned now.

Thanks.