Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[V7.0.5] Error on t...
 
Notifications
Clear all

[V7.0.5] Error on ticket report

2 Posts
2 Users
0 Reactions
2,982 Views
(@kugan49)
Posts: 4
Active Member
Topic starter
 
[#5094]

When I try to open report ticket, "Courbe de progression des tickets" I have :

2018-04-24 08:44:24.894 ** ERROR ** [V7.0.5] on file '/var/www/projeqtor/report/headerFunctions.php' at line (89)
2018-04-24 08:44:24.894 ** ERROR ** [V7.0.5] cause = dirname() expects exactly 1 parameter, 2 given


 
Posted : 24 Apr 2018 10H48
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Issue occurs only on PHP 5.6 or lower

Fix is to replace last lines in /report/headerFunctions.php, from

function getFontLocation($font) {
  $current=dirname(__FILE__,2);
  return "$current/external/pChart2/fonts/$font.ttf";
}
?>

to

function getFontLocation($font) {
  $current=dirname_recursive(__FILE__,2);
  return "$current/external/pChart2/fonts/$font.ttf";
}
function dirname_recursive($path, $count=1){
  if ($count > 1){
    return dirname(dirname_recursive($path, --$count));
  }else{
    return dirname($path);
  }
}
?>

 
Posted : 24 Apr 2018 16H15
Share:

Scroll to Top