User Upload file CSV from excel cannot be used

User Upload file CSV from excel cannot be used

by Winston Seares -
Number of replies: 5
Hi,

Using Moodle Moodle 1.9.2+ (Build: 20080910)
I tried using excel in creating a csv file to upload users. and seeing that it needs to be in utf-8 i save it again in notepad.

But when I press upload I get file is empty error.

But When I open it in notepad there is data in it.

Followed the help in setting up the file.

thanks

Average of ratings: -
In reply to Winston Seares

Re: User Upload file CSV from excel cannot be used

by Mathieu Petit-Clair -
Picture of Core developers Picture of Moodle HQ Picture of MoodleCloud team Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi Winston,

Starting in 1.9, the file doesn't need to be UTF-8. You can select the encoding on the import page.

Can you go in server->debugging and activate the display of error messages and possibly increase the debug level as well (that's the first select box on the page). This should display a bit more information about the error...

Mat
In reply to Mathieu Petit-Clair

Re: User Upload file CSV from excel cannot be used

by Winston Seares -
Hi,

Got this:

Notice: Array to string conversion in /opt/moodle/html/lib/pear/HTML/QuickForm/Rule/Required.php on line 39

The CSV file is empty
Stack trace:
  • line 1651 of lib/deprecatedlib.php: call to debugging()
  • line 99 of admin/uploaduser.php: call to error()

thanks
In reply to Winston Seares

Re: User Upload file CSV from excel cannot be used

by Tim P -
Hi, I'm having exactly the same problem, using Moodle 1.9.2+ (Build: 20080924). When I try to upload a CSV file I get:
Notice: Array to string conversion in /opt/moodle/html/lib/pear/HTML/QuickForm/Rule/Required.php on line 39
"The CSV File is empty"
Stack trace:
  • line 1651 of lib/deprecatedlib.php: call to debugging()
  • line 99 of admin/uploaduser.php: call to error()
I'm using moodle on SME Server 7.3 (www.contribs.org), I don't know if that makes a difference or not. I've used Moodle successfully on that server before, although with version 1.8.2+ (2007021520), not 1.9.2.

Should one of us file a bug report?
In reply to Tim P

Re: User Upload file CSV from excel cannot be used

by Tim P -