Catchable fatal error

Bug #1333222 reported by Wallace Kinyua
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

Catchable fatal error: Argument 2 passed to PageManager::__construct() must be an instance of User, array given, called in /var/www/xibo/lib/include.php on line 157 and defined in /var/www/xibo/lib/app/pagemanager.class.php on line 43

Related branches

Changed in xibo:
status: New → Incomplete
Revision history for this message
Wallace Kinyua (kinyuawallace) wrote :

I recently installed xibo on my linux Ubuntu distro (12.04), The installation was smooth and I managed to login but on Clicking Administration then Groups, I get the error below :

Catchable fatal error: Argument 2 passed to PageManager::__construct() must be an instance of User, array given, called in /var/www/xibo/lib/include.php on line 157 and defined in /var/www/xibo/lib/app/pagemanager.class.php on line 43

Kindly assist

Dan Garner (dangarner)
Changed in xibo:
milestone: none → 1.6.2
status: Incomplete → Confirmed
assignee: nobody → Dan Garner (dangarner)
Revision history for this message
Dan Garner (dangarner) wrote :

This has been reported by numerous people - can any offer access to their system so we can try to recreate the issue?

Revision history for this message
Dan Garner (dangarner) wrote :
Changed in xibo:
status: Confirmed → Fix Committed
Revision history for this message
Dan Garner (dangarner) wrote :
Revision history for this message
Dan Garner (dangarner) wrote :

PHP is doing something rather odd (that it shouldn't be doing in the version we require).

The user admin page sets a session variable called $_SESSION['user'], this is overriding the $user = new User() assignment so that each time $user is used the session variable is returned instead...

Very odd, looks like http://stackoverflow.com/questions/7050180/global-variable-overrides-session-variable-in-php

Can be solved by the above patch files, or by changing php.ini to:

session.bug_compat_42 = Off
session.bug_compat_warn = Off

Revision history for this message
Wallace Kinyua (kinyuawallace) wrote : Re: [Bug 1333222] Re: Catchable fatal error

Thank you.

The patch worked and Xibo Server is working :D

On Sat, Jun 28, 2014 at 9:00 PM, Dan Garner <email address hidden>
wrote:

> PHP is doing something rather odd (that it shouldn't be doing in the
> version we require).
>
> The user admin page sets a session variable called $_SESSION['user'],
> this is overriding the $user = new User() assignment so that each time
> $user is used the session variable is returned instead...
>
> Very odd, looks like http://stackoverflow.com/questions/7050180/global-
> variable-overrides-session-variable-in-php
>
> Can be solved by the above patch files, or by changing php.ini to:
>
> session.bug_compat_42 = Off
> session.bug_compat_warn = Off
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1333222
>
> Title:
> Catchable fatal error
>
> Status in Xibo Open Source Digital Signage:
> Fix Committed
>
> Bug description:
> Catchable fatal error: Argument 2 passed to PageManager::__construct()
> must be an instance of User, array given, called in
> /var/www/xibo/lib/include.php on line 157 and defined in
> /var/www/xibo/lib/app/pagemanager.class.php on line 43
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xibo/+bug/1333222/+subscriptions
>

Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.