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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:13:40+00:00 2026-05-20T05:13:40+00:00

I’m getting a rather strange intermittent error on a webapp I’m working on, that

  • 0

I’m getting a rather strange intermittent error on a webapp I’m working on, that only triggers after certain circumstances. Once a particularly long processing page is executed (running through, retrieving and sorting 100000+ records), every page load since is failing with several errors like the following on any of the singleton objects used:

PHP Warning: Attempt to assign property of non-object in E:\tracking\lib\Controller\ControllerChainManager.class.php on line 33

The relevant section of code is as follows: (Line 33 marked with an arrow).

class ControllerManager {
private static $Instance;
private $CurrentController = 0;
private $ControllerArray;
private $ControllerArrayIndex = 0;

/**
 * Constructor
 * @return null;
 */
private function __construct() {
    $this->ControllerArray = array(); <-- LINE 33
    return;
}

/**
 * Singleton instance function
 * @return ControllerManager;
 */
public static function Inst() {
    if (!isset(self::$Instance)) {
        $c = __CLASS__;
        self::$Instance = new $c;
    }
    return self::$Instance;
}

//*** snip the rest of the class definition ***

Now, this file is included in every request, but once the bad request is made, these errors will keep occurring (eventually leading to fatal errors down the line) until the Apache server restarts. If the same request is made using a smaller data set, the error doesn’t occur and the system carries on as normal.

Nothing seems to be turning up as relevant searching on the error text given, and the fact that the problem is failing only on singleton-pattern instances might be a clue, but I can’t for the life of me figure what’s going on.

Server is PHP 5.3.

Anyone ever seen an error like this before? It’s somewhat stumping me.

Edit: An additional trawling through the logs is now revealing another class showing this error, but it’s NOT a singleton this time.

class ControllerChainData {
public $Action;
public $Controller;
public $Vars;

public function __construct($controller,$action,$vars = null) {
    $this->Controller = $controller; //<-- 10
    $this->Action = $action; //<-- 11
    $this->Vars = $vars; //<-- 12
}
} 

Resulting in…

  • PHP Warning: Attempt to assign property of non-object in E:\tracking\lib\Controller\ControllerChainManager.class.php on line 10

  • PHP Warning: Attempt to assign property of non-object in E:\tracking\lib\Controller\ControllerChainManager.class.php on line 11

  • PHP Warning: Attempt to assign property of non-object in E:\tracking\lib\Controller\ControllerChainManager.class.php on line 12

whenever an object of class ControllerChainData is instantiated.

Edit 2: In response to a comment below, CCD is called from the following method of the ControllerChainManager class:

public function RegisterControllerIntoChain ($controller, $action, $vars = null) {          
$contpath = 'controllers/' . $controller . '/' . $controller . '.cont.php';
    if (file_exists($contpath)) {
        include_once($contpath);
        $this->ControllerArray[$this->ControllerArrayIndex++] = new ControllerChainData($controller,$action,$vars);
        return true;
    }
    return false;
}

Edit 3: Looks like this previous stackOverflow post is relevant / may be the same bug:

Non-deterministic object reference bug in PHP 5.3.X

Edit 3a:

This error report is describing my exact problem: http://bugs.php.net/bug.php?id=50027 (found from prior SO post)
I’m going to update PHP on the server as soon as possible, I’ll post information on if this solves the problem.

  • 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-20T05:13:41+00:00Added an answer on May 20, 2026 at 5:13 am

    Sorted this: As mentioned in edits 3 and 3a, upgrading the PHP version solved the problem. Thanks for the help, everybody.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

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.