Making the Interakt products compatible with PHP5.3

Any tips and tricks that has to with the interakt extensions that doesn't fit into one of the other categories
User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Making the Interakt products compatible with PHP5.3

Post by Fred » 2010-05-05 15:22

Just realise that php 5.3 requires you to set the default time-zone.

The easiest way is to simply add the following time in your php.ini file
date.timezone="Europe/London"

greenman
Posts: 4
Joined: 2011-06-09 20:25

Re: Making the Interakt products compatible with PHP5.3

Post by greenman » 2011-06-09 20:27

Big time thanks for posting this fix.

david

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

Re: Making the Interakt products compatible with PHP5.3

Post by Fred » 2011-06-10 10:33

You are welcome David,

I have another tip for people upgrading to php 5.3 and having issues with the date() function.

Instead of adding a local php.ini file for each website and in the process "maybe" missing something important add the following lines of code as the last lines in your database connection file.

Code: Select all

// Force PHP 5.3.0+ to take time zone information from OS
if (version_compare(phpversion(), '5.3.0', '>='))
{
   $date_now =  @date_default_timezone_set(date_default_timezone_get());
}
It does what it says on the tin and your global php.ini will still be functioning.

walexblom
Posts: 2
Joined: 2011-08-20 22:16

Re: Making the Interakt products compatible with PHP5.3

Post by walexblom » 2011-08-21 10:20

Guys, I have a big problem, my host just upgraded to PHP 5.3.x and the error on my site is:
Warning: Parameter 2 to Trigger_Default_FormValidation() expected to be a reference, value given in /home/test/public_html/test/includes/tng/tNG.class.php on line 217

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

Re: Making the Interakt products compatible with PHP5.3

Post by Fred » 2011-08-25 21:28

What does your line 217 look like?

walexblom
Posts: 2
Joined: 2011-08-20 22:16

Re: Making the Interakt products compatible with PHP5.3

Post by walexblom » 2011-08-29 09:11

I got it fixed, thanks

kingdomc
Posts: 1
Joined: 2012-03-03 00:40

Re: Making the Interakt products compatible with PHP5.3

Post by kingdomc » 2012-03-03 00:45

walexblom how did you resolve the problem? I'm having the same issue. Please help.
Thanks.

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

Re: Making the Interakt products compatible with PHP5.3

Post by Fred » 2012-03-03 19:57

If you going for php 5.3 you might want to read this article on the date() function as well.
http://www.interaktonline.info/article/ ... ot....html

InfoFriendly
Posts: 1
Joined: 2012-04-21 15:46

Re: Making the Interakt products compatible with PHP5.3

Post by InfoFriendly » 2012-04-21 15:53

Hi All,

I am a little confused with the patch that has been created.

1. php 5.3 compatibility patches for KX Kollection - Pro Edition - Is the download meant to be used for ADDT too?

2. Is there another download which I should use just for ADDT? or again do I just use the patch already created for php 5.3 compatibility patches for KX Kollection - Pro Edition?

Sorry I just want to be sure that the files in the patch will work for both ADDT and KX Kollection.

Cheers,
Joe

:D

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

Re: Making the Interakt products compatible with PHP5.3

Post by Fred » 2012-04-23 17:54

Hi Joe,
There is a download for ADDT here http://www.interaktonline.info/files/47 ... patch.html

Note: I haven't used it myself as I do not have ADDT.

Best practice would be to make a backup of your includes folder, upload the patched files and see if it works.

Post Reply