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

  • SEARCH
  • Home
  • 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 7417003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:36:43+00:00 2026-05-29T07:36:43+00:00

I have this piece of code $.get(‘/proc.php?proc=get_color’, function(data){ $(‘#offer_color’).html(data); }); that is hosted on

  • 0

I have this piece of code

 $.get('/proc.php?proc=get_color', function(data){
     $('#offer_color').html(data);
  });

that is hosted on an https. Now when I request this page its saying 404 Error in the console but in the Firebug console it returns what its suppose to for example “DATA IS OK”.

Does anyone have any idea why it says 404 error while in fact its returning its value from the remote php file?

It is not allowing me to do anything with the result as its displaying “Error” when I alert it.

In the proc file

 include('wp-blog-header.php');
    global $db;
echo 'Data is Ok'

I need the WP things to connect to the WP Database

  • 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-05-29T07:36:44+00:00Added an answer on May 29, 2026 at 7:36 am

    Sounds like your script, proc.php, or one that it includes is setting a 404 header. I see from your comments that you calling in a WordPress file – perhaps this is trying to resolve the supplied URL, failing and then issuing a 404 header before your code in proc.php is even evaluated.

    After a quick search on Google it looks like this common problem and there are a couple of blog posts out there that deal with working around the issue:

    • Fixing false 404 headers on external pages including wp-blog-header.php
    • WordPress Forum

    It looks like the answer is to replace according to a post on the WordPress Forums:

    include('wp-blog-header.php');
    

    with:

    include('wp-load.php');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code: $('#contentSites').fadeOut(200, function() { // Animation complete $.get(my_account_content.php?q= +
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
I have written this piece of CF code to get and display the data
I have this piece of code: <?php $pattern = /<span\b[^>]*>(.*?)</; $html = file_get_contents(http://www.bicicletapublica.com.ar/mapa.aspx); $results
I have this piece of code: function MyFunction() { $.ajax({ type: POST, url: ajax.php,
I have this piece of code written in jQuery and PHP: <script type=text/javascript> $(document).ready(function(){
I have this piece of code on a php page, at the bottom: window.opener.location.href=/index.html;
I have this piece of code I'm trying to get to display but no
I have this piece of code: var myObj = function () { this.complex =
I have this piece of code that does not work: public CartaoCidadao() { InitializeComponent();

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.