symfony
symfony forum
Home » symfony projects » askeet » can't install askeet trunk
can't install askeet trunk [message #6629] Thu, 25 May 2006 07:31 Go to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
I downloaded rev 84 of the askeet tutorial from subversion (svn co http://svn.askeet.com/trunk/) but can't get it to work on my system.

I'm using symony version 0.7.1369. I set up a database, configured databases.yml (and propel.ini also just in case.) I also followed the advice of post #1056 and patched batch/load_data.php.

Running "symfony propel-build-model" fails:
[propel-om] Processing: schema.xml
PHP Warning:  DOMDocument::schemaValidate(): Element 'column', attribute 'autoincrement': The attribute 'autoincrement' is not allowed. in /usr/local/php5/lib/php/symfony/vendor/propel-generator/classes/propel/phing/AbstractPropelDataModelTask.php on line 435
PHP Warning:  DOMDocument::schemaValidate(): Element 'column', attribute 'autoincrement': The attribute 'autoincrement' is not allowed. in /usr/local/php5/lib/php/symfony/vendor/propel-generator/classes/propel/phing/AbstractPropelDataModelTask.php on line 435
PHP Warning:  DOMDocument::schemaValidate(): Element 'column', attribute 'autoincrement': The attribute 'autoincrement' is not allowed. in /usr/local/php5/lib/php/symfony/vendor/propel-generator/classes/propel/phing/AbstractPropelDataModelTask.php on line 435
Execution of target "om-template" failed for the following reason: /usr/local/php5/lib/php/symfony/vendor/propel-generator/build-propel.xml:436:1: XML schema file (/Users/jeff/webroot/ask24/config/schema-transformed.xml) does not validate.  See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).
[phingcall] /usr/local/php5/lib/php/symfony/vendor/propel-generator/build-propel.xml:436:1: XML schema file (/Users/jeff/webroot/ask24/config/schema-transformed.xml) does not validate.  See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).


Has anyone else encountered this? I'd definitely appreciate any help.

Re: can't install askeet trunk [message #6640 is a reply to message #6629 ] Thu, 25 May 2006 15:41 Go to previous messageGo to next message
dwhittle  is currently offline dwhittle
Messages: 175
Registered: January 2006
Location: San Francisco, California
Senior Member

Are you using MySQL?
Re: can't install askeet trunk [message #6643 is a reply to message #6629 ] Thu, 25 May 2006 17:47 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
Yes, v5.0.18. (should have mentioned it.) Yikes, I thought the propel craziness was fixed and rolled into symfony 0.7 beta?
Re: can't install askeet trunk [message #6644 is a reply to message #6629 ] Thu, 25 May 2006 17:58 Go to previous messageGo to next message
dwhittle  is currently offline dwhittle
Messages: 175
Registered: January 2006
Location: San Francisco, California
Senior Member

add a propel.schema.validate = false at the end of your config/propel.ini file.
Re: can't install askeet trunk [message #6647 is a reply to message #6629 ] Thu, 25 May 2006 18:28 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
That got it passed propel-build-model (propel is a mystery to me) and the batch file loaded without error. But the app is pretty broken though. It gives errors like:
Object of class QuestionTag could not be converted to int in /Users/jeff/webroot/ask24/lib/model/Question.php on line 72
and
Notice: Undefined variable: rule in /Users/jeff/webroot/ask24/apps/frontend/modules/question/templates/_question_list.php on line 8


And other strange behavior.. the Ask Question link isn't visible, can't create new accounts, etc.

I cleared the cache and droped and recreated the database with no effect. I doubt these are bugs in the askeet project..too obvious. Could it be something in my php.ini?

Thanks for the help on this!
Re: can't install askeet trunk [message #6648 is a reply to message #6629 ] Thu, 25 May 2006 19:06 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
I noticed web/sf was missing from the project folder (so no javascript.) I copied it in from the sandbox. The js console then reported some errors:
Error: Expected ',' in media list but found 'and'.  Unrecognized at-rule or error parsing at-rule 'and'.
Source File: http://nomad.local/ask24/web/css/layout.css
Line: 21

6 of them, all for similar lines in the same file.
and 4 of these:
Error: this.docShell has no properties
Source File: chrome://global/content/bindings/browser.xml
Line: 0


So now I wonder if the web folder posted in subversion is out of date...
Re: can't install askeet trunk [message #6650 is a reply to message #6629 ] Thu, 25 May 2006 19:38 Go to previous messageGo to next message
dzejkej  is currently offline dzejkej
Messages: 64
Registered: May 2006
Member
Hello!

Your unlucky experience with askeet forced me to try to install it myself Smile.

I edited propel.ini just to set username/password to mysql db, then started:
symfony propel-build-db


Propel barked at me those autoincrement errors, but solution is quite simple - I just replaced 'autoincrement' with 'autoIncrement' and no more complaints Smile.

Then did
symfony propel-build-sql
symfony propel-insert-sql


And its working. I mapped /sf from my pear symfony package (0.7.1369), not from sandbox (so don't know if its correct, but will try if your problems don't go away).

Good luck Smile!


dzejkej is closed-source SVK human product

lazy man for professional web tools
Re: can't install askeet trunk [message #6653 is a reply to message #6629 ] Thu, 25 May 2006 20:10 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
dzejkej, I followed your instructions and also simultaneously updated the web/sf directory from the trunk. Between the two, it mostly works now! Smile The batch-loaded data doesn't appear and there's a stylesheet missing but I should be able to limp along now. Thanks for the help.
Re: can't install askeet trunk [message #6658 is a reply to message #6653 ] Thu, 25 May 2006 22:50 Go to previous messageGo to next message
dzejkej  is currently offline dzejkej
Messages: 64
Registered: May 2006
Member
jferber wrote on Thu, 25 May 2006 20:10

dzejkej, I followed your instructions and also simultaneously updated the web/sf directory from the trunk. Between the two, it mostly works now! Smile The batch-loaded data doesn't appear and there's a stylesheet missing but I should be able to limp along now. Thanks for the help.




You're welcome Smile. I haven't noticed any missing stylesheet Confused Which one is it? I see 2 main.css (one from /sf and one is askeet's own) + layout.css.

Speaking about batch-loaded data ... I did
cd batch
php load_data.php

then refresh and voila, it worked like a charm for me Smile.

Hope you will get it running smoothly soon Smile.


dzejkej is closed-source SVK human product

lazy man for professional web tools
Re: can't install askeet trunk [message #6659 is a reply to message #6629 ] Thu, 25 May 2006 23:03 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
I figured out the stylesheet issue just after I posted my reply. The tutorial uses absolute paths for images so my browser wasn't finding them. (easily fixed) I haven't looked into the batch load yet but think it should be ok.

I wonder if there's a good place to post these instructions for the next person. I'd be willing to make a first pass Askeet sandbox w/ install readme.
Re: can't install askeet trunk [message #6660 is a reply to message #6659 ] Thu, 25 May 2006 23:51 Go to previous messageGo to next message
dzejkej  is currently offline dzejkej
Messages: 64
Registered: May 2006
Member
jferber wrote on Thu, 25 May 2006 23:03

I figured out the stylesheet issue just after I posted my reply. The tutorial uses absolute paths for images so my browser wasn't finding them. (easily fixed) I haven't looked into the batch load yet but think it should be ok.

I wonder if there's a good place to post these instructions for the next person. I'd be willing to make a first pass Askeet sandbox w/ install readme.




Glad to hear everything is ok now Smile.

Good place for this sort of doc IMO is Wiki. And that will be definitely nice contribution from you Thumbs Up Smile

Have a nice day!

J


dzejkej is closed-source SVK human product

lazy man for professional web tools
Re: can't install askeet trunk [message #6662 is a reply to message #6629 ] Fri, 26 May 2006 01:28 Go to previous messageGo to next message
jferber  is currently offline jferber
Messages: 9
Registered: May 2006
Location: San Francisco, CA
Junior Member
I don't have access to post on the wiki, so here it is for now.

I wrote up instructions in INSTALL.txt

Re: can't install askeet trunk [message #6663 is a reply to message #6662 ] Fri, 26 May 2006 01:52 Go to previous message
dzejkej  is currently offline dzejkej
Messages: 64
Registered: May 2006
Member
jferber wrote on Fri, 26 May 2006 01:28

I don't have access to post on the wiki, so here it is for now.

I wrote up instructions in INSTALL.txt



You can't edit pages/add new ones in the wiki?

Try http://www.symfony-project.com/trac/wiki/newpage

And your INSTALL.TXT looks good Smile ... but I don't think you need 3rd step after creating your db by hand in step 1


dzejkej is closed-source SVK human product

lazy man for professional web tools
Previous Topic:QUERY_STRING error in sfWebRequest.class.php
Next Topic:creole error after ugrade to beta (0.7.1369)
Goto Forum:
  

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