Forums | Mahara Community
Support
/
csv import
28 May 2010, 9:39
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!
28 May 2010, 17:23
Hi,
I resolved the problem partly:
in uploadcsv.php it says:
require_once('pear/File.php');
require_once('pear/File/CSV.php');
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!
30 May 2010, 17:10
Hi,
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
require_once('File.php');
require_once('File/CSV.php');
may work. If not, you can find the copies of those files that are included with Mahara by browsing the source here: