Blank page problem fixed by removing CHARSET meta?
-
I’ve had no problems (other that the generic & sundry ones already reported) running the unmodified 1.2-beta on my 2003 server using IIS 6.0 and PHP 4.3.6. All viewing done in IE 6. My site is https://www.blipnet.net, and if you want to see the file in question, it’s at https://www.blipnet.net/archives.zip
I wanted to have an ‘archives’ page that only showed wp_get_archives(‘type=monthly’), the search box and php wp_list_cats(), so I copied INDEX.PHP over to a new file called ARCHIVES.PHP
This worked perfectly: in ARCHIVES.PHP, I removed the block that starts with <div id=”content”> and ends with the </div> that comes after ‘Sorry, no posts matched your criteria, and changed <div id=”menu”> to <div id=”content”>. It looks clean, no unmmatched <divs> as far as I can see.
However, when I removed the the blocks of li and /li’s that contain the ‘Other’ and ‘Meta’, ARCHIVES.PHP would sometimes load with a totally blank page. (Totally blank = ‘view source’ in the browser shows NOTHING.)
Even weirder (to me), if I got a blank page and manually refreshed the browser, it would reload fine and show everything. Woah!
I eventually figured out that the times the page loaded blank, it wasn’t getting past the META/CHARSET line. I commented that line out and now ARCHIVES.PHP works perfectly, 100% of the time. I didn’t modify anything that close to the top of the script, so I’m really confused on what it’s doing.
Does anyone have any ideas on why this might be happening?
Again, if you want to see the code, there’s a link at the top to download it.
THANKS!!!!!
- The topic ‘Blank page problem fixed by removing CHARSET meta?’ is closed to new replies.