This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Exception in Symphony

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Exception in Symphony

by shevek » Sat Nov 12, 2005 12:57 am

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
Code: Select all
<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
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]

shevek
Junior Member
 
Posts: 3
Joined: Sat Nov 12, 2005 12:43 am

Re: Exception in Symphony

by fabien » Sat Nov 12, 2005 3:47 pm

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.
fabien
Faithful Member
 
Posts: 487
Joined: Sat Oct 22, 2005 9:01 am

Re: Exception in Symphony

by shevek » Sat Nov 12, 2005 4:11 pm

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
shevek
Junior Member
 
Posts: 3
Joined: Sat Nov 12, 2005 12:43 am