Page 2 of 3

Re: Making the Interakt products compatible with PHP5.3

Posted: 2010-05-05 15:22
by Fred
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"

Re: Making the Interakt products compatible with PHP5.3

Posted: 2011-06-09 20:27
by greenman
Big time thanks for posting this fix.

david

Re: Making the Interakt products compatible with PHP5.3

Posted: 2011-06-10 10:33
by Fred
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.

Re: Making the Interakt products compatible with PHP5.3

Posted: 2011-08-21 10:20
by walexblom
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

Re: Making the Interakt products compatible with PHP5.3

Posted: 2011-08-25 21:28
by Fred
What does your line 217 look like?

Re: Making the Interakt products compatible with PHP5.3

Posted: 2011-08-29 09:11
by walexblom
I got it fixed, thanks

Re: Making the Interakt products compatible with PHP5.3

Posted: 2012-03-03 00:45
by kingdomc
walexblom how did you resolve the problem? I'm having the same issue. Please help.
Thanks.

Re: Making the Interakt products compatible with PHP5.3

Posted: 2012-03-03 19:57
by Fred
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

Re: Making the Interakt products compatible with PHP5.3

Posted: 2012-04-21 15:53
by InfoFriendly
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

Re: Making the Interakt products compatible with PHP5.3

Posted: 2012-04-23 17:54
by Fred
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.