Another thing I noticed today: posting a comment in plaintext, full HTML and filtered HTML breaks the CSS. After posting the comment all CSS is gone and the page looks kind of naked.

Had to deactivate comments for the time being. Am using a MacBook Pro with Snow Leopard (10.7.6) and the latest Firefox (5.0).

Regards,
Paul

Comments

yshido’s picture

Status: Active » Postponed (maintainer needs more info)

can you please make a screenshot and add it to this issue?

Thanks

paul_constantine’s picture

Title: Posting Comment wipes out CSS. (error in comment.tpl.php) » Posting Comment wipes out CSS.
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new147.49 KB
new176.49 KB

Here are some screenshots of the page right before and after saving the comment.

After the css is gone I can not access the comment. I can click but it will not load.

Reloading the homepage will bring back the page in full css, trying to read the comment will crash the css again (without displaying the comment).

Regards,
Paul

yshido’s picture

Title: Posting Comment wipes out CSS. » Posting Comment wipes out CSS. (error in comment.tpl.php)
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active

I just reproduced this issue on an x86 machine with win7 and FF. After posting a comment (on a blog in my case) the page doesnt show the correct way anymore.

Here is the php error message:
Fatal error: Call to undefined function dsm() in /var/www/clients/client1/web22/web/sites/all/themes/andromeda/templates/comment.tpl.php on line 73

yshido’s picture

StatusFileSize
new6.33 KB

quick and dirty fix:

    solution 1:
  1. open the sites/all/themes/andromeda/templates/comment.tpl.php with an editor of your choice
  2. within line 73 make the following change:
  3. <?php print dsm($author); ?>
    into
    <?php print drupal_set_message($author); ?>

If you use this one, the css will be back in place, but there ist still something wierd within the line where the name of the author and comment date are shown. (see pic)

    solution 2:

just get rid of the whole line 73 within the comment.tpl.php until Arshad brings up a better solution. And thats what I have done ;)

paul_constantine’s picture

Thank you yshido,
I also opted for your solution number 2.
Worked great for me.

shadcn’s picture

dsm() should not be there at all. Removed the line in the development branch. See http://drupalcode.org/project/andromeda.git/commit/8786761

Thanks for spotting that Paul and thanks for your help @yshido.

yshido’s picture

Title: Posting Comment wipes out CSS. » Posting Comment wipes out CSS. (error in comment.tpl.php)
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Fixed
ethos_bass’s picture

Just wanted to confirm that solution #1 in post 4 worked for me. I had the same problems as listed above (failed function dsm($author)). Using drupal 7.2, Andromeda 7.x-1.x-dev.

Changed line 73 in comment.tpl.php to <?php print drupal_set_message($author); ?> and all is well.

Thanks for solution.

yshido’s picture

I want to point on #6 from the maintainer. You should remove the dsm completly or better get the complete new version from git (link in #6)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.