Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Atahualpa IE7 "endif" Error header.php (http://forum.bytesforall.com/showthread.php?t=1363)

Actus Apr 21, 2009 11:42 AM

[SOLVED] Atahualpa IE7 "endif" Error header.php
 
Hello,
I am a new user of Atahualpa and this is my very first blog so my technical knowledge is very limited. I am using Atahualpa 3.3.2.

I am getting multiple (but "same") errors at the top of my blog that says "endif":

<!--[endif]--> <!--[endif]-->

<!--[endif]--> <!--[endif]-->

Does anybody know how to fix this? The error can be seen when using Internet Explorer7. The error does NOT exist when using FireFox.

I know the error is within the "header.php". But I don't know what piece of code to use and where to place the corrected code within Atahualpa header.php. Thank you for your help.

Flynn Apr 21, 2009 07:13 PM

Did you paste something from MS Word into your site? That's usually the cause for this. Paste again but this time into a text editor first and into WP from there so the MS formatting gets dropped.

Actus Apr 22, 2009 02:40 PM

Yes, I did paste my blog contents from MS Word. I write my contents in MS Word then copy and paste to WP form.

I followed your instructions and it worked. The "endif" error disappeared in IE7. Thank you very much for your help. :)

juandrah Sep 23, 2009 08:42 PM

Thank you. I just experienced this problem and this was the answer for me as well.

However, my first attempt at fixing the problem by saving my content as text and then replacing the page content in admin failed. Hmmmm.....

So, I cut the content from the page and published the blank page. This attempt failed again. The <!--[endif]--> was STILL there in IE! :confused:

Then I'm thinking, okaaaay...., I'm seeing it in IE but not in Firefox, let's bring up WP admin in IE. When I looked at the pages, the code was there! So, for the third time, I cut and pasted the entire text version of the content. This got rid of the <!--[endif]--> but the text formatting was all messed up in IE. It was still fine in Firefox. :(

So, I checked another page in IE WP admin and, for the fourth attempt, simply deleted the <!--[endif]--> without replacing the content and republished. SUCCESS!!!!! The <!--[endif]--> code was gone and the text formatting retained integrity in both browsers. :)

Why? Because I tried to do the editing in Firefox and the problem only existed in IE. When you look at the page content in Firefox WP admin the <!--[endif]--> is not there so it can't be edited out. When you view the page content in IE WP admin the <!--[endif]--> is there, so it can be edited out. You DO NOT have to repaste the entire content. ;)

So, to resolve this problem you MUST view and edit the page content in WP admin using IE. To edit, simply select and cut <!--[endif]--> from the page and republish. The visual appearance of both pages will retain integrity.

However, it's a good idea to check your pages anyway for any stray code which affects the formatting. I have found occasional stray snippets which over ride the Atahualpa settings.

You can mark thread as resolved now?

Good luck and happy authoring.


All times are GMT -6. The time now is 10:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.