|
#111
|
||||
|
||||
|
|
|
#112
|
|||
|
|||
|
Hello all,
I have a problem with this mode, when all set to Import base system and try to run this mod from the SCP system throws me a message Welcome back, Fatal error: Call to a member function getUsername () on a non-object in C: \ xampp \ htdocs \ amir \ include \ staff \ header.inc.php on line 35 I think it comes to PHP, but I'm not sure, so if somebody has a solution that would like me to respond. thank you |
|
#113
|
||||
|
||||
|
Quote:
|
|
#114
|
|||
|
|||
|
Quote:
<p id="info">Welcome back, <strong><?=$thisuser->getUsername()?></strong> <?php if($thisuser->isAdmin() && !defined('ADMINPAGE')) { ?> | <a href="admin.php">Admin Panel</a> | <a href="reports.php">Reports</a> <?}else{?> | <a href="index.php">Staff Panel </a> <? if((!$thisuser->isadmin() && !$thisuser->isManager() && $graphOptions['viewable']=='staff') || (!$thisuser->isadmin() && $thisuser->isManager() && (($graphOptions['viewable']=='managers') || ($graphOptions['viewable']=='staff'))) || $thisuser->isadmin()) {?> | <a href="reports.php">Reports</a> <?}?> <?}?> | <?="$isdeptmanager";?><a href="profile.php?t=pref">My Preference</a> | <a href="logout.php">Log Out</a></p> <?}?> that is working with old version php, and now is not working please help... |
|
#115
|
||||
|
||||
|
The following code in the header is not my code but part of the base install:
Code:
<?=$thisuser->getUsername()?> Please remove it or comment it out and then see what kind of error, if any, you get and report back. Last edited by scottro; 05-27-2012 at 12:37 PM. |
|
#116
|
|||
|
|||
|
Quote:
Welcome back, Fatal error: Call to a member function isAdmin() on a non-object in C:\xampp\htdocs\emir\include\staff\header.inc.php on line 39 on line 39 I have this code if($thisuser->isAdmin() && !defined('ADMINPAGE')) { ?> |
|
#117
|
||||
|
||||
|
Ok, that's what I figured. For whatever reason your object $thisuser appears to be unpopulated. Are you sure you've logged in properly?
|
|
#118
|
|||
|
|||
|
Yes im sure. I have only one user on osticket...
|
|
#119
|
|||
|
|||
|
Just wanted to say thanks for this - works great!
|
|
#120
|
|||
|
|||
|
Hi Sccotro,
Kudos for this great work. The issue we are facing is the Hours to Resolution time column shows 0. What needs to be fixed to get the correct values? Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|