Thank you for making FriendsElectric available.
I was learning about PHP in blocks, and experimenting with the snippets in http://drupal.org/node/20630 , but when I choose the PHP input format and submit, the "detail view" or "single page view" of the post with the PHP causes the refreshed site to "lose" its CSS formatting. Everything then appears like it's in NS4, on the left in unformatted text. The body of the post does indeed return the expected result, though.
That said, when I go to the top page of the site, the PHP result set is displayed as expected, within the page framework. It is only when I click the title of that post that I get the css-less view.
That makes me think that the theme I have set - FriendsElectric - and the portion of it that governs the display of single pages as opposed to the front page, are somehow at fault.
Is this possible and can you kindly offer a hint as to where I might look?
Kind regards
Rick
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Cogley-php_test-cvsless.txt | 20.75 KB | Rick Cogley |
Comments
Comment #1
Steven commentedThe very first thing to look at is the snippet of PHP you used.
For example, try a simple PHP snippet like:
print "Hello World";If that works, you need to look at the code you copy/pasted itself. It is likely that it is buggy or outdated.
Comment #2
Rick Cogley commentedThank you for the quick response. It gives the same thing - expected view when viewing the post with other posts on the top page, and a munged css-less view when viewed alone. The wonky page shows this at the top:
Comment #3
Steven commentedThis is a really odd problem: I just tried it out on a fresh 4.6.0 install and it doesn't happen there.
Some questions:
- What version of PHP are you using?
- Can you try another PHPTemplate based theme? See if it happens there too. If so, it might be an engine problem.
- Can you attach the full source of a broken page?
And classic: are you sure you're using the latest 4.6 version of PHPTemplate and FriendsElectric? ;)
Comment #4
Rick Cogley commentedHi and thanks. Attached is the source of the cvsless page.
PHP version - 4.3.10
Version of template and theme - 4.6.0, as of 5 days ago, when I installed them
I will try another theme.
Regards
Rick
Comment #5
Rick Cogley commentedI tried it with Goofy, and it happens there too.
Comment #6
Rick Cogley commentedEr, I do NOT observe this when I use Firefox to view the page. It only occurs in IE.
Ugh.
Comment #7
Steven commentedGoofy is not a PHPTemplate theme which suggests the problem is a server misconfiguration, rather than a theme bug. I have no idea how to fix it.
Comment #8
Rick Cogley commentedThanks. One thing I will try before starting down that road with my provider is to try disabling various modules, and, to as you said, try doing the same thing on another copy of Drupal on the same server.
I'll let you know.
Comment #9
Rick Cogley commentedThis is NOT happening on a fresh install of the same Drupal without a lot of various modules. OK. Now I can focus on disabling things to see if I can get to the bottom of this.
Comment #10
Rick Cogley commentedI turned off my modules one by one, and it seems to be a combination of nodewords and IE, because it does not happen on Firefox. OT, but unfortunately I need IE for a number of sites w/ functionality that only do that.
I will report this to the nodewords developer.
Thanks Steven.
Regards
Rick Cogley
Comment #11
Rick Cogley commentedTransferred to issue - http://drupal.org/node/23323
Comment #12
avpadernoI am closing this bug report, as it's for a not supported project version. If the bug is reproducible on a supported project version, please re-open this report.