symfony
symfony forum
Home » symfony projects » askeet » trouble with symfony propel-build-model
trouble with symfony propel-build-model [message #2795] Thu, 16 February 2006 12:41 Go to next message
enchR  is currently offline 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 #3281 is a reply to message #2795 ] Wed, 01 March 2006 15:36 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1636
Registered: October 2005
Faithful Member
Try to update to the latest beta release of symfony and please report if you still have the problem.
Re: trouble with symfony propel-build-model [message #4010 is a reply to message #3281 ] Fri, 17 March 2006 11:54 Go to previous messageGo to next message
knubbe  is currently offline knubbe
Messages: 2
Registered: March 2006
Location: Stockholm
Junior Member
francois wrote on Wed, 01 March 2006 15:36

Try to update to the latest beta release of symfony and please report if you still have the problem.


I have exactly the same problem (and the same configuration; wamp + pear install of symfony). I upgraded to the latest beta, but i still get the same error.

C:\docroot\frameworks\symfony\sf_sandbox>symfony propel-build-model
>> file+     C:\docroot\frameworks\symfony\sf_sandbox\config\pro44.tmp
Buildfile: C:\docroot\frameworks\symfony\sf_sandbox\data\symfony\bin\build.xml

sf > build-om:
    [phing] Calling Buildfile 'C:\docroot\frameworks\symfony\sf_sandbox\lib\symf
ony\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:\docroot\frameworks\symfony\sf
_sandbox/config/pro44.tmp

propel-project-builder > om:
    [phing] Calling Buildfile 'C:\docroot\frameworks\symfony\sf_sandbox\lib\symf
ony\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:\docroot\frameworks\symfony\sf_sandbox\lib\symf
ony\vendor\propel-generator\build-propel.xml' with target 'om-template'

propel > om-template:
[propel-om] Target database type: sqlite
[propel-om] Target package: model
[propel-om] Using template path: C:\docroot\frameworks\symfony\sf_sandbox\lib\sy
mfony\vendor\propel-generator\templates
[propel-om] Output directory: C:\docroot\frameworks\symfony\sf_sandbox\lib
[propel-om] Processing: schema.xml
PHP Warning:  domdocument::domdocument() expects parameter 2 to be long, string
given in C:\docroot\frameworks\symfony\sf_sandbox\lib\symfony\vendor\propel-gene
rator\classes\propel\engine\database\transform\XmlToAppData.php on line 101

Warning: domdocument::domdocument() expects parameter 2 to be long, string given
 in C:\docroot\frameworks\symfony\sf_sandbox\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 C:\docroot\fra
meworks\symfony\sf_sandbox\lib\symfony\vendor\propel-generator\classes\propel\en
gine\database\transform\XmlToAppData.php on line 102

Fatal error: Call to undefined method domdocument::load() in C:\docroot\framewor
ks\symfony\sf_sandbox\lib\symfony\vendor\propel-generator\classes\propel\engine\
database\transform\XmlToAppData.php on line 102
Re: trouble with symfony propel-build-model [message #4013 is a reply to message #2795 ] Fri, 17 March 2006 12:01 Go to previous messageGo to next message
enchR  is currently offline 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 Go to previous messageGo to next message
wjessup  is currently offline wjessup
Messages: 37
Registered: March 2006
Location: LA
Member

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 #4357 is a reply to message #4355 ] Tue, 28 March 2006 08:56 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1636
Registered: October 2005
Faithful Member
Did you read this

http://www.symfony-project.com/forum/index.php/mv/msg/651/25 99/

It seems to solve your problem

[Updated on: Tue, 28 March 2006 09:28]

Re: trouble with symfony propel-build-model [message #4386 is a reply to message #2795 ] Tue, 28 March 2006 22:42 Go to previous messageGo to next message
wjessup  is currently offline wjessup
Messages: 37
Registered: March 2006
Location: LA
Member

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 Go to previous messageGo to next message
KBZoNiX  is currently offline KBZoNiX
Messages: 2
Registered: May 2006
Location: Puerto Madryn, Argentina
Junior Member
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.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]

Re: trouble with symfony propel-build-model [message #36703 is a reply to message #2795 ] Wed, 03 October 2007 11:08 Go to previous message
hpavon  is currently offline hpavon
Messages: 2
Registered: October 2007
Junior Member
Xampp users:

Notice that php config is being taken from ...php/php.ini, not from apache/php.ini
It took me a while to realize I was touching the wrong file Embarassed
Previous Topic:day 12, don't send emails
Next Topic:day 2: "question form" available at the frontend_dev.php/askeet but not from askeet/questi
Goto Forum:
  

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