Although I haven't had this EXACT error before, I have had similar errors
and they were almost always from some bad file encoding or garbage
non-printable-characters that somehow ended up in my file.  I would suggest
copying the contents of the file, pasting into notepad (assuming you're on
windows / gedit for ubuntu / etc), delete your file, and save the notepad
file where the old file was.  That's fixed a few similar issues I've had.

Jeremy

On Thu, Sep 10, 2009 at 1:54 AM, MrGlass <[email protected]> wrote:

>
> Hi,
>
> I am fairly new to symfony and have been following along with jobeet
> and adapting each step to the needs of my site. I recently ran into an
> interesting problem when listing out links to the different posts on
> my site.
>
> I use a partial for listing out the tabular data. It simply outputs
> the fields I want along with a link to the actual post. The partial is
> below:
>
> *in the following code, $posts is an array of post objects returned by
> a doctrine query*
>
>        <?php foreach ($posts as $post): ?>
>                <tr>
>                        <td class="Title"><a href="<?php echo
> url_for('post_pretty_url',
> $post) ?>">
>                                <?php echo $post->getTitle() ?></a></td>
>                        <td class="Created_At"><?php echo
> $post->getCreatedAt() ?></td>
>                        <td class="Author"><?php echo $post->getAuthor()
> ?></td>
>                        <td class="Category"><?php echo
> $post->getCategoryName() ?></td>
>                </tr>
>        <?php endforeach; ?>
>
> When I visit my page, there is a problem with the first link in the
> page. the generated url has an odd unicode character appended to the
> front, causing a broken. link I'm not sure if it will show up on
> google groups, but here is a short snippet  of the generated HTML:
>
>                        <tr>
>                        <td class="Title"><a
> href="/frontend_dev.php/post/6/sdfgsfg">
>                                sdfgsfg</a></td>
>                        <td class="Created_At">2009-09-03 19:23:48</td>
>                        <td class="Author">tester 3</td>
>                        <td class="Category">Test Cat 4</td>
>
>                </tr>
>                        <tr>
>                        <td class="Title"><a
> href="/frontend_dev.php/post/2/form-test-1">
>                                form test 1</a></td>
>                        <td class="Created_At">2009-08-25 16:32:26</td>
>                        <td class="Author">form tester</td>
>                        <td class="Category">Test Cat 2</td>
>
>                </tr>
>
> A few things I have noticed: no matter what order i select the posts
> in, what posts are there, etc, the problem always occurs with the
> first item in the list and only with the first item. If i remove the
> post with the bad url, the links will work, but when I refresh the
> cache the top one will again have the same issue.
>
> Any info or advice would be appreciated.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to