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
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
Replace code with
function isFF() {
$browser=Audit::getBrowser();
if ($browser['browser']=='Mozilla Firefox') {
if ($browser['version']) {
return $browser['version'];
} else {
return true;
}
}
return false;
}
Which browser are you using ?
Google Chrome