Forum

Home » support » Installation and setup » Exception in Symphony
Exception in Symphony [message #326] Fri, 11 November 2005 23:57 Go to next message
shevek  is currently offline shevek
Messages: 3
Registered: November 2005
Junior Member
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]



Re: Exception in Symphony [message #334 is a reply to message #326 ] Sat, 12 November 2005 14:47 Go to previous messageGo to next message
fabien  is currently offline fabien
Messages: 482
Registered: October 2005
Faithful Member
Administrator
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.
Re: Exception in Symphony [message #338 is a reply to message #334 ] Sat, 12 November 2005 15:11 Go to previous message
shevek  is currently offline shevek
Messages: 3
Registered: November 2005
Junior Member
Thank you! I had thought that was the problem, but I was modifying the php.ini in /etc/php5/cli instead of the one that is in /etc/php5/apache2
Previous Topic:PEAR installation problem
Next Topic:cannot create .sql file from schema.xml
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software