Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:32:09+00:00 2026-06-04T19:32:09+00:00

I have a website that is running on WordPress. In the document root of

  • 0

I have a website that is running on WordPress. In the document root of this site, I have a directory in which I test PHP scripts unrelated to my WordPress installation. I notice that whenever I require or include a file that indeed exists, I get a 404. If I comment out the require statement, all is well. At first, this was because of syntax errors. But I cleaned it up and am no longer getting anything in the error_log file. What gives?

EDIT: found this in my main error_log: malformed header from script. Bad header=X-UA-Compatible: ide.php. I’ve never had a problem with this on other Apache servers.

Below is the offending script:

ide.php

<?php

require_once 'config.php';

if (isset($_SESSION['username'])) {
    if (isset($_POST['command'])) {
        if ($_POST['session'] == '@') {
            session_destroy();
            header('Location: /area51/ide.php');
        } else {
            echo 'None';
        }
    } else {
        $smarty->assign('version', shell_exec("/home1/tylercro/local/python3/bin/python3 -c \"import sys;print('Python', sys.version)\""));
        $smarty->display('ide.tpl');
    }
} else {
    if (isset($_POST['username']) && isset($_POST['password'])) {
        if ($_POST['username'] == 'user' && $_POST['password'] == 'password') {
            $_SESSION['username'] = $_POST['username'];
        }
        header('Location: /area51/ide.php');
    } else {
        $smarty->display('ide-login.tpl');
    }
}

?>

config.php

<?php

error_reporting(E_ALL);

session_start();

if (!headers_sent()) {
    header('X-UA-Compatible: chrome=1');
    header('Content-Type: text/html; charset=UTF-8');
}

require_once 'Smarty-3.1.8/Smarty.class.php';

$smarty = new Smarty();
$smarty->setTemplateDir('Smarty-3.1.8/templates/');
$smarty->setCompileDir('Smarty-3.1.8/templates_c/');
$smarty->setCacheDir('Smarty-3.1.8/cache/');
$smarty->setConfigDir('Smarty-3.1.8/configs/');

?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:32:11+00:00Added an answer on June 4, 2026 at 7:32 pm

    It was a header issue. I had some syntax errors in the headers that I was sending out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have website that use XMLHttpRequest (jQuery, actually). I also have another site running
I have a wordpress site that is currently running in a subdirectory of my
I have a website that is running on a server. I want to get
I have an existing website running on IIS6 that has only static HTML pages.
I've got a website that is running WordPress. It has several pictures that I
Situation: I am running my website on wordpress. I have installed the Simple Facebook
I have a website that is running a query off to Mysql when a
I have an Umbraco website that is running on IIS7.5 and is Load Balanced.
I have a website that does inserts into this table below. I need to
I was asked to help getting a website that was running with 5.2 php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.