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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:27:32+00:00 2026-05-26T16:27:32+00:00

This question straddles both programming and server issues, not sure it is 100% for

  • 0

This question straddles both programming and server issues, not sure it is 100% for serverfault. Here it goes:

I just migrated my Codeigniter (PHP 5.1.2) web app to a new server. In the old server, everything worked normally.

In the new server, all jQuery Ajax is broken, and I’ve noticed errors affect exclusively Ajax that uses json data.

The errors on Firebug show as

data is null //data is a json string returned by the server
    if (data.success == 1) {

and on Chrome console the same error shows as

Uncaught TypeError: Cannot read property 'success' of null

A few details about the new server:

  • Red Hat Enterprise Linux
  • Plesk 9
  • PHP is enabled via Plesk interface – the setting is ‘Run PHP as Fast CGI, safe_mode off’
  • It has a firewall that is not causing any obvious problems
  • .htaccess is currently very lean

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    Header set X-UA-Compatible "IE=EmulateIE8"
    
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        </IfModule>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
        AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
    </IfModule>
    
    <IfModule mod_headers.c>
    <FilesMatch "\.(jpg|jpeg|ico|gif|png|flv|pdf)$">
      Header set Cache-Control "max-age=2700"
    </FilesMatch>
    </IfModule>
    

In addition:

  • one part of the webapp uses jQuery FullCalendar – before the migration it worked perfectly – now I get a blank page (no errors on console – but it uses several JSON strings to populate calendar events
  • login using Facebook and Google credentials is broken leading to blank pages (not sure of JSON strings here).

I’ve tried changing json to jsonp as suggested elswhere on SO, but this didn’t solve the problem. Is any other change to the code required?

Thanks for reading — any suggestions how to begin troubleshooting this?

  • 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-26T16:27:32+00:00Added an answer on May 26, 2026 at 4:27 pm

    This was resolved by upgrading my PHP version from 5.1.2 (the default install for Plesk 9.5) to PHP 5.3.x.

    http://www.atomicorp.com/wiki/index.php/PHP

    The problem was probably due to my using json_encode, which is a PHP > 5.2 function.

    Hope this helps anyone out there with similar issues.

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

Sidebar

Related Questions

This question is not a homework, it is just out of personal interest and
This question comes on the heels of the question asked here . The email
This question is about removing sequences from an array, not duplicates in the strict
This question nags me for a while but I did not found complete answer
This question is about a specific programming problem I am having - I want
This question has been asked more than once before, but I have not found
This question would not have existed if AspectJ worked the same way as EJB
This question is just out of curiosity. In recursive templates if we forget to
This question is not so much about finding a solution as about getting an
This question is a slight extension of the one answered here . I am

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.