Fixing silverstripe warnings during install

Silverstripe magic_quotes asp_tags warnings screenshot

Question:

I get warnings about asp_tags and magic_quotes during my install of silverstripe.

Answer:

You need to edit your php.ini and set the asp_tags and magic_quotes options to off.

However be aware that there is the potential to break your other scripts if your scripts depend on those options. You should change them and then test your other scripts. If anything breaks, you’ll need to leave them set to on or set up a separate php configuration for each part of your site.

Best regards,

Fixing Silverlight install error : date.timezone set and valid

Silverlight date.timezone Error screenshot

Question:

I get the an error when installing Silverlight regarding date.timezone. How can I fix this?

Answer:

With newer versions of php (PHP 5.3.0 and above), the date.timezone must be explicitly set. You can fix this by going into your etc/php.ini directory (create if does not exist) and add the line for date.timezone. An example is:

date.timezone = 'America/New_York'

Be certain to only use timezone’s listed at:

http://www.php.net/manual/en/timezones.php

Timezones like ‘US/Eastern’ no longer work.

It can be very frustrating because php will not complain if you use ‘US/Eastern’ and phpinfo() will show the value as set but Silverlight will not work with those settings. ‘US/Eastern’ and others are only included in php for backwards compatibility.