symfony
symfony forum
Home » support » General discussion » [resolved] Problem width propel-build-model (0.7.787)
[resolved] Problem width propel-build-model (0.7.787) [message #2599] Fri, 10 February 2006 19:21 Go to next message
lautarobonetto  is currently offline 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 Smile
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 Go to previous messageGo to next message
Ian  is currently offline 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 #2610 is a reply to message #2607 ] Sat, 11 February 2006 02:44 Go to previous messageGo to next message
lautarobonetto  is currently offline lautarobonetto
Messages: 10
Registered: February 2006
Location: Argentina - Rosario
Junior Member
Thank you very much.

If you use WAMPSERVER 1.6.0 (http://www.en.wampserver.com/) and then install PEAR and Symfony 0.6 this problem with DomDocument appears.

If you use Apache and PHP5.1.1 separately, they work well. And if you use XAMPP also he works well.
Re: Problem width propel-build-model (0.7.787) [message #3863 is a reply to message #2599 ] Mon, 13 March 2006 20:35 Go to previous messageGo to next message
saschas  is currently offline saschas
Messages: 17
Registered: March 2006
Location: Belgium
Junior Member
Hi,

I'm using an Apache2/PHP5.0.4 System on a Mandrake distro.
I downloaded the sandbox and unpacked it into my ~usr directory.
the test went fine, but with "my first project" I get the same error,
[propel-om] Processing: schema.xml
PHP Warning:  domdocument() expects parameter 2 to be long, string given in
/public_html/testing/lib/symfony/vendor/propel-generator/classes/propel/engine/database/transform/XmlToAppData.php 
on line 101
PHP Fatal error:  Call to undefined method domdocument::load() in
/public_html/testing/lib/symfony/vendor/propel-generator/classes/propel/engine/database/transform/XmlToAppData.php 
on line 102


although xml is active. Rolling Eyes

please help.

greetings from belgium,

sascha
propel-build-model solution on *nix [message #3889 is a reply to message #2599 ] Tue, 14 March 2006 09:20 Go to previous messageGo to next message
saschas  is currently offline saschas
Messages: 17
Registered: March 2006
Location: Belgium
Junior Member
OK,

found the solution.
Propel requires php-xsl and optionally the PEAR Log package, so don't install domxml into your PHP, this blocks php-xsl.
After this the build went fine with my PHP5.0.4

greetings from belgium,

sascha
Re: Problem width propel-build-model (0.7.787) [message #4011 is a reply to message #2610 ] Fri, 17 March 2006 11:59 Go to previous messageGo to next message
knubbe  is currently offline knubbe
Messages: 2
Registered: March 2006
Location: Stockholm
Junior Member
lautarobonetto wrote on Sat, 11 February 2006 02:44


If you use WAMPSERVER 1.6.0 (http://www.en.wampserver.com/) and then install PEAR and Symfony 0.6 this problem with DomDocument appears.



Is there a work-around for this?

Cheers.
Re: [resolved] Problem width propel-build-model (0.7.787) [message #4023 is a reply to message #2599 ] Fri, 17 March 2006 12:23 Go to previous messageGo to next message
saschas  is currently offline saschas
Messages: 17
Registered: March 2006
Location: Belgium
Junior Member
As Lampper I only can say what I read for *dows. There seems to be a problem with the XSL module compiled in Wampp.

Solution:
http://www.symfony-project.com/forum/index.php/t/714/
enchR wrote on Fri, 17 March 2006 12:01

Sorry but i don't have solution for wampp....

I replaced Wampp with Xampp and now all works fine...

Regards

Christophe


or use a GNU/Linux Laughing

greetings from belgium,

sascha
Re: Problem width propel-build-model (0.7.787) [message #5041 is a reply to message #4011 ] Sun, 16 April 2006 20:23 Go to previous messageGo to next message
zyang  is currently offline zyang
Messages: 12
Registered: April 2006
Junior Member
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?
Re: Problem width propel-build-model (0.7.787) [message #5825 is a reply to message #5041 ] Sat, 06 May 2006 02:15 Go to previous message
KBZoNiX  is currently offline 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
extension=php_domxml.dll

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]

Previous Topic:Strange. propel-generate-crud failing without an error?
Next Topic:[resolved] propel join
Goto Forum:
  

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