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 921491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:52:55+00:00 2026-05-15T18:52:55+00:00

I have some Ajax that has been working on a live site, now it

  • 0

I have some Ajax that has been working on a live site, now it has stopped working. The Ajax should be returning a page but is returning a 500 error (internal server error).

The strange thing is I can navigate and post to the page the Ajax is calling, so the page is only not working via an Ajax call ($.post).

Another strange thing is it is working fine locally, but not live. Also all the other Ajax on the site is working.

Anyone have the foggiest what this might be? By the way it’s all jQuery with CakePHP.

Edit:

The apache error logs are saying:
“Premature end of script headers: php-script, referer…”

Edit 2:

It all happened when I switched the server over to SSL. It says above error and then “Port 80”.

  • 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-15T18:52:55+00:00Added an answer on May 15, 2026 at 6:52 pm

    First off, this has nothing to do with jQuery, AJAX, POST, CakePHP, or HTTP headers. The complete error message is “Premature end of script”, which means that the PHP process that Apache is using to run the PHP script terminated unexpectedly (i.e., before the PHP process finished its part of the Fast CGI protocol). This generally means that the PHP process crashed or caused a “segmentation fault”.

    PHP segmentation faults can be difficult to troubleshoot, and they should never happen; PHP should never crash. The reason why it is crashing could be due to a number of things. Maybe it is a simple fix, though.

    The first thing that I would do is completely uninstall PHP and install the latest stable version. If you are running PHP 5.3 and Windows, then you should only use the VC6 binaries (the “VC6 x86 Thread Safe” package); the VC9 package will cause PHP to crash when used by Apache. Reinstalling might fix your problem because extension DLLs/SOs of older releases of PHP might still exist in your extensions directory on the live server.

    If on Windows and using MySQL, the next thing that I would do is make sure that the MySQL bin directory is in the live server’s Path. The reason for doing this is to make sure that libmySQL.dll can be “found” by the OS. You should be able to SSH into the live server, type mysql --help, and see the MySQL CLI client’s usage message. Restart Apache if you add the MySQL bin directory to Path.

    If both of these suggestions do not solve the problem, then please update your question with answers to the following:

    1. Are you using a web host or does a company IT team manage a server for your use?
    2. If using a web host, are you leasing a dedicated server?
    3. What operating system are you running?
    4. What version of PHP are you using?
    5. What PHP extensions are being loaded?
    6. Do you load a Zend extension?
    7. Do you ever use dl?

    UPDATE: With version 5.3.6 and later, the PHP project no longer releases “VC6” installers. The recommendation is to install a build of Apache HTTPD from Apache Lounge and use a “VC9” installer.

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

Sidebar

Related Questions

i'm working on some website that has a section with pure AJAX, but i
I have some content that I am loading using jquery ajax. The content has
I have some jquery code that is doing an ajax lookup and returning comma
I have a page that loads content through AJAX. Among this content are some
I have been working with some Ajax functions. All of them are working very
I have been working on a project that has 2 interfaces - windows forms
i have been working on a new .net MVC site and have integrated some
I have some html returned from an ajax call that contains blocks of html.
I have a AJAX request that will return a string that contains some HTML
I have a facebook app that load some content with ajax, including some like

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.