PHP 5.4 onwards
PHP 5.4 onwards
Do we have any patches for newer PHP versions?
I've just discovered this morning after a server upgrade from 5.3 to 5.4 that Send E-mail To Recipients From Recordset now throws up the following errors
Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/KT_Email.class.php on line 229
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/Pear/Mail.php on line 136
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/Pear/Mail/mail.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /includes/common/lib/email/KT_Email.class.php:229) in /home/nixtev/public_html/includes/common/KT_functions.inc.php on line 464
Anyone have any workarounds for this please or is it time to dump it and find something else that works (if so, what?)
I've just discovered this morning after a server upgrade from 5.3 to 5.4 that Send E-mail To Recipients From Recordset now throws up the following errors
Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/KT_Email.class.php on line 229
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/Pear/Mail.php on line 136
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /includes/common/lib/email/Pear/Mail/mail.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /includes/common/lib/email/KT_Email.class.php:229) in /home/nixtev/public_html/includes/common/KT_functions.inc.php on line 464
Anyone have any workarounds for this please or is it time to dump it and find something else that works (if so, what?)
Re: PHP 5.4 onwards
add the following to your db connect file or any other file that is common across the site.
Code: Select all
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
Re: PHP 5.4 onwards
I have updated a site that where ADDT was working correctly (PHP 3.3.4) to PHP 5.4 and found the login page now does not work. The correct login now fails with this message:
PHP Warning: Unknown: open(/var/lib/php/session/sess_1fsqs5di7668gq9qu56198j5q6, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
The session.save_path is correct and has the correct permissions. The session.save_path is also correct in the php.ini file.
Does anybody know how to fix this problem? Thanks.
Rayne
PHP Warning: Unknown: open(/var/lib/php/session/sess_1fsqs5di7668gq9qu56198j5q6, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
The session.save_path is correct and has the correct permissions. The session.save_path is also correct in the php.ini file.
Does anybody know how to fix this problem? Thanks.
Rayne
Re: PHP 5.4 onwards
Ryan,
Did a quick google search on your error(Permission denied (13)) and found this.
Might point you in the right direction.
http://stackoverflow.com/questions/6821 ... sion-start
Did a quick google search on your error(Permission denied (13)) and found this.
Might point you in the right direction.
http://stackoverflow.com/questions/6821 ... sion-start
Re: PHP 5.4 onwards
Thanks for the reply. My permissions seem to be correct and all the paths appear to be correct. I am also receiving this error when submitting a form:
Error:
Internal error.
Developer Details:
tNG_fields.getFakeRecordset:
SQL error: Error creating fake recordset:
SQL:
SELECT '' AS kt_login_user, '' AS kt_login_password (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
tNG_login.executeTransaction
STARTER.Trigger_Default_Starter
tNG_login.getRecordset
tNG_login.getLocalRecordset
tNG_login.getFakeRecordset*
There is definitely something different about how PHP 5 .4 handles tmp files. I will continue to work on this and will post back if I find the answer.
Rayne
Error:
Internal error.
Developer Details:
tNG_fields.getFakeRecordset:
SQL error: Error creating fake recordset:
SQL:
SELECT '' AS kt_login_user, '' AS kt_login_password (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
tNG_login.executeTransaction
STARTER.Trigger_Default_Starter
tNG_login.getRecordset
tNG_login.getLocalRecordset
tNG_login.getFakeRecordset*
There is definitely something different about how PHP 5 .4 handles tmp files. I will continue to work on this and will post back if I find the answer.
Rayne
Re: PHP 5.4 onwards
Ryan,
I had an interakt site running on 5.4 as a test and had to update a couple of files, minor changes. Can't remember what they where.
In fact I am busy updating one of my boxes with "ntPHPselector" to be able to test later php versions so if you want to wait a while I will see what files it is.
To be honest with you I can't remember the issue you describe. Sure your host can't help you out with this one?
I had an interakt site running on 5.4 as a test and had to update a couple of files, minor changes. Can't remember what they where.
In fact I am busy updating one of my boxes with "ntPHPselector" to be able to test later php versions so if you want to wait a while I will see what files it is.
To be honest with you I can't remember the issue you describe. Sure your host can't help you out with this one?
Re: PHP 5.4 onwards
OK, thanks! I host my sites on a server that I maintain. I had to upgrade that server to PHP 5.4 to install forum software.
I am also going to look at this again this weekend and see if I can figure it out.
Thanks for keeping in touch about this issue!
Rayne
I am also going to look at this again this weekend and see if I can figure it out.
Thanks for keeping in touch about this issue!
Rayne
Re: PHP 5.4 onwards
Silly me, it was a permission problem. When I installed PHP 5.4, /var/lib/php/session was changed to 755. Changing it to 733 fixed most issues I was having.
Login, dynamic lists, dynamic forms all work. The only problem I have found so far is that deleting a record from a dynamic list does not seem to work, so still working on that.
Rayne
Login, dynamic lists, dynamic forms all work. The only problem I have found so far is that deleting a record from a dynamic list does not seem to work, so still working on that.
Rayne
Re: PHP 5.4 onwards
Ryan,
If you maintain your own box you could try and use this to enable multiple php versions on your box.
Works a charm.
https://www.nixtree.com/ntphp.php
If you maintain your own box you could try and use this to enable multiple php versions on your box.
Works a charm.
https://www.nixtree.com/ntphp.php