I’m trying to upgrade to 1.1.1. I downloaded and installed a fresh copy of Yii 1.1.1. Created a fresh web app. Configured the main.php to connect to my MySQL database.
When I tried to run the shell, to build and model and crud classes I kept getting nothing but a bunch of html in the command line. It took me some time to figure out that yiic was failing because of a PHP warning, which was not showing up in the log, and just buried in the garbled output of the CL:
I’m not clear why a PHP warning forces yiic to completely fail but it does. The fix for me was to put the line:
in my php.ini, then stopped and restarted apache and it worked find. Gotta make sure you get the correct ini file if you’ve got more than one. Then I also put it in my main.php just in case the live server doesn’t have it and it causes fits later on.
As the warning message says you can try the date_default_timezone_set() function and in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.