Just updated my osticket from 1.10 to 1.11and had a problem.
Clicking anything marked red on screenshot gives you an empty queue.
I made a custom queue (green on the picture) which works perfect and shows all open tasks.

The same problem with "My tickets", looks like default queues doesn't work for whatever reason.

Another problem is a "From" field which is empty and it shows a subject of the ticket before.
User field is still filled inside the ticket, looks like "from" field looks for the wrong table in DB.

I had the same issue, default queues were empty and the PHP shows fatal error:
Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "QueueSort" of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class definition in /opt/bitnami/apache2/htdocs/osticket2017/include/staff/templates/queue-tickets.tmpl.php on line 72

Eventually one or other queue shows up, but most shows the error.

I commented out the line 72 on this file, now it looks like:
// $sort['queuesort']->applySort($tickets, $sort['dir']);

After that the queues worked just fine. I didn't miss any functionality - I guess.

I though this was some issue in my server (I'm running a bitnami virtual machine).

I don't understand the OSticket source code, so I'm not sure what are the consequences of commenting this line.

    I can't replicate t your "form" field issue. Please check the apache/php log file for some error.

    Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.

    Environment details?
    php / [unknown] webserver error logs?

    I think I found the real issue behind this error:

    Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "QueueSort" of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class definition in /opt/bitnami/apache2/htdocs/osticket2017/include/staff/templates/queue-tickets.tmpl.php on line 72

    The code should be fine, my issue was that I had the "session.auto_start = 1" in php.ini file. When I change it to "session.auto_start = 0" the error went away and the system was working fine.

    If you comment out the line 72 you won't be able to use the sort-dropdown list .

    My environment is:
    - Bitnami virtual machine
    - OS: Debian
    - PHP: 5.6.38

    I also had a lot of "PHP Warning : ini_set(): A session is active. You cannot change the session.... " in the error log. After disabling auto_start I have no more errors.

    I think the session.auto_start was messing around with the code.

    @DarthSlider

    When your queue look like that it means that one of the queues is failing causing the queues to not fully load or it’s just taking forever to lookup the ticket counts. You should see an error in your Apache/PHP error logs. Once you get the error post it here.

    Cheers.

    There is nothing related both in OsTicket System log and Apache log.
    My php log is full of this:
    [08-Apr-2019 08:11:53 UTC] PHP Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in C:\Apache24\htdocs\Support\bootstrap.php on line 19

    That's how line 19 of this file looks:
    ini_set('session.use_trans_sid', 0);

    Doesn't look related to my problem.

    2 months later

    The "Warning: ini_set()..." error means the session is already active before the osticket call the bootstrap. This should be the problem you are seeing. Most likely you have the "session.auto_start = 1" in php.ini. You should turn it off ("session.auto_start = 0").

    Write a Reply...