• Resolved jab-creations

    (@jab-creations)


    Not being able to my site’s header = not using WordPress.

    I’m trying to include my site’s header file which includes how I handle media type/mime, security, sessions, etc. WordPress spits out a blank page/200 if I implement the includes in the index.php file and does absolutely nothing when I implement it in to the header.php file in the current template.

    I’ve modified my headers file heavily commenting everything out…literally! At first I thought it might be sessions but WordPress just is not playing nicely with my site. Again I should reiterate that if I can’t implement my site’s headers (with some reasonable exceptions such as implementing a PHP variable to determine if sessions should be executed or not) I will not be able to use WordPress.

Viewing 15 replies - 1 through 15 (of 21 total)
  • hakre

    (@hakre)

    Well the one thing is to troubleshooting wordpress everybody can download. The other thing is to troubleshoot a users script that is simply unknown. As long as you won’t publish your script you will find not a single person here who can even help you because the information you provide is too less by far.

    Or with other words: Then you are.

    Thread Starter jab-creations

    (@jab-creations)

    I’m not posting all of my serverside code, that’s obvious.

    An example, when I include my site’s PHP class file I get a blank page. All that file does is declare classes, nothing else!

    hakre

    (@hakre)

    Well maybe you should then see your php-error logfile to find out if it just plain throws a fatal error and ends script execution then.

    Basically wordpress is a PHP script and you could do anything else you do in a PHP script with wordpress then as well.

    Thread Starter jab-creations

    (@jab-creations)

    I commented out all the die() functions that don’t spit anything out and I still a blank page. Something somewhere in WordPress is creating the conflict and killing the output.

    My serverside code is very organized, headers-only in header files, class-only class file, etc. I’m including one file at a time and no matter what header file I include I get a blank page.

    hakre

    (@hakre)

    well if wordpress runs without the includes with no problems, you have to take a look why it is not working with your include. What about including only a class file first an placing a die(‘exit’); after the include. Is it outputted?

    Thread Starter jab-creations

    (@jab-creations)

    Commenting stuff out and checking the server response via Chris Pederick’s Web Developer toolbar thankfully is letting me see if my site’s headers are being set. They are when I change the index.php file’s following line from true to false…
    define(‘WP_USE_THEMES’, false);

    Thread Starter jab-creations

    (@jab-creations)

    …but the page is still blank.

    hakre

    (@hakre)

    Well you need to post at least some more details now sothat I can make myself a clearer image.

    Thread Starter jab-creations

    (@jab-creations)

    Here is a brilliant question: does WordPress cache pages at the server? If so how can I disable that while I work on the back end?

    Thread Starter jab-creations

    (@jab-creations)

    I’m pretty sure it’s a cache issue…where can I manually delete the cache files? This would be better then staring at a broken XHTML page. πŸ˜‰

    haochi

    (@haochi)

    In /wp-content/cache, but I don’t think WP does cache by default. And seriously, how can you expect others to help you w/o posting your code (given that you have “heavily” modified the files).

    hakre

    (@hakre)

    WP does not cache by default. The opposite is fact and WordPress does labels that as “No rebuilding” Feature.

    Thread Starter jab-creations

    (@jab-creations)

    I do not see a cache folder though it seems WordPress will eventually “recache” the page which means I’ll wait for it to revert back to text/html.

    Figuring out why a page behaves/renders the way it does leads you to the code versus going through every bit of code. πŸ˜‰

    Thread Starter jab-creations

    (@jab-creations)

    Hakre, I probably enabled caching when I was going through the options, what file(s) contain the blog’s preferences so I can upload to overwrite the current settings? I have a feeling this will be working fine soon now. πŸ™‚

    Thread Starter jab-creations

    (@jab-creations)

    Actually that is sort of a dumb question, database I presume…well I can always rerun the installer after I drop the tables…going to give that a try…

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Adding my site’s headers file makes wordpress spit blank pages’ is closed to new replies.