# Log flooded with mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - Redlining Server

**URL:** <https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320>\
**Category:** Product Support\
**Created:** [May 4, 2021, 5:09am UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320 "2021-05-04T05:09:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickeidemiller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/patrickeidemiller/32/511_2.png) [@patrickeidemiller](https://forum.mautic.org/u/patrickeidemiller)\
**Post date:** [May 4, 2021, 5:09am UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/1 "2021-05-04T05:09:43Z")

</div>

**Your software**  
My Mautic version is: 3.3.3  
My PHP version is: 7.4  
My Database type and version is: 10.3.20-MariaDB-cll-lve

**Your problem**  
My problem is:  
Updated to 3.3.3 and then resolved all outstanding items in the logs. 1 day later the log is flooded with the error below and webserver swamped to redline.

mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {“args”:,“orderedValues”:,“keywordValues”:,“assignedValues”:,“i”:0,“last”:false}

Steps I have tried to fix the problem:  
Searched the support forums and web for this error with nothing found.

---

<div class="post-metadata">

**Author:** ![yukzanaly](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yukzanaly/32/1769_2.png) [@yukzanaly](https://forum.mautic.org/u/yukzanaly)\
**Post date:** [September 15, 2021, 4:31pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/2 "2021-09-15T16:31:48Z")

</div>

got the same error log too. I’m on mautic v 3.3.4

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 17, 2021, 2:18pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/3 "2021-09-17T14:18:45Z")

</div>

Hi, I looked over the code of the plugin it looks like we are dealing with an empty array of some arguments. Can you post configuration of your focus item in Mautic and open up issue on github?

So we can reproduce this. The thing is fix for this seemss really simple (we actually just need to fix one condition in the code) but I am not sure at this point whether the issue described in the initial post is actually due to improper configuration in Mautic or is it actually a bug.

---

<div class="post-metadata">

**Author:** ![yukzanaly](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yukzanaly/32/1769_2.png) [@yukzanaly](https://forum.mautic.org/u/yukzanaly)\
**Post date:** [September 25, 2021, 4:32pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/4 "2021-09-25T16:32:16Z")

</div>

I don’t know which focus item generates this error.

then, I checked on of my focus item and I think I misconfigured a focus item

On the “what should the focus be” I selected “collect data” and on the Content there isn’t any form selected.

I then changed the focus to emphasize a link

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [November 24, 2021, 1:12pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/5 "2021-11-24T13:12:05Z")

</div>

I got the same error in V4.0.2 all my focus items are collecting data and all of them have forms inside.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [December 19, 2021, 2:06pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/6 "2021-12-19T14:06:54Z")

</div>

we just upgraded a problematic instance to 4.1.0 following my investigation in this [post](https://forum.mautic.org/t/strange-issue-with-upgrading-from-3-2-4-to-4-1-0/21964/6).  
And now I see the same message coming up all the time

```auto
2021/12/19 14:05:11 [error] 1075139#1075139: *100 FastCGI sent in stderr: "PHP message: PHP 
Notice: Trying to access array offset on value of type bool in
 /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in 
/var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php on line 719PHP message: PHP 
Notice: Trying to access array offset on value of type bool in /var/www/mautic/plu

```

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [December 19, 2021, 2:17pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/7 "2021-12-19T14:17:10Z")

</div>

We have focus types of both Link and Form, all seem to be generating this code error.

What else would you like me to produce in order to be able to debug - codfix ?

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [December 19, 2021, 8:27pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/8 "2021-12-19T20:27:55Z")

</div>

I will take a look at it and let you know if I need anything else. For now I think I have enough, thanks.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [December 19, 2021, 8:31pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/9 "2021-12-19T20:31:36Z")

</div>

much appreciated. I am also on the slack channel if you need any assistance.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [December 19, 2021, 10:05pm UTC](https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320/10 "2021-12-19T22:05:22Z")

</div>

Hi,

I made a small fix in lessphp lib inside Mautic core to get ride of the notice, you can see what I have changed here: \< [Improve condition in lessphp lib · mzagmajster/mautic@5ec12f1 · GitHub](https://github.com/mzagmajster/mautic/commit/5ec12f13f78e2e6436595d17fa122b02a6bdd9cd) \>.

Since this is not really issue of Mautic but rather the lessphp library Mautic uses, it would make sense to apply this fix to lessphp project (referenced in commit message above).

The thing is that original repository looks abandoned so I am not really sure what will be the strategy here.

I think the best thing here would be to fork or find the newer fork of original repository and commit the fix there, then release new version and use that one.

Maybe someone from Mautic Core team can give an advice how to get this fix to Mautic future release? @silavapi

Regards, M.
