I got this error : "Argument #1 is not an array"

Hi! Recently I succesfully installed Gibbon on a local server I set up (linux mint machine using XAMPP). Inside Gibbon I’ve managed to configure and perform basic functions, like uploading users, creating classes and courses, and enrolling students and teachers.

Yesterday, When trying some other functions I clicked on “sync course enrolment” (admin > timetable admin) and then I cliked on “sync all”. After that, the following error message showed up in the Home menu and I haven’t been able to fix it:

Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 79 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 80 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 102 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 103 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 79 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 80 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 102 in src/Tables/Prefab/RollGroupTable.php
Warning: array_replace(): Argument #1 is not an array
Line 373 in src/Tables/DataTable.php
Line 103 in src/Tables/Prefab/RollGroupTable.php

How could I fix this? any help will be welcomed (I’m relatively new to php, but I can understand some basic functions)

Hi hernandez_s, welcome to the community. PHP has a variety of different error levels, of which warning is relatively low, and won’t cause any issues. I’d advise you to adjust your PHP error output to disable onscreen output. This will hide such minor irritants (which pose no harm) from users, but will still log them if you need to find them later. You can do this in php.ini, which in Mint Linux should be in /etc/php/apache or similar. Remember to restart Apache when the change has been made.

Hi @ross is this something you’d be interested to fix in v19?

Thanks!

Ross

Thanks @admin I appreciate the help :slight_smile: