My whole site ruined because of a tiny error!
jason342 - January 21, 2007 - 04:27
Seriously, I was just testing out aligns in the blocks and I made the mistake of closing the <Table align=”right”> with a </right> instead of a </table>
Then bam! The whole site got cut up into pieces, I tried to make out what was what and even managed to change the ‘right’ tag to ‘table’ but the whole site is ruined.
How can this distraction happen from such a little error?

In a table-based theme, if
In a table-based theme, if you kill the tables with an admittedly silly html error, it's all going down. This one advantage of non-tabled themes :)
Seriously though, this isn't Drupal's fault. Go in, change the code.
Ok, I managed to bring
Ok, I managed to bring everything back to normal at last.
But does anyone think a permanent damage has been caused to the database/drupal because of this?
No. HTML is not going to
No. HTML is not going to have any effect on your database.
Who's to say it is a 'little' error?
Philosophical and rhetorical question: Is the 'size' of an error based on how much effort you need to produce the error or the results the error causes? (no you don't need to answer that)
A website using XHTML that isn't 'well formed' should expect that browsers flip out trying to render it. I wouldn't call it a little error.
Is your layout still broken after correcting the mistake? Are you sure that the code is now well formed? ie do all the elements nest and close properly?
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Birdmanx35 - I am worried
Birdmanx35 - I am worried that I might have executed or deleted something because of that error I made. I know you said that you don't think there was a problem but sometimes database/modules are affected due to actions/errors similar to mine.
For example, someone helped me get a certain aspect of my forum back by executing a code below in the page.
<?phpvariable_del('forum_nav_vocabulary');
?>
So if good can occur from executing codes in those fields, then bad can occur too such as wrongly executing a
</right>tag to close a TABLE?styro – What do you mean by “are elements nest and close properly”? Things look “back to normal” to me visually looking at, but like I have explained above, how would I know if I have not executed/deleted something, but without me being aware of it?
So, by you stating is not a "little" error, do you think I have caused a permanent damage to my databse/modules/something by closing the TABLE tag with a
</right>tag?Let me start out by saying I
Let me start out by saying I have relatively little experience with the Drupal core php files, database, etc. I have relatively high Drupal frontend usage, however.
That said, one html error that is fixed shouldn't, in my opinion, be connected to your database. Are you having any problems now?
hmmm
well executing a php code is waaaay different from a "little" error html wise.
in your case, the only effect your mistake did was the table wasn't closed, so the rest of the html code is interpreted as part of the said table.
this very short article can answer your question:
http://www.w3schools.com/xhtml/xhtml_html.asp
additional references:
http://www.w3schools.com/xhtml/
http://www.w3schools.com/php/php_intro.asp
and this can be your friend:
http://validator.w3.org/
I see (and thanks for the
I see (and thanks for the links, very helpful).
But, the fact that everyone so far has emphasized the word "little”, makes one wonder that it wasn’t such a “little” error after all, but a major one? To me anyway.
It's fine
It is completely unrelated to your database. It could only affect the layout of your site visually - no data or settings were affected.
It was a big error in terms of layout rendering, but a trivial non event in terms of your data integrity.
The HTML markup doesn't execute anything, so you can't really damage anything with HTML markup like you can with PHP or SQL.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Styro, so would it make a
Styro, so would it make a difference on what you just said, whether the ‘input format’ at the time of the error was on “PHP Code” or “Full HTML”?
I do know it was one of those two.
No
Changing just the HTML markup won't affect any other data.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
This post makes me LOL
Sorry, can't help it.
LOL
1 year later, still just as funny!