JAB Creations
Member
Posted 4 years ago #
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.
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.
JAB Creations
Member
Posted 4 years ago #
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!
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.
JAB Creations
Member
Posted 4 years ago #
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.
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?
JAB Creations
Member
Posted 4 years ago #
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);
JAB Creations
Member
Posted 4 years ago #
...but the page is still blank.
Well you need to post at least some more details now sothat I can make myself a clearer image.
JAB Creations
Member
Posted 4 years ago #
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?
JAB Creations
Member
Posted 4 years ago #
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. ;-)
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).
WP does not cache by default. The opposite is fact and WordPress does labels that as "No rebuilding" Feature.
JAB Creations
Member
Posted 4 years ago #
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. ;-)
JAB Creations
Member
Posted 4 years ago #
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. :-)
JAB Creations
Member
Posted 4 years ago #
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...
JAB Creations
Member
Posted 4 years ago #
BWHAHAHAHA! I have conquered! :D
http://www.jabcreations.com/blog/
...now to make it actually look like it's part of my site. Thanks for your comments, they did help! :-)
So well, we then need to throw ourselves down on the floor and keep our heads down because of your almighty headers?^^
Forwhat are they for?
JAB Creations
Member
Posted 4 years ago #
Here are some of the things you can manually manipulate at my website...
http://www.jabcreations.com/uri.php
Keep in mind that since I *JUST* got the headers working I haven't setup the templates...but when I do the blog will be *PART* of my site...it's the opposite thinking of vBulletin for example where they want their forum to ENGULF your site's content...blah on that!
Any way I learn everything I know about web stuffages by working on my website. If you visit my existing news page and click on site options at the top right you'll get an idea of all the things you can tinker with.
...and with a blog...well you'll be able to complain when half of it breaks! :D Oh and a little boasting...my tableless XHTML 1.1 site works (as good as can be considered good) in IE4 and Opera 4. You should also check it out in Safari 3 and enable CSS3, screw selectors, properties are the real meat of CSS. :-)
So and now what exactly went wrong in the first place?
JAB Creations
Member
Posted 4 years ago #
Ah, I completely realize what I did which is a big goof...
I failed to realize that I did not need to first include the header file as the following XHTML includes included it any way! So it was a double includes.
I completely admit that I totally goofed!
Jab, it would be great if you mark this thread as resolved then. Thanks!