This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Today's Messages (OFF)  | Unanswered Messages (ON)

Forum: askeet
 Topic: CSS partially working in Askeet Day 3-4
CSS partially working in Askeet Day 3-4 [message #18441] Sat, 23 December 2006 05:05
ridshack  is currently offline ridshack
Messages: 1
Registered: December 2006
Junior Member

I copy and pasted the code as I went through the tutorial and I downloaded the main and layout CSS files but the only thing that doesn’t change by the CSS files are the number of interested users. They dont appear like the screen shots. It just looks like plain text and instead of being left of the question its above.

    <div class="interested_block">
      <div class="interested_mark" id="interested_in_<?php echo $question->getId() ?>">



Any Ideas why this isnt working?
 Topic: Suggestion: Add Related Tags and Related Questions
Suggestion: Add Related Tags and Related Questions [message #18660] Fri, 29 December 2006 20:16
gman  is currently offline gman
Messages: 6
Registered: December 2006
Junior Member
What do you think about adding a "Related Tags" to the sidebar of a show question page (The page that only shows 1 question?) Maybe even add a "Related Questions" to the same page?

I think this would really enhance the usability and completely top off askeet.com. This seems like the only thing missing from the website and from a tagging tutorial. I'm not sure how hard this would be, but it could also show how this could be used in some other symfony projects. Just about every project can use tagging.

I love the documentation that symfony provides for the askeet.com site. Keep up the good work. Very Happy
 Topic: propel-project-builder error
propel-project-builder error [message #19328] Tue, 09 January 2007 15:21
slinky66  is currently offline slinky66
Messages: 20
Registered: January 2007
Location: Chicago, IL USA
Junior Member

Hello All,

I made a schema change to my database (added a column to a table)
I then added the new column to my /config/schema.xml
I then ran propel-build-model from my project root and received the follolwing error:

propel-project-builder > check-buildprops
Could not open propeliniSll8em file /path/to/file

It's true that the file is not there -

There are however 2 other config/phhini... files in the config directory which are identical

I have 2 questions:

1)Does in fact propel-build-model handle all of the functionality needed for the adjusted schema for example, generate GETTERS/SETTERS for the new column in the DB table?

2)How would you guys get the error to go away? Is it as simple as cp/renaming one of the other phpini... files with the name it's looking for?

Thanks!

 Topic: Integrating with Yahoo BButh and Google's Authentication
Integrating with Yahoo BButh and Google's Authentication [message #19351] Tue, 09 January 2007 22:49
mayous2004  is currently offline mayous2004
Messages: 8
Registered: February 2006
Junior Member
Hi,
I was wondering as to how easy/feasible it is to integrate askeets's signon with yahoo or Google's authentication.

Basically we want to deploy askeet and would like to have an option where users can sign on to askeet using thier yahoo or google account.

Looking forward to hear from you.

Thanks
R
 Topic: XHMTL fixes
XHMTL fixes [message #20890] Sat, 03 February 2007 13:44
pezetgee
Messages: 734
Registered: March 2006
Faithful Member
Hi Symfony team,

I don't have login for the askeet! trac, so here are some bug reports.

Askeet produces invalid XHTML code, could you please fix it?
So far I've spotted:

1.
code:
<link rel="shortcut icon" href="/favicon.ico">

error: end tag for "link" omitted, but OMITTAG NO was specified
where: every page

2.
code:
<h2>question tags</h2>

<ul id="question_tags">
  
      <ul id="tag_cloud">

error: end tag for "li" omitted, but OMITTAG NO was specified for <ul id="question_tags">
where: question pages

3.
code (excerpt):
<img align="absmiddle"

error: value of attribute "align" cannot be "absmiddle"; must be one of "top", "middle", "bottom", "left", "right"

4. code:
<label for="author">author:</label>
      <div style="display: inline; float: left">
              anonymous coward&nbsp;

error: reference to non-existent ID "author"



And on other hand:
On http://www.symfony-project.com/askeet/24 page one way of contributing is
Quote:

Alternative site designs to propose more than one presentation. This is mostly a graphical design and CSS coding job

Are you still looking for that? If so, how can I submit designs?



 Topic: Day 5 problem
Day 5 problem [message #21364] Sat, 10 February 2007 05:07
deicide  is currently offline deicide
Messages: 2
Registered: February 2007
Location: Vietnam
Junior Member

Hi!
when i play with askeet project on day 5, i find out that $sf_user->isAuthenticated() in layout template not run although I authenticated that user and created session in 'user/login'.
I use symfony-1.0.0rc2 on Windows XP and install it through PEAR.
so pls tell the way i can solve this problem!!!!
Thanks very much
 Topic: sfFeed not found
sfFeed not found [message #21990] Mon, 19 February 2007 16:39
balazs  is currently offline balazs
Messages: 43
Registered: May 2006
Member
hi,

i have the same problem. Can anyone help me?
Quote:

Fatal error: Class 'sfFeed' not found in...apps/frontend/modules/feed/actions/actions.class.php on line 29


thanks
 Topic: sfFeed not found
sfFeed not found [message #21993] Mon, 19 February 2007 17:16
balazs  is currently offline balazs
Messages: 43
Registered: May 2006
Member
hi I have the same problem.
can anybody help?
Quote:

Fatal error: Class 'sfFeed' not found in ../../apps/frontend/modules/feed/actions/actions.class.php on line 29
 Topic: Askeet version for the new Symfony-Structure
Askeet version for the new Symfony-Structure [message #22060] Tue, 20 February 2007 13:09
trax  is currently offline trax
Messages: 8
Registered: February 2007
Junior Member
Hello,

I tried to run the final tgz source of askeet.

But there seems to be the problem that the complete structure of symfony is different to the 1.0.0rc2.

I would like to have a look at the running askeet project but I do not like to build up by myself.

So I unpacked the tgz file ( http://www.symfony-project.com/downloads/askeet_release_1_0. tgz).

But I can not get it running.

What do I have to do?

I am completly new in symfony but a php professional.
I would like to explore the code by a running project under the current framework I will develop by myself later.

Any Ideas?
 Topic: RSS Feed is not linked properly
RSS Feed is not linked properly [message #22621] Tue, 27 February 2007 17:00
balazs  is currently offline balazs
Messages: 43
Registered: May 2006
Member
Hi,

I created an RSS Feed to my Forum as in Askeet.
But the Questions ar not linked properly. I need it without stripped-title so only with ID

The problem:
Instead of: http://mysite/question/idquestion/1
comes only http://mysite/question/

so I wont be linked to any of the question

my routing is like:
Quote:

question:
question:
url: /:culture/question/:idquestion
param: {culture: <?php echo sfContext::getInstance()->getUser()->getCulture() ?>, module: forum, action: show }



Thanx for help

[Updated on: Wed, 28 February 2007 11:10]

 Topic: Day 4: propel build from xml instead from
Day 4: propel build from xml instead from [message #23197] Wed, 07 March 2007 09:13
Onir  is currently offline Onir
Messages: 122
Registered: December 2006
Location: Italy
Senior Member
In day 4 it modifies the table question:
add a column interested_users by modifing schema.xml (adding the line: <column name="interested_users" type="integer" default="0" />).
BUT when I do:
$ symfony propel-build-sql
it rebuild the model using chema.yml and not schema.xml.
How can I do?
There are also al lot of error (see the following output).. how can I do!?!?
Onir.

onir@bici:~/askeet$ symfony propel-build-model
>> schema converting "/home/onir/askeet/config/schema.yml" to XML
>> schema putting /home/onir/askeet/config/generated-schema.xml
Buildfile: /usr/share/php/symfony/vendor/propel-generator/build.xml
[resolvepath] Resolved /home/onir/askeet/config to /home/onir/askeet/config

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 /home/onir/askeet/config/prope
l.ini
[property] Loading /home/onir/askeet/config/propel.ini

propel-project-builder > om:
[phing] Calling Buildfile '/usr/share/php/symfony/vendor/propel-generator/bu
ild-propel.xml' with target 'om'
[property] Loading /usr/share/php/symfony/vendor/propel-generator/./build.prope
rties
[property] Unable to find property file: /usr/share/php/symfony/vendor/propel-g
enerator/./build.properties... skipped
[property] Loading /usr/share/php/symfony/vendor/propel-generator/./default.pro
perties

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 '/usr/share/php/symfony/vendor/propel-generator/bu
ild-propel.xml' with target 'om-template'
[property] Loading /usr/share/php/symfony/vendor/propel-generator/./build.prope
rties
[property] Unable to find property file: /usr/share/php/symfony/vendor/propel-g enerator/./build.properties... skipped
[property] Loading /usr/share/php/symfony/vendor/propel-generator/./default.pro perties

propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: lib.model
[propel-om] Using template path: /usr/share/php/symfony/vendor/propel-generator/ templates
[propel-om] Output directory: /home/nucara/askeet
[propel-om] Processing: schema.xml
[propel-om] Processing: generated-schema.xml
Execution of target "om-template" failed for the following reason: /usr/share/ph p/symfony/vendor/propel-generator/build-propel.xml:436:1: Duplicate table found: propel.
[phingcall] /usr/share/php/symfony/vendor/propel-generator/build-propel. xml:436: 1: Duplicate table found: propel.

BUILD FINISHED

Total time: 0.5842 seconds
>> file- /home/onir/askeet/config/generated-schema.xml
nucara@bici:~/askeet$
 Topic: Day 6: cant find myLoginValidator class: solution
Day 6: cant find myLoginValidator class: solution [message #23325] Thu, 08 March 2007 18:48
Onir  is currently offline Onir
Messages: 122
Registered: December 2006
Location: Italy
Senior Member
In day 6 if you get an error message: cant find myLoginValidator probably you just do: symfony cc.
Onir
 Topic: Day 2: schema.yml
Day 2: schema.yml [message #23754] Thu, 15 March 2007 21:25
caste  is currently offline caste
Messages: 13
Registered: March 2007
Junior Member
Hi there!

I've been following the askeet developing and I was wondering why I had no schema.xml.sample to rename in my project, I only have schema.yml. I think that's due to a difference between the current symfony version 1.0 and the one which was used when doing the askeet tutorial. I used schema.yml following the instructions at http://www.symfony-project.com/book/trunk/08-Inside-the-Mode l-Layer.

And here is the schema.yml code for askeet tutorial, just in case somebody wants to use it.

schema.yml:
propel:
  ask_question:
    _attributes: { phpName: Question }
    id:
    user_id:
    title:     longvarchar
    body:     longvarchar
    created_at:
    updated_at:
  ask_answer:
    _attributes: { phpName: Answer }
    id:
    question_id:
    user_id:      
    body:     longvarchar
    created_at:
  ask_user:
    _attributes: { phpName: User }
    id:
    nickname: varchar(50)
    first_name: varchar(100)      
    last_name: varchar(100)
    created_at:
  ask_interest:
    _attributes: { phpName: Interest }
    question_id:
    user_id:
    created_at:
  ask_relevancy:
    _attributes: { phpName: Relevancy }
    answer_id:
    user_id:
    score: integer      
    created_at:


Regards,
Caste
 Topic: [PropelException]
icon9.gif  [PropelException] [message #24864] Mon, 02 April 2007 11:13
home_art
Messages: 2
Registered: March 2007
Junior Member
to all PHP developers and Symfony PHP Developers,

i want to develop a site using Symfony PHP and PostgreSQL Sad ... i manually configured Apache2+PHP5+PostgreSQL8 in windows..

it is all set. the only problem is this error message keeps on popping up....

[PropelException]
Unable to initialize adapters. [wrapped: Unsupported Propel driver: postgreSQL: Check your configuration file]

this is my Databases.yml
all:
propel:
class: sfPropelDatabase
param:
phptype: psql
host: localhost
port: 5432
database: sampledb
username: root
password: password
dsn: psql://root:password@localhost:5432/sampledb
datasource: propel

is there anyone there who can help me fixing this problems....

thanks in advance!

[Updated on: Mon, 02 April 2007 11:16]

 Topic: Please help with askeet day 7
Please help with askeet day 7 [message #25362] Tue, 10 April 2007 03:44
malibu  is currently offline malibu
Messages: 59
Registered: December 2006
Member
Hi there.. I have Symfony 1.0.1 and Askeet was going great until day 7. At some point during this day, askeet stopped wotking. So I wanted to checkout the subversion project to this day, which seems to be revision 92. Problem is, when I do the following:

# svn co http://svn.askeet.com askeet --revision 92

.. and copy my config files back in,

I don't get the entire project. There is nothing in the apps directory. The symfony command doesn't even seem to recognize it as a symfony project.

Can anyone tell me how to get up to day 7 from the Subversion archive so I can continue the tutorial? Thanks!
 Topic: propel-build-sql errors with pgsql
propel-build-sql errors with pgsql [message #25810] Tue, 17 April 2007 05:26
lenning  is currently offline lenning
Messages: 10
Registered: February 2007
Location: Romeoville, IL, USA
Junior Member
I had all sorts of trouble getting the generated SQL to work with PostgreSQL (pgsql) on an empty database (no tables). I ended up commenting out the DROP statements, and moving the ALTER statements to the end of the script so they ran after all the tables were created.

Anybody know of a better/easier way?
 Topic: Day 7: Recommendations
Day 7: Recommendations [message #25972] Thu, 19 April 2007 00:13
kmedlin  is currently offline kmedlin
Messages: 78
Registered: April 2007
Location: Raleigh, NC USA
Member
Day 7 Note:
(DISCLAIMER: I think the tutorials are great. I like the format, etc. The end user support has filled in many of the gaps that exist in the tutorial code.)

Day 7 is so poorly written it should really be completely reworked. Short of downloading the SVN there is no way to make the jump from the "List of the recent answers" section to the "User Profile" section.

The little note in between that tells users to check the repository is unacceptable because of the sheer volume of changes needed to get what they describe to work properly!

Here are a few of the big things left out in the current version:

* An entire new helper is needed. (AnswerHelper.php)
* The question/templates/_list.php needs to be renamed _question_list.php and the appropriate code sections in actionClass.php need to be updated.
* Another pager routine is added to the AnswerPeer.php model and the question showSuccess.php is updated.

We're not talking about a few small changes. We're talking about CORE functionality essential to the application in this case.

Secondly, some things that had been previously refactored are not refactored in the SVN. Namely the question_pager! There are cases in the SVN code where it's all set correctly, but other places where it is not.

Another error in the code is the screenshot provided for the recentSuccess.php in the answers module...

Nowhere in the code is the name of the question called and turned into a link. Yet, in the screenshot it is. The code makes sense for what the authors, I think, are trying to achieve, but it's by no means accurate (nor would it make sense in the app since we've got the paging set to 1 for 'app_pager_answer_max'...

I can certainly understand the code changes are going to happen over time so I'm 100% willing to completely overlook gaps in syntax (helpers to helper being one that comes to mind) but gaps in instruction of this nature are too big to just gloss over for users who have spent roughly 6 hours with the language.

RECOMMENDATIONS:

1. Download the code from SVN and just follow along in another directory.

2. Copy over the code you notice does not exist in your application thusfar.

3. Leave sections that have been refactored already alone since they are optimized in your code and not necessarily in the SVN code.

4. Complete the Day's tutorial (it is pretty good for the most part).

5. Re-evaluate your code and the SVN code at the end of the day to make sure you've got everything before moving into Day 8.
 Topic: CRUD Problem
CRUD Problem [message #26840] Tue, 08 May 2007 01:26
almd  is currently offline almd
Messages: 11
Registered: May 2007
Junior Member
Hello
I'm in day 2.
i already have my DataBase, so i create the schema from it.
looking at the schema i saw that there isn't a PhpName, (example)

user:
_attributes:
idMethod: native
id:
type: INTEGER
required: true
autoIncrement: true
primaryKey: true
auth:
type: VARCHAR
size: 20
required: true
default: manual

if I add an attribute
_attribute: {PhpName: User}

do I have to run "symfony propel-generate-schema" and "symfony propel-generate-schema xml" ??? once ive modified it??
do i have to write the 'PhpName' in every table?

10x a lot for your help!
 Topic: Day12 Prob, cant send email+Batch load Test Data
Day12 Prob, cant send email+Batch load Test Data [message #27459] Thu, 17 May 2007 10:34
weilies  is currently offline weilies
Messages: 156
Registered: May 2007
Senior Member

hi all,

Question 1

i had used phpmailer before, and i found that those smtp variables should be set before sending out mail rite? but where to set them in symfony? Coz i finish day 12 guide and find no incomming mail even i found this message
Quote:

You should receive it shortly, so you can proceed to the login page.



Question 2
i had follow the askeet tutorial till Day 13 and all the time i cant work with

Quote:

$ php batch/load_data.php


Beside that, other section just working find to me

Error
Quote:

C:\wamp\www\askeet>php batch/load_data.php

Fatal error: Uncaught exception 'PropelException' with message 'Unable to execute INSERT statement. [wrapped: Could not execute update [Native Error: Cannot add or update a child row: a foreign key constraint fails (`askeet/question_tag`, CONSTRAINT `FK_question_tag_question` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`))] [User Info: INSERT INTO question_tag QUESTION_ID,USER_ID,TAG,NORMALIZED_TAG,CREATED_AT) VALUES (0,0,'relatives','relatives','2007-05-17 17:04:49')]]' in C:\wamp\www\askeet\lib\symfony\vendor\propel\util\BasePeer.p hp:308
Stack trace:#0 C:\wamp\www\askeet\lib\model\om\BaseQuestionTagPeer.php(659) : BasePeer::doInsert(Object(Criteria), Object(sfDebugConnection))
#1 C:\wamp\www\askeet\lib\model\om\BaseQuestionTag.php(272): BaseQuestionTagPeer::doInsert(Object(QuestionTag), Object(sfDebugConnection))
#2 C:\wamp\www\askeet\lib\model\om\BaseQuestionTag.php(238): BaseQuestionTag->doSave(Object(sfDebugConnection))
#3 C:\wamp\www\askeet\lib\symfony\addon\propel\sfPropelData.cla ss.php(143): BaseQuestio in C:\wamp\www\askeet\lib\symfony\vendor\propel\util\BasePeer.p hp on line 308


thanks

[Updated on: Thu, 17 May 2007 11:16]


Outsource Your Project for FREE
User Defined PPC Network
 Topic: Day 2: Data not saving to question table...
Day 2: Data not saving to question table... [message #28547] Sat, 02 June 2007 06:14
gcornelisse  is currently offline gcornelisse
Messages: 8
Registered: June 2007
Location: PA
Junior Member
On askeet step #2. When I create or edit a question record, the data is not saved. If I edit and then save it actually creates a new record in the db. It's like PHP isn't passing the POST data. Is there something I need to turn on and/or configure in PHP. I've tried with register_globals and always_populate_raw_post_data in all combinations of on and off on a hunch. Still nothing. Seems I can delete records though.

There were no errors during any of the symfony processes up to this point. Database and table exist as expected. Running apache2 w/ rewrite working, php 5.2, MySQL 5.1 (MyISAM), on ubuntu with nearly default configs. Latest Symphony is installed as a PEAR module.

Thanks, Gary

[Updated on: Sat, 02 June 2007 06:14]

 Topic: Php problem when following day 1 in calendar
Php problem when following day 1 in calendar [message #28585] Sun, 03 June 2007 17:56
FadeOut  is currently offline FadeOut
Messages: 1
Registered: June 2007
Location: Laval, QC
Junior Member

When i do a pear upgrade PEAR i got this warning :
(and for all the other steps till symfony -V)

PHP Warning: PHP Startup: apc: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

any idea how i can resolve this issue???

Thanx

 Topic: askeet question
askeet question [message #30118] Mon, 25 June 2007 11:38
rahulpunjal  is currently offline rahulpunjal
Messages: 33
Registered: April 2007
Location: Hyderabad
Member
hi all,

i have a problem i dont if any one had it earlier or not..while posting the question in my askeet i have a problem tht it takes only 20k for the question description and if i give anything more than tht it doest redirect me any where and a blank page is displayed with the same url. i am not able find the cause of the error actually i thought it was bcos of the searchindex table as it takes all the words and inserts them to table (time consuming) i commented the code for tht but still i get the same error could any one tell me wht it means

and one more thing it works fine in askeet.com if i give 1Mb text also

thank you,

rahul
 Topic: [resolved, UPDATE MANUAL sheesh]day 2 fatal error
[resolved, UPDATE MANUAL sheesh]day 2 fatal error [message #31366] Fri, 13 July 2007 00:03
anarkhos  is currently offline anarkhos
Messages: 5
Registered: July 2007
Location: California
Junior Member
When I try to run this:
[root@localhost askeet]# symfony propel-build-model


"
Fatal error: Class 'DomDocument' not found in /usr/share/pear/symfony/vendor/propel-generator/classes/prop el/phing/AbstractPropelDataModelTask.php on line 406
"


Advice?

edit:
ok, was missing php-xml. Not the only user either. Another oversight from the manual writing dept.

[Updated on: Fri, 13 July 2007 00:12]

 Topic: day 2: Propel Exception
day 2: Propel Exception [message #31431] Sat, 14 July 2007 15:44
andrea.todeschini  is currently offline andrea.todeschini
Messages: 43
Registered: July 2007
Location: Italy
Member
I have followed all the steps, i haven't modified the name localhost into askeet and if i try to do

http://localhost/question

i receive an error 500, while if i try to do

http://localhost/frontend_dev.php/question

I receive this advice

Notice: Undefined variable: type in C:\php\PEAR\symfony\addon\creole\drivers\sfDebugConnection.p hp on line 81

Warning: Cannot modify header information - headers already sent by (output started at C:\php\PEAR\symfony\addon\creole\drivers\sfDebugConnection.p hp:81) in C:\php\PEAR\symfony\exception\sfException.class.php on line 101

What can i do? Is it a php error or a symfony configuration error!
All the classes and the tables have been created!

Thanks

Andrea Todeschini
 Topic: Askeet - Alias and pictures problems
Askeet - Alias and pictures problems [message #33248] Sun, 12 August 2007 04:11
jzik  is currently offline jzik
Messages: 6
Registered: August 2007
Junior Member
I am at the first day of askeet project.

I created the project succesfully

But I have a problem with the pictures and Alias

I work with Windows Xp

I configured my apache serveur like that

<VirtualHost *:80>
ServerName askeet
DocumentRoot "/wamp/www/askeet/web"
DirectoryIndex index.php
Alias /sf "C:\wamp\php\PEAR\data\symfony\web\sf"

<Directory "/wamp/www/askeet/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>

There is't error with the way and syntax (I think)

But I don't see the pictures on the home page or backend.

Could you helpp me?

Thank's

Patrice
 Topic: How I can connect me on askeet with cygwin ?
How I can connect me on askeet with cygwin ? [message #33253] Sun, 12 August 2007 12:48
jzik  is currently offline jzik
Messages: 6
Registered: August 2007
Junior Member
Hi,

I configured askeet projet succefully (DAY 1)

Now, I want to connect me to askeet with Cygwin, but I don't arrive to do this.

It's the same way for connect me to 'TortoiseSVN'.

I don't how I can configure the TortoiseSVN

I don't know how I can connect to this project with cygwin

The ssh procedure is correctly install on cygwin

Could you help me ?

Thank's

[Updated on: Sun, 12 August 2007 12:49]

 Topic: problems with installation of askeet trunk on Windows NT 5.1 build 2600 with Apache 2.2.4, PHP 5.2.3
problems with installation of askeet trunk on Windows NT 5.1 build 2600 with Apache 2.2.4, PHP 5.2.3 [message #33432] Wed, 15 August 2007 11:57
cestcri  is currently offline cestcri
Messages: 232
Registered: August 2007
Location: Paris
Faithful Member
Helly symfony community,


I almost completed the wonderful askeet tutorial series, only during the last days (starting from day 13) my application failed to work properly. Anyay, I think I got the concept, now I want to develop my own application. Would be nice to have a current askeet running, therefore I tried to install the current trunk version.

I downloaded the source from svn into the folder askeet24, adapted the paramaters of the askeet/config files and tried to launch it. The import of the batch data failed, as does the call to http://askeet24/frontend_dev.php/

Error message on the console during import:

D:\xampp\htdocs\askeet24>php batch\load_data.php
PHP Fatal error: Uncaught exception 'PropelException' with message 'Unable to p
erform DELETE ALL operation. [wrapped: Could not execute update [Native Error: T
able 'askeet.ask_search_index' doesn't exist] [User Info: DELETE FROM ask_search
_index]]' in D:\xampp\php\PEAR\symfony\vendor\propel\util\BasePeer.php:21 8
Stack trace:
#0 D:\xampp\htdocs\askeet24\lib\model\om\BaseSearchIndexPeer.ph p(410): BasePeer:
:doDeleteAll('ask_search_inde...', Object(sfDebugConnection))
#1 D:\xampp\htdocs\askeet24\batch\load_data.php(12): BaseSearchIndexPeer::doDele
teAll()
#2 {main}
thrown in D:\xampp\php\PEAR\symfony\vendor\propel\util\BasePeer.php on line 21
8

Fatal error: Uncaught exception 'PropelException' with message 'Unable to perfor
m DELETE ALL operation. [wrapped: Could not execute update [Native Error: Table
'askeet.ask_search_index' doesn't exist] [User Info: DELETE FROM ask_search_inde
x]]' in D:\xampp\php\PEAR\symfony\vendor\propel\util\BasePeer.php:21 8
Stack trace:
#0 D:\xampp\htdocs\askeet24\lib\model\om\BaseSearchIndexPeer.ph p(410): BasePeer:
:doDeleteAll('ask_search_inde...', Object(sfDebugConnection))
#1 D:\xampp\htdocs\askeet24\batch\load_data.php(12): BaseSearchIndexPeer::doDele
teAll()
#2 {main}
thrown in D:\xampp\php\PEAR\symfony\vendor\propel\util\BasePeer.php on line 21
8

Error message when accessing the page on http://askeet24/frontend_dev.php/:

[PropelException]
[wrapped: Could not execute query [Native Error: Unknown column 'ask_question.STRIPPED_TITLE' in 'field list'] [User Info: SELECT ask_question.ID, ask_question.USER_ID, ask_question.TITLE, ask_question.STRIPPED_TITLE, ask_question.BODY, ask_question.HTML_BODY, ask_question.INTERESTED_USERS, ask_question.REPORTS, ask_question.CREATED_AT, ask_question.UPDATED_AT, ask_user.ID, ask_user.NICKNAME, ask_user.FIRST_NAME, ask_user.LAST_NAME, ask_user.EMAIL, ask_user.SHA1_PASSWORD, ask_user.SALT, ask_user.HAS_PAYPAL, ask_user.WANT_TO_BE_MODERATOR, ask_user.IS_MODERATOR, ask_user.IS_ADMINISTRATOR, ask_user.DELETIONS, ask_user.CREATED_AT, count(ask_interest.USER_ID) AS count FROM ask_question, ask_user, ask_interest WHERE ask_interest.CREATED_AT>'2007-08-05 11:57:43' AND ask_interest.QUESTION_ID=ask_question.ID AND ask_question.USER_ID=ask_user.ID GROUP BY ask_interest.QUESTION_ID ORDER BY count DESC,ask_question.CREATED_AT DESC LIMIT 10]]
stack trace

* at ()
in SF_SYMFONY_LIB_DIR\vendor\propel\util\BasePeer.php line 458 ...
455. if ($stmt) $stmt->close();
456. if ($criteria->isUseTransaction()) $con->rollback();
457. Propel::log($e->getMessage(), Propel::LOG_ERR);
458. throw new PropelException($e);
459. }
460.
461. return $rs;
* at BasePeer::doSelect(object('Criteria'), null)
in SF_ROOT_DIR\lib\model\om\BaseQuestionPeer.php line 263 ...
260. UserPeer::addSelectColumns($c);
261.
262. $c->addJoin(QuestionPeer::USER_ID, UserPeer::ID);
263. $rs = BasePeer::doSelect($c, $con);
264. $results = array();
265.
266. while($rs->next()) {
* at BaseQuestionPeer::doSelectJoinUser(object('Criteria'))
in SF_SYMFONY_LIB_DIR\addon\propel\sfPropelPager.class.php line 111 ...
108. {
109. $c = $this->getCriteria();
110.
111. return call_user_func(array($this->getClassPeer(), $this->getPeerMethod()), $c);
112. }
113.
114. public function getPeerMethod()
* at sfPropelPager->getResults(array('QuestionPeer', 'doSelectJoinUser'), object('Criteria'))
in SF_ROOT_DIR\apps\frontend\modules\question\templates\_questi on_list.php line 3 ...
1. <?php use_helper('Global') ?>
2.
3. <?php foreach($question_pager->getResults() as $question): ?>
4. <?php echo include_partial('question/question_block', array('question' => $question)) ?>
5. <?php endforeach ?>
6.
* at require('D:\xampp\htdocs\askeet24\apps\frontend\modules\ques tion\templates\_question_list.php')
in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 114 ...
111. // render
112. ob_start();
113. ob_implicit_flush(0);
114. require($_sfFile);
115.
116. return ob_get_clean();
117. }
* at sfPHPView->renderFile()
in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 67 ...
64. $this->attributeHolder->add($templateVars);
65.
66. // render template
67. $retval = $this->renderFile($this->getDirectory().'/'.$this->getTemplate());
68.
69. if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
70. {
* at sfPartialView-> render('D:\xampp\htdocs\askeet24\apps\frontend\modules/quest ion/templates/_question_list.php')
in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 274 ...
271.
272. $view = new sfPartialView();
273. $view->initialize($context, $moduleName, $actionName, '');
274. $retval = $view->render($vars);
275.
276. if ($cacheManager)
277. {
* at get_partial(array(object('sfPropelPager'), 'rule' => '@frontpage_questions'))
in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 229 ...
226. */
227. function include_partial($templateName, $vars = array())
228. {
229. echo get_partial($templateName, $vars);
230. }
231.
232. /**
* at include_partial()
in SF_ROOT_DIR\apps\frontend\modules\question\templates\frontpa geSuccess.php line 3 ...
1. <h1><?php echo __('featured questions') ?></h1>
2.
3. <?php echo include_partial('question_list', array('question_pager' => $question_pager, 'rule'=> '@frontpage_questions')) ?>
4.
* at require('D:\xampp\htdocs\askeet24\apps\frontend\modules\ques tion\templates\frontpageSuccess.php')
in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 114 ...
111. // render
112. ob_start();
113. ob_implicit_flush(0);
114. require($_sfFile);
115.
116. return ob_get_clean();
117. }
* at sfPHPView->renderFile('question_list', array(object('sfPropelPager'), 'rule' => '@frontpage_questions'))
in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 251 ...
248.
249. // render template file
250. $template = $this->getDirectory().'/'.$this->getTemplate();
251. $retval = $this->renderFile($template);
252.
253. if (sfConfig::get('sf_cache') && $key !== null)
254. {
* at sfPHPView->render('question_list', array(object('sfPropelPager'), 'rule' => '@frontpage_questions'))
in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 168 ...
165.
166. // render the view and if data is returned, stick it in the
167. // action entry which was retrieved from the execution chain
168. $viewData = $viewInstance->render();
169.
170. if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
171. {
* at sfExecutionFilter-> execute('D:\xampp\htdocs\askeet24\apps\frontend\modules/ques tion/templates/frontpageSuccess.php')
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR\filter\sfFlashFilter.class.php line 50 ...
47. }
48.
49. // execute next filter
50. $filterChain->execute();
51.
52. // remove flash that are tagged to be removed
53. $names = $userAttributeHolder->getNames('symfony/flash/remove');
* at sfFlashFilter->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR\filter\sfCommonFilter.class.php line 29 ...
26. public function execute($filterChain)
27. {
28. // execute next filter
29. $filterChain->execute();
30.
31. // execute this filter only once
32. $response = $this->getContext()->getResponse();
* at sfCommonFilter->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_ROOT_DIR\apps\frontend\lib\myTagFilter.class.php line 52 ...
49. }
50.
51. // execute next filter
52. $filterChain->execute();
53. }
54. }
55.
* at myTagFilter->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR\filter\sfWebDebugFilter.class.php line 35 ...
32. }
33.
34. // execute next filter
35. $filterChain->execute();
36.
37. $context = $this->getContext();
38. $response = $context->getResponse();
* at sfWebDebugFilter->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR\filter\sfRenderingFilter.class.php line 33 ...
30. public function execute($filterChain)
31. {
32. // execute next filter
33. $filterChain->execute();
34.
35. if (sfConfig::get('sf_logging_enabled'))
36. {
* at sfRenderingFilter->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...
40. }
41.
42. // execute the next filter
43. $this->chain[$this->index]->execute($this);
44. }
45. }
46.
* at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR\controller\sfController.class.php line 276 ...
273. }
274.
275. // process the filter chain
276. $filterChain->execute();
277. }
278. else
279. {
* at sfController->forward(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line 48 ...
45. $actionName = $request->getParameter('action');
46.
47. // make the first request
48. $this->forward($moduleName, $actionName);
49. }
50. catch (sfException $e)
51. {
* at sfFrontWebController->dispatch()
in SF_ROOT_DIR\web\frontend_dev.php line 10 ...



Any help would be highly appreciated!

Thanks so far,
Christian
 Topic: weird behaviour of model Question.php->getTags()
weird behaviour of model Question.php->getTags() [message #33490] Thu, 16 August 2007 00:21
cestcri  is currently offline cestcri
Messages: 232
Registered: August 2007
Location: Paris
Faithful Member
Hello,


just biting my teeth off on something rather weird, I don't get any error message - not even in dev mode. The script just aborts and hence the page doesn't finish rendering.

It's about expluding the permanent tag when in "universe mode". For the method getPopularTags() everything works fine, hence no mentioning of the "current permanent universe tag". But the list on the right listing all tags for the selected question doesn't behave like this.

I isolated the variable $tag which seems not to exist, here's the code (as in askeet trunk):


public function getTags()
{
$c = new Criteria();
$c->add(QuestionTagPeer::QUESTION_ID, $this->getId());
$c->addGroupByColumn(QuestionTagPeer::NORMALIZED_TAG);
$c->setDistinct();
$c->addAscendingOrderByColumn(QuestionTagPeer::NORMALIZED_TAG);

$tags = array();
foreach (QuestionTagPeer::doSelect($c) as $tag)
{
if (sfConfig::get('app_permanent_tag') == $tag)
{
continue;
}

$tags[] = $tag->getNormalizedTag();
}

return $tags;
}

Although sfConfig::get('app_permanent_tag') carries the correct universe tag, the if never comes true and hence the tag is not skipped.

Any ideas about this particular thing are very much appreciated.

Good night,
Christian
 Topic: [Day 4] Maybe a routing problem
icon5.gif  [Day 4] Maybe a routing problem [message #34163] Sat, 25 August 2007 01:48
localhost  is currently offline localhost
Messages: 3
Registered: August 2007
Junior Member
Hello all,
I dont know why these two Links arent the same:
[WONT WORK] : http://localhost/test/symfony/askeet/web/question/show/id/1
[WORK] : http://localhost/test/symfony/askeet/web/index.php/question/show/id/1

And take a look to this:
[WORK] : http://localhost/test/symfony/askeet/web/question/list
[WORK] : http://localhost/test/symfony/askeet/web/index.php/question/list

anyone can help me ?
Thanks
 Topic: [Day 19] Cache for fragment _question_tags is not cleared
[Day 19] Cache for fragment _question_tags is not cleared [message #34198] Sun, 26 August 2007 22:16
pauldingemans  is currently offline pauldingemans
Messages: 5
Registered: June 2007
Location: Netherlands
Junior Member
During day 19, the tag cloud in fragment askeet/apps/frontend/modules/tag/templates/_question_tags.ph p is cached as follows:
...
<?php if ($sf_user->isAuthenticated()): ?>
...
<?php else: ?>
  <?php if (!cache('question_tags', 3600)): ?>
    <?php include_partial('tag/tag_cloud', array('tags' => QuestionTagPeer::getPopularTagsFor($question))) ?>
    <?php cache_save() ?>
  <?php endif ?>
<?php endif ?>


The cache fragment file is not stored at cache/frontend/prod/template/askeet/question/what-can-i-offe r-to-my-step-mother/fragment_question_tags.cache but at cache\frontend\prod\template\askeet\all\question\show\stripped_title\what-can-i-offer-to-my-step-mother\_sf_cache_key\question_tags.cache.

As a result, clearing the cache as described in the tutorial does not work:
// clear the question tag list fragment in cache
$this->getContext()->getViewCacheManager()->remove('@question?stripped_title='.$this->question->getStrippedTitle(), 'fragment_question_tags');


The code below does clear the cache:
      $this->getContext()->getViewCacheManager()->remove('question/show?stripped_title='.$this->question->getStrippedTitle().'&_sf_cache_key=question_tags');


Remarks and questions:
  • Function getViewCacheManager()->remove does only take one argument
  • Why can't route "@question" be used instead of "question/show"?
  • I don't like to specify "&_sf_cache_key="...


 Topic: Maybe we should have a subforum for each day
Maybe we should have a subforum for each day [message #34635] Fri, 31 August 2007 07:17
gillbates  is currently offline gillbates
Messages: 7
Registered: February 2007
Location: Manila, PH
Junior Member
Maybe we should have a subforum for each day in askeet. Sure would make searching for existing topics easier.
 Topic: [Day 5] doSelectJoinUser not needed?
[Day 5] doSelectJoinUser not needed? [message #34636] Fri, 31 August 2007 07:27
gillbates  is currently offline gillbates
Messages: 7
Registered: February 2007
Location: Manila, PH
Junior Member
in the following function in QuestionPeer.php:
public static function getHomepagePager($page)
{
  $pager = new sfPropelPager('Question', sfConfig::get('app_pager_homepage_max'));
  $c = new Criteria();
  $c->addDescendingOrderByColumn(self::INTERESTED_USERS);
  $pager->setCriteria($c);
  $pager->setPage($page);
  $pager->setPeerMethod('doSelectJoinUser');
  $pager->init();
 
  return $pager;
}


there is a line that says
$pager->setPeerMethod('doSelectJoinUser');


I believe that this is not necessary since the User table isn't used at all when showing the questions. I took out that line and it didn't affect question/list at all.

Note that I've just finished Day 5, so if this is needed on subsequent days, I stand corrected.
 Topic: [Day 11]how output rss without markdown text
icon5.gif  [Day 11]how output rss without markdown text [message #35592] Fri, 14 September 2007 15:03
enigma
Messages: 94
Registered: March 2007
Location: Poland
Member
Hi Smile
when I click at " popular questions" or "latest questions" or "latest answers" i've got rss file, but how remove from them markdown text? in feed/actions there's no lines of code responsible for getting answer body.


Paweł Ryznar - programista JAVA :: Love IT - devBlog
 Topic: bug report
bug report [message #37395] Sun, 14 October 2007 23:02
troels  is currently offline troels
Messages: 1
Registered: October 2007
Junior Member
1: http://www.symfony-project.com/askeet/1_0/24 contains a link to open a ticket, if there are any errors. Clicking on the link prompts me to register. If I register, I still can't open a ticket, because I haven't gotten the required privileges. I wonder how many reports that'll result in?

2: Trying to report the above on these forums, I'm again prompted to register. I even had to give up my email address. I must be in a really good mood, since I did that. Still, you could make the bug-report process less of an obstacle.

3: (Almost forgot). The askeet application is misbehaving. I'm guessing, that you have magic quotes turned on at the server. That gives garbled data. Fix: turn magic quotes off.

[Updated on: Tue, 16 October 2007 13:37]

 Topic: day-2 : build model
day-2 : build model [message #37576] Wed, 17 October 2007 11:19
charly  is currently offline charly
Messages: 4
Registered: October 2007
Location: Paris
Junior Member
J'ai crée le schema.yml comme indiqué dans le tutorial mais à la génération du model -
Quote:

symfony propel-build-schema
- j'ai le message suivant :
[sfException]
A schema.yml must only contain 1 database entry.

J'ai ajouté propel: en ligne 1 mais j'ai le même message erreur.
 Topic: error about chinese
error about chinese [message #37709] Thu, 18 October 2007 18:05
lexhappy  is currently offline lexhappy
Messages: 1
Registered: October 2007
Junior Member
i have already finished lesson 11,but there is an error about asking a chinese question. If i input chinese for the question, there will be an error that can not find the page.
why? can anybody help ......
 Topic: Day 4 - test_data.yml
Day 4 - test_data.yml [message #37724] Fri, 19 October 2007 01:38
geoffrey  is currently offline geoffrey
Messages: 5
Registered: May 2007
Location: Paris
Junior Member
Hi
I'm on the day 4 and i have a question.
On day three we populate the db whith test_data.yml (using load_data.php). It's work fine.
On day 4 we have populate the ask_answer table, so we use the same way : test_data.yml.

It's say that we have to add new lines at the end of the test_data.yml and run load_data.php

But when I do that, and because of autoincrement, my user and question id change. Before have get 1,2 and 3 and now 4,5 and 6.

If I just try to add answer information alone in the test_data.yml, the load_data.php crash

Do we have to truncate tables before using test_data.yml or am I do something wrong ?

Geoff
 Topic: security/login: $user is not handed over to next module (chapter 6)
security/login: $user is not handed over to next module (chapter 6) [message #38947] Wed, 07 November 2007 11:35
niek  is currently offline niek
Messages: 1
Registered: November 2007
Location: Netherlands
Junior Member
Hi,

I am trying to get chapter 6 of askeet to work.
The login-action works fine, I can echo the nickname and the credentials (subscriber).

Then, when redirected to the home-page, it fails on validation / authentication. The user-object seems not to have both values.

Can anyone hint where to look?
Do I have to add something to the myUser-class to store it into the session?

Hope anyone can help,
Niek
 Topic: Day 9 Markdown error
Day 9 Markdown error [message #39093] Thu, 08 November 2007 18:37
ferisoft  is currently offline ferisoft
Messages: 66
Registered: October 2007
Member
Hii have and possible everyone an error with markdown and truncate text. All is as supposed to be but when the truncate removes a part from the markdown like <em... or <strong> without end tag the whole layout gets screwed up. Can someone help me with a function to detect these and also possible bbcode as this is obviously nasty. I though the truncate_text already had this functionality but it doesnt.. Smile
 Topic: spaces before any generated page
spaces before any generated page [message #39351] Tue, 13 November 2007 11:04
tomtom  is currently offline tomtom
Messages: 1
Registered: November 2007
Junior Member
Hello,
I have a problem since I had deployed askeet with Apache/2.2.3 (Debian) and symfony-1.0.7.
All the pages have 4 spaces before the first tag. This was not really a problem since I tried to use rss. This does'nt work because of these 4 caracters.
Any idea ?

Tomtom

  • Attachment: untitled.bmp
    (Size: 388.55KB, Downloaded 266 time(s))

Pages (169): [ «  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  »]

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