Hi Sandra,
I am using gibbon for testing in a windows 10 PC with WAMP 64 bit server installed. I have added and activated the “Data Admin” module but to my surprise though all other menu are working normally but “import from file” is not. when I am clicking on the Import cog-wheel (linkfor example: http://localhost/lms/index.php?q=/modules/Data%20Admin/import_run.php&type=studentEnrolment) it is producing a blank page only with Gibbon page header like this
Can not find out what is the wrong here. Please help.
If you check out https://gibbonedu.org/extend/, you’ll see there are currently two versions of Data Admin: one for Gibbon Core v15, and one for Core v16. Make sure you have the right version for your Gibbon install. If you are running v16, please make sure you have the latest commits from:
Hi Ross,
I am using version 1.2.03 of Data admin with Gibbon version 15.0.01.
All other procedures of data admin is working normally except “import from file”.
The error log in php shows the following line:
`[10-Jun-2018 21:19:31 Asia/Kolkata] PHP Fatal error: Call to undefined function getrusage() in C:\\wamp64\\www\\lms\\modules\\Data Admin\\import_run.php on line 36
[10-Jun-2018 21:19:31 Asia/Kolkata] PHP Stack trace:
[10-Jun-2018 21:19:31 Asia/Kolkata] PHP 1. {main}() C:\\wamp64\\www\\lms\\index.php:0
[10-Jun-2018 21:19:31 Asia/Kolkata] PHP 2. include() C:\\wamp64\\www\\lms\\index.php:667`
```
Please help.
Chinmoy
Aha, looks like this function doesn’t work on Windows pre-PHP7. I wish the PHP docs would put the platform incompatibilities at the top and a bit more noticeable Sharing the PHP log certainly helps, many thanks!
Luckily this should be a quick fix, which can be done one of two ways:
Remove line 36 $resourceStart = getrusage();` from modules/Data Admin/import_run.php
OR
Let me know if this works for you and I’ll post the update as a new version on the Extend page. My testing workflow is for Linux and Mac so sometimes these Windows-specific bugs slip by.