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.

ERROR in log file "...
 
Notifications
Clear all

ERROR in log file "projeqtor.php' at line (4525)"

5 Posts
3 Users
0 Reactions
1,752 Views
(@kh-boukriniaa)
Posts: 2
New Member
Topic starter
 
[#8087]

Hello,
I recently migrated projeqtor from version 5 to the latest version 9.3.4, and really kudos to the whole projeqtor team.
In addition, I have been receiving a repetitive message for 1 day,
2022-02-17 15:20:16.301 ** ERROR ** [V9.4.3] ERROR **
2022-02-17 15:20:16.303
** ERROR ** [V9.4.3] on file 'C:wamp64wwwprojeqtortoolprojeqtor.php' at line (4525)
2022-02-17 15:20:16.304
** ERROR ***** [V9.4.3] cause = Trying to access array offset on value of type null

exactly at the level of the function
function isFF() {
$browser=Audit::getBrowser();

if ($browser['browser']=='Mozilla Firefox') {
if ($browser['version']) {
return $browser['version'];
} else {
return true;
}
}
return false;
}

Can you help me please


 
Posted : 17 Feb 2022 17H35
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
 

Hello,
First of all, you're missing part of the actual function. It should be:

function isFF() {
  $browser=Audit::getBrowser();
  if ($browser['browser']=='Mozilla Firefox') {
    if ($browser['version']) {
      return $browser['version'];
    } else {
      return true;
    }
  }
  return false;
}

If we look in projeqtor/model/Audit.php, we can see that the only case in which the method getBrowser returns null is if

$_SERVER ['HTTP_USER_AGENT']

isn't set.
This means that you're browser probably didn't send the User-Agent header.
Unfortunately, I don't know how to fix this but I hope you'll find a way to make it work. Or maybe a dev can help you


 
Posted : 19 Feb 2022 1H17
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Replace code with

function isFF() {
  $browser=Audit::getBrowser();
  if ($browser['browser']=='Mozilla Firefox') {
    if ($browser['version']) {
      return $browser['version'];
    } else {
      return true;
    }
  }
  return false;
}

 
Posted : 22 Feb 2022 20H00
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Which browser are you using ?
 


 
Posted : 22 Feb 2022 20H13
(@kh-boukriniaa)
Posts: 2
New Member
Topic starter
 

Google Chrome


 
Posted : 03 Mar 2022 18H11
Share:

Scroll to Top