# Markbook issue using weighting and term grouping

**URL:** <https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290>\
**Category:** General\
**Created:** [July 23, 2023, 10:53am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290 "2023-07-23T10:53:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [July 23, 2023, 10:53am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/1 "2023-07-23T10:53:57Z")

</div>

Hi folks,

I’m using the latest version of Gibbon (v25). I have the following issue occurring on php 8+.

Markbook settings

- Enable Column Weighting: YES
- Group Columns by Term: YES

I can now create my first assessment for a class and I assign it to “Term 1”, which works just fine. Then I switch the filter from “All Terms” to “Term 1” and I get the “OH NO!” error message.

Apache throws this:

[Sun Jul 23 10:34:07.988800 2023] [php:notice] [pid 22050] [client 127.0.0.1:42154] Uncaught Exception: TypeError - Unsupported operand types: null + string in /etc/debian-edu/www/srv/core-25.0.00/modules/Markbook/markbook\_view\_allClassesAllData.php on line 962, referer: [http://localhost/srv/core-25.0.00/index.php?q=/modules/Markbook/markbook\_view.php&gibbonCourseClassID=00002426](http://localhost/srv/core-25.0.00/index.php?q=/modules/Markbook/markbook_view.php&gibbonCourseClassID=00002426)

Can somebody reproduce this?

Kind regards,  
Roman

---

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [July 28, 2023, 12:43pm UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/2 "2023-07-28T12:43:37Z")

</div>

@sandra Seen this post yet? 😉

---

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [August 22, 2023, 9:46am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/3 "2023-08-22T09:46:50Z")

</div>

Hi folks!

Is there any development on this issue?

Could anybody at least reproduce this?

Kind regards,  
Roman

---

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [October 4, 2023, 7:33am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/4 "2023-10-04T07:33:34Z")

</div>

Hi folks!

This topic is kind of getting old with no reply so far.

Is the issue unclear? Is more information needed?

Kind regards,  
Roman

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [October 18, 2023, 4:08am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/5 "2023-10-18T04:08:03Z")

</div>

Hi Roman, are you able to share which specific version of PHP you’re using? PHP 8 has been adding progressively more and more strict type checking, which is what causes these types of errors. Currently Gibbon v25 only supports up to 8.1, but if this is an 8.2 error, it’d be good for us to sort it out before the next release.

---

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [October 18, 2023, 7:29am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/6 "2023-10-18T07:29:39Z")

</div>

Hi Sandra,

I tried various v8 versions. They are all throwing the same issue. As mentioned in the first post, the current workaround is to not select a specific term, which works just fine.

However, getting to the end of the academic year, the markbook gets rather full with many assessments. To have a working term filter would make things easier for the teachers.

Kind regards,  
Roman

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [October 20, 2023, 1:47am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/7 "2023-10-20T01:47:44Z")

</div>

Thanks Roman, looks like a type checking error. I’ve had a look and it appears the issue has already been fixed in v26, can you try updating the following file and see if the error persists? Thanks.

> <https://github.com/GibbonEdu/core/blob/v26.0.00/modules/Markbook/markbook_view_allClassesAllData.php>

---

<div class="post-metadata">

**Author:** ![meierrom](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@meierrom](https://ask.gibbonedu.org/u/meierrom)\
**Post date:** [October 23, 2023, 1:34pm UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/8 "2023-10-23T13:34:06Z")

</div>

Yep, works just fine. I’ll update as soon as possible. Thanks!

---

<div class="post-metadata">

**Author:** ![smarcil](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@smarcil](https://ask.gibbonedu.org/u/smarcil)\
**Post date:** [November 8, 2023, 1:19am UTC](https://ask.gibbonedu.org/t/markbook-issue-using-weighting-and-term-grouping/8290/9 "2023-11-08T01:19:09Z")

</div>

> [@meierrom](#):
>
> on line 962,

Hello Sandra,

I had the same problem and installing the corrected file solved my problem.

THANKS !

Sylvain
