PHP 5.4 onwards

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
Nixtev
Posts: 9
Joined: 2012-09-01 22:28
Location: NE England, UK

PHP 5.4 onwards

Post by Nixtev » 2014-09-12 12:44

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?)

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: PHP 5.4 onwards

Post by Fred » 2014-09-14 09:23

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);

rayne
Posts: 4
Joined: 2014-11-21 18:58

Re: PHP 5.4 onwards

Post by rayne » 2014-11-21 19:11

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: PHP 5.4 onwards

Post by Fred » 2014-11-21 19:59

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

rayne
Posts: 4
Joined: 2014-11-21 18:58

Re: PHP 5.4 onwards

Post by rayne » 2014-11-21 22:12

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: PHP 5.4 onwards

Post by Fred » 2014-11-22 12:03

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?

rayne
Posts: 4
Joined: 2014-11-21 18:58

Re: PHP 5.4 onwards

Post by rayne » 2014-11-22 18:41

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

rayne
Posts: 4
Joined: 2014-11-21 18:58

Re: PHP 5.4 onwards

Post by rayne » 2014-11-23 00:35

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: PHP 5.4 onwards

Post by Fred » 2014-11-23 11:39

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

Post Reply