Forums | Mahara Community

Support /
csv import

anonymous profile picture
Deleted user
Posts: 3

28 May 2010, 9:39 AM

When I try to import users via csv-File I get the following error:

Fatal error: require_once() [function.require]: Failed opening required 'pear/File.php' (include_path='/usr/share/mahara/lib/:/usr/share/mahara/lib/pear/:.:/usr/share/php:/usr/share/pear') in /usr/share/mahara/admin/users/uploadcsv.php on line 163

Any help would be greatly appreciated!

anonymous profile picture
Deleted user
Posts: 3

28 May 2010, 5:23 PM


I resolved  the problem partly:

in uploadcsv.php it says:


So I just copied /usr/share/mahara/lib/file.php to /usr/share/mahara/lib/pear/File.php

But I can't find CSV.php (or csv.php) anywhere! This must be a bug.

Could someone please send me the file CSV.php? (and pear/File.php because I don't know if I have the right one)

Thank you very much for your help!


anonymous profile picture
Deleted user
Posts: 808

30 May 2010, 5:10 PM


I'm not sure why you didn't get File.php, but it could be because you installed Mahara using the debian package which may rely on the system's File.php & File/CSV.php.

If that's the case it's a bug in Mahara because it's looking in the wrong place.  Changing those lines to


may work.  If not, you can find the copies of those files that are included with Mahara by browsing the source here:

3 results