Hello everybody:
Through PEAR I have installed Symfony. I was going through the steps of http://www.symfony-project.com/tutorial/my_first_project.htm ltutorial . I have created a new directory, and then I have executed the first two steps (init-project and init-app). Then I have modified httpd.conf from Apache 2 (I am in Ubuntu Breezy by the way) with these options
<VirtualHost *:80>
DocumentRoot "/var/www/agenda/web"
DirectoryIndex index.php
Alias /sf /var/www/symfony-0.4.1/data/symfony/web/sf
<Directory "/var/www/agenda/web">
AllowOverride All
</Directory>
</VirtualHost>
And then when I try to see if the web app works, what I get is this
Quote:
Warning: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function in /usr/share/php/symfony/symfony/config/sfCompileConfigHandler .class.php on line 112
Warning: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function in /usr/share/php/symfony/symfony/config/sfCompileConfigHandler .class.php on line 112
Warning: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function in /usr/share/php/symfony/symfony/config/sfCompileConfigHandler .class.php on line 112
[exception] sfInitializationException [message] Configuration file "/usr/share/php/data/symfony/config/php.yml" specifies that php.ini "magic_quotes_gpc" key must be set to "" [code] N/A [class] sfPhpConfigHandler [file] /usr/share/php/symfony/symfony/config/sfPhpConfigHandler.cla ss.php [line] 98 [symfony] v. 1.0.0-DEV (symfony-project.org) [PHP] v. 5.0.5-2ubuntu1 [stack trace] at sfConfigCache::execute() in [/usr/share/php/symfony/symfony/config/sfConfigCache.class.p hp:66] at sfConfigCache::callHandler() in [/usr/share/php/symfony/symfony/config/sfConfigCache.class.p hp:150] at sfCompileConfigHandler::checkConfig() in [/usr/share/php/symfony/symfony/config/sfCompileConfigHandle r.class.php:118] at sfCompileConfigHandler::preg_replace_callback() in [/usr/share/php/symfony/symfony/config/sfCompileConfigHandle r.class.php:95] at sfConfigCache::execute() in [/usr/share/php/symfony/symfony/config/sfConfigCache.class.p hp:66] at sfConfigCache::callHandler() in [/usr/share/php/symfony/symfony/config/sfConfigCache.class.p hp:150] at checkConfig() in [/usr/share/php/symfony/symfony/symfony.php:107] at require_once() in [/var/www/agenda/myapp/config/config.php:47] at require_once() in [/var/www/agenda/web/index.php:8]
this is because you have magic_quotes_gpc set to on and symfony expext it to be set to off. There are other post on the forum that explain the same issue.