| [resolved] Problem width propel-build-model (0.7.787) [message #2599] |
Fri, 10 February 2006 19:21  |
lautarobonetto Messages: 10 Registered: February 2006 Location: Argentina - Rosario |
Junior Member |
|
|
Hi
After upgrading to 0.6, when I execute "symfony propel-build-model", it shows:
C:\Proyectos\PHP\Cina\Source>symfony propel-build-model
>> file+ C:\Proyectos\PHP\Cina\Source\config\pro37.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:\Proyectos\PHP\Cina\Source/config/pro37.tmp
propel-project-builder > om:
[phing] Calling Buildfile 'C:\wamp\php\pear\symfony\vendor\propel-generator\build-propel.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-propel.xml' with target 'om-template'
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:\Proyectos\PHP\Cina\Source\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\XmlToAppData.php on line 101
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\XmlToAppData.php on line 101
PHP Fatal error: Call to undefined method domdocument::load() in C:\wamp\php\PEAR\symfony\vendor\propel-generator\classes\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\propel\engine\database\transform\XmlToAppData.php on line 102
Any idea? Help me please 
I need the "domdocument" class?
Lautaro.
[Updated on: Tue, 14 March 2006 10:19] by Moderator
|
|
|
| Re: Problem width propel-build-model (0.7.787) [message #2607 is a reply to message #2599 ] |
Fri, 10 February 2006 21:39   |
Ian Messages: 383 Registered: October 2005 Location: Boulder, CO (USA) |
Faithful Member |
|
|
You need to install php-xml for your distro of PHP.
Ian
█ Join us on IRC for LIVE support!
█ Report bugs here.
|
|
|
|
|
|
|
|
|
| Re: Problem width propel-build-model (0.7.787) [message #5825 is a reply to message #5041 ] |
Sat, 06 May 2006 02:15  |
KBZoNiX Messages: 2 Registered: May 2006 Location: Puerto Madryn, Argentina |
Junior Member |
|
|
| Quote: | go to c:\wamp\php\ext and rename php_domxml.dll to php.domxml.dll.bk. restart the service.
does anyone know if there is a more elegant way than removing the dll?
|
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.phpDOM 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:32]
|
|
|