Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Mods and Customizations

Reply
 
Thread Tools Search this Thread Display Modes
  #111  
Old 05-02-2012, 08:59 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

Oooops! Fixed, thanks!
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #112  
Old 05-04-2012, 03:56 AM
ghostx ghostx is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
Default Problem

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
Reply With Quote
  #113  
Old 05-04-2012, 09:15 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

Quote:
Originally Posted by ghostx View Post
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
What is line 35 of C:\xampp\htdocs\amir\include\staff\header.inc.php ?
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #114  
Old 05-27-2012, 11:36 AM
ghostx ghostx is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
Default

Quote:
Originally Posted by scottro View Post
What is line 35 of C:\xampp\htdocs\amir\include\staff\header.inc.php ?
in 35 line's is:

<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...
Reply With Quote
  #115  
Old 05-27-2012, 12:35 PM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

The following code in the header is not my code but part of the base install:

Code:
<?=$thisuser->getUsername()?>
Can you TEMPORARILY remove this and see if you get further errors? I suspect the issue is not actually getUsername.

Please remove it or comment it out and then see what kind of error, if any, you get and report back.
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs

Last edited by scottro; 05-27-2012 at 12:37 PM.
Reply With Quote
  #116  
Old 05-28-2012, 04:35 AM
ghostx ghostx is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
Default

Quote:
Originally Posted by scottro View Post
The following code in the header is not my code but part of the base install:

Code:
<?=$thisuser->getUsername()?>
Can you TEMPORARILY remove this and see if you get further errors? I suspect the issue is not actually getUsername.

Please remove it or comment it out and then see what kind of error, if any, you get and report back.
When I delete this line i have error

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')) { ?>
Reply With Quote
  #117  
Old 05-28-2012, 09:21 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

Quote:
Originally Posted by ghostx View Post
When I delete this line i have error

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')) { ?>
Ok, that's what I figured. For whatever reason your object $thisuser appears to be unpopulated. Are you sure you've logged in properly?
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #118  
Old 05-28-2012, 09:33 AM
ghostx ghostx is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
Default

Quote:
Originally Posted by scottro View Post
Ok, that's what I figured. For whatever reason your object $thisuser appears to be unpopulated. Are you sure you've logged in properly?
Yes im sure. I have only one user on osticket...
Reply With Quote
  #119  
Old 05-30-2012, 05:38 AM
jimmyeao jimmyeao is offline
Junior Member
 
Join Date: May 2012
Posts: 9
Smile

Just wanted to say thanks for this - works great!
Reply With Quote
  #120  
Old 06-06-2012, 09:06 AM
avijay avijay is offline
Junior Member
 
Join Date: Apr 2012
Posts: 4
Default Average resolution time column showing 0 in total

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.
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:39 AM.