Making the Interakt products compatible with PHP5.3
Re: Making the Interakt products compatible with PHP5.3
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"
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
Big time thanks for posting this fix.
david
david
Re: Making the Interakt products compatible with PHP5.3
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.
It does what it says on the tin and your global php.ini will still be functioning.
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());
}
Re: Making the Interakt products compatible with PHP5.3
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
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
What does your line 217 look like?
Re: Making the Interakt products compatible with PHP5.3
I got it fixed, thanks
Re: Making the Interakt products compatible with PHP5.3
walexblom how did you resolve the problem? I'm having the same issue. Please help.
Thanks.
Thanks.
Re: Making the Interakt products compatible with PHP5.3
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
http://www.interaktonline.info/article/ ... ot....html
-
- Posts: 1
- Joined: 2012-04-21 15:46
Re: Making the Interakt products compatible with PHP5.3
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
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
Re: Making the Interakt products compatible with PHP5.3
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.
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.