Page 1 of 1
Fix PHP Notices on Visopsys Forum
Posted: Sun Oct 27, 2013 9:56 am
by fosforito
Hello Andy,
To fix that issue with the errors on top of the index page of the forum, you only need to add following code to /forums/index.php:
Code: Select all
<?php
date_default_timezone_set("America/Los_Angeles");
You can change the default timezone to UTC or whatever you like.
Best regards,
Jens W.
Re: Fix PHP Notices on Visopsys Forum
Posted: Sun Oct 27, 2013 10:07 am
by fosforito
On /forums/viewtopic.php the same thing.
I think, it is better to add the code directly to the config file of the forum.
Do you have an own server? Then you can set the default timezone in php.ini with "date.timezone"
Open php.ini
sudo vi /etc/php5/apache2/php.ini
And search
[Date]
; Defines the default timezone used by the date functions.
;
http://php.net/date.timezone
date.timezone = "Europe/Amsterdam"
Now save and close and restart your apache.
/etc/init.d/apache2 restart
Re: Fix PHP Notices on Visopsys Forum
Posted: Tue Oct 29, 2013 12:55 am
by andymc
Thanks again mate. I did put a timezone setting into an auto-generated, vhost-specific php.ini file which seems to have solved it (for now). Putting it into the main /etc/php.ini didn't seem to do the trick.
Re: Fix PHP Notices on Visopsys Forum
Posted: Tue Oct 29, 2013 9:07 am
by fosforito
Great!
Re: Fix PHP Notices on Visopsys Forum
Posted: Fri Jan 31, 2014 5:08 am
by ap0r
A bit off topic, but shouldnt we have a button to return to the homepage from the forum?
Re: Fix PHP Notices on Visopsys Forum
Posted: Sat Feb 01, 2014 12:19 pm
by fosforito
It would be useful. My "Button" to the Visopsys Homepage is a Bookmark in my Browser