|propel:insert-sql doesn't work anymore since php 5.3 [message #84464]
||Thu, 27 August 2009 14:21
Registered: February 2009
Since I upgraded php from 5.2.9 to php 5.3, I have the following problem:
>> schema converting "/Users/Archaon/Proj...erver/config/schema.yml" to XML
>> schema putting /Users/Archaon/Projects...ver/config/generated-schema.xml
>> propel Running "insert-sql" phing task
Execution of target "insert-sql" failed for the following reason: /usr/local/bin/symfony/1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:275:1: [wrapped: SQLSTATE[HY000]  No such file or directory]
[phing] /usr/local/bin/symfony/1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:275:1: [wrapped: SQLSTATE[HY000]  No such file or directory]
Some problems occurred when executing the task:
build-propel.xml:275:1: [wrapped: SQLSTATE[HY000]  No such file or directory]
If the exception message is not clear enough, read the output of the task for more information
>> file- /Users/Archaon/Projects/Crisis ...ver/config/generated-schema.xml
I checked the version of the required modules : pdo, pdo_mysql, mysql, mysqli but they are alright.
I really don't know what to do...
[Updated on: Thu, 27 August 2009 14:25]
|Re: propel:insert-sql doesn't work anymore since php 5.3 [message #101919 is a reply to message #84464 ]
||Fri, 02 July 2010 17:39
Registered: July 2010
I ran into this issue running xampp on mac 10.6. My problem was that I was executing the wrong php binary.|
Mike$ php symfony propel:insert-sql
would call the php binary in /usr/bin/ not the one in
/Applications/xampp/xamppfiles/bin/ which is what I wanted in the first place. For the same reasons above, the php.ini file for the php installed in /usr/bin/ is lacking the correct settings.
Since I have absolutely no patience to edit the files when I am only learning on this mac, I use the php in xampp
Mike$ /Applications/xampp/xamppfiles/bin/php symfony propel:insert-sql
worked like a charm...
remember that anytime you run a php script from the command line, it will default to using /usr/bin/php, unless you disable or uninstall it.
Thanks for the suggestions
|Re: propel:insert-sql doesn't work anymore since php 5.3 [message #102322 is a reply to message #101919 ]
||Sun, 11 July 2010 16:16
Registered: April 2008
Hello Mike !|
Go in /usr/bin and rename
php to php_old
phpize to phpize_old
php-config to php-config_old
Then, make symbolic link... :
sudo ln -s /Applications/XAMPP/xamppfiles/bin/php-config php-config
sudo ln -s /Applications/XAMPP/xamppfiles/bin/php php
sudo ln -s /Applications/XAMPP/xamppfiles/bin/phpize phpize
And it's work