| trouble with symfony propel-build-model [message #2795] |
Thu, 16 February 2006 12:41  |
enchR Messages: 37 Registered: February 2006 Location: Strasbourg (France) |
Member |
|
|
hello,
I'm new to Symfony framework and try to use it thru the askeet great example.
At Day 2 i got a trouble (i don't find any ansmwer in the forum)...
I'm on my laptop (win xp sp2)
Installation of WAMP is ok
PEAR install is :
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.1 stable
Benchmark 1.2.4 stable
Console_Getopt 1.2 stable
Console_Table 1.0.2 stable
DB 1.7.6 stable
Log 1.9.3 stable
PEAR 1.4.6 stable
PEAR_PackageFileManager 1.5.2 stable
PHPUnit2 2.3.4 stable
PHP_CompatInfo 1.0.0 stable
PhpDocumentor 1.3.0RC5 beta
VersionControl_SVN 0.3.0alpha1 alpha
XML_Beautifier 1.1 stable
XML_Parser 1.2.7 stable
XML_RPC 1.4.5 stable
XML_Tree 1.1 stable
XML_Util 1.1.1 stable
phing 2.1.1 stable
Symfony install is Ok
I created askeet project and can see the Congratulations in my browser.
Trouble is when i want to build de model.
I type : symfony propel-build-model
And i got thes errors :
>> file+ C:\devel\askeet\config\pro34.tmp
Buildfile: C:\wamp\php\PEAR\data\symfony\bin\build.xml
sf > build-om:
[phing] Calling Buildfile 'C:\wamp\php\pear\symfony\vendor\propel-generator\build.xml' with target 'om'
propel-project-builder > check-project-or-dir-set:
propel-project-builder > check-project-set:
propel-project-builder > set-project-dir:
propel-project-builder > check-buildprops-exists:
propel-project-builder > check-buildprops-for-propel-gen:
propel-project-builder > check-buildprops:
propel-project-builder > configure:
[echo] Loading project-specific props from C:\devel\askeet/config/pro34.tmp
propel-project-builder > om:
[phing] Calling Buildfile 'C:\wamp\php\pear\symfony\vendor\propel-generator\build-prop el.xml' with target 'om'
propel > check-run-only-on-schema-change:
propel > om-check:
propel > om:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating Peer-based Object Model for |
[echo] | YOUR Propel project! (NEW OM BUILDERS)! |
[echo] | |
[echo] +------------------------------------------+
[phingcall] Calling Buildfile 'C:\wamp\php\pear\symfony\vendor\propel-generator\build-prop el.xml' with target 'om-templa
te'
propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: model
[propel-om] Using template path: C:\wamp\php\PEAR\symfony\vendor\propel-generator\templates
[propel-om] Output directory: C:\devel\askeet\lib
[propel-om] Processing: schema.xml
PHP Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\wamp\php\PEAR\symfony\vendor
\propel-generator\classes\propel\engine\database\transform\X mlToAppData.php on line 101
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\wamp\php\PEAR\symfony\vendor\prop
el-generator\classes\propel\engine\database\transform\XmlToA ppData.php on line 101
PHP Fatal error: Call to undefined method domdocument::load() in C:\wamp\php\PEAR\symfony\vendor\propel-generator\class
es\propel\engine\database\transform\XmlToAppData.php on line 102
Fatal error: Call to undefined method domdocument::load() in C:\wamp\php\PEAR\symfony\vendor\propel-generator\classes\pr
opel\engine\database\transform\XmlToAppData.php on line 102
Anyone can help me pls ?
Regards
Chris
Christophe
enchR.com
|
|
|
|
|
| Re: trouble with symfony propel-build-model [message #4013 is a reply to message #2795 ] |
Fri, 17 March 2006 12:01   |
enchR Messages: 37 Registered: February 2006 Location: Strasbourg (France) |
Member |
|
|
Sorry but i don't have solution for wampp....
I replaced Wampp with Xampp and now all works fine...
Regards
Christophe
Christophe
enchR.com
|
|
|
| Re: trouble with symfony propel-build-model [message #4355 is a reply to message #2795 ] |
Tue, 28 March 2006 07:52   |
|
any other update on this? I'm having the same problem and am sick of running into these little things... *sigh*
two weeks at this framework and still havn't even gotten it setup.
|
|
|
|
| Re: trouble with symfony propel-build-model [message #4386 is a reply to message #2795 ] |
Tue, 28 March 2006 22:42   |
|
|
yea, also installed XAMPP, but I like WAMP better... XAMPP is giving me fits when I try to do any console stuff in mysql.
|
|
|
| Re: trouble with symfony propel-build-model [message #5826 is a reply to message #2795 ] |
Sat, 06 May 2006 02:23   |
KBZoNiX Messages: 2 Registered: May 2006 Location: Puerto Madryn, Argentina |
Junior Member |
|
|
I had the same problem. I commented the line
in php.ini and worked ok.
According to the php manual it shouldn't be included in php5, as it was replaced by the new DOM extension. The old DOM XML extension (php_domxml.dll) from PHP 4, has been moved to the PECL repository and is no longer bundled with PHP as of PHP 5.0.0.
more info on php.net:
http://www.php.net/manual/en/ref.dom.php DOM Functions
http://www.php.net/manual/en/ref.domxml.php DOM XML Functions
I also found this in PECL (http://pecl.php.net/package/domxml):
| Quote: | This extension allows you to operate on an XML document with the DOM API. It has been superseded by the DOM extension that ships with PHP 5.
Although it should be possible to use this old domxml extension with PHP 5, its use is highly discouraged, as there a very high potential for conflicts with the new dom extension.
If you are migrating from PHP 4 to PHP 5, the recommended best-practice is to port your domxml code to the much better dom code.
If you really must build domxml, you will need to obtain the sources from CVS and build them yourself.
See http://www.php.net/manual/en/install.pecl.php for instructions.
NOTE: if you're running PHP 4.x, the domxml is already part of the distribution.
|
[Updated on: Sat, 06 May 2006 02:29]
|
|
|
|