Page 1 of 2
Blank Window when attempting Upload file to Course
Posted: Mon Dec 30, 2019 11:16 pm
by jwood01
Issue: From the Teacher Area, New Learning Object when I try to upload/insert a file into a course (images, files, etc.) I get a blank page on submit.
However I can upload images to a course, such as a logo and a sponsor image from the admin area.
Here is the URL displayed after selecting file and clicking submit. [mydomain]/appLms/index.php?modname=item&op=insitem
This is a New Install of Forma 2.3 on a Dedicated Server.
Here is the server config:
MySQL information
sql vers: 5.6.45
sql mode: NO_ENGINE_SUBSTITUTION
sql encoding: latin1
sql collation: latin1_swedish_ci
sql timezone: SYSTEM
Info about PHP
PHP version: 7.0.33
Site Timezone: UTC
"safe_mode" configuration: Off
Configuration of "register_global": Off
Configuration of "magic_quotes_gpc": Off
Configuration of "upload_max_filesize": 250M
Configuration of "post_max_size": 24M
Configuration of "max_execution_time": 240s
Any thoughts?
Thank you.
Re: Blank Window when attempting Upload file to Course
Posted: Tue Dec 31, 2019 7:43 am
by alfa24
Turn on the debug, you Will see a fatal error instead of the blank Page. Post here the error.
Re: Blank Window when attempting Upload file to Course
Posted: Thu Jan 02, 2020 5:21 pm
by jwood01
Alfa24, Here are the errors specific to the file issue.
Warning: Missing argument 3 for sl_upload(), called in /home/yourdir/public_html/learn/appLms/modules/item/item.php on line 74 and defined in /home/yourdir/public_html/learn/lib/lib.upload.php on line 74
Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /home/yourdir/public_html/learn/lib/lib.upload.php:104 Stack trace: #0 /home/yourdir/public_html/learn/appLms/modules/item/item.php(74): sl_upload('/tmp/php79Ee5j', '/appLms/item/1_...') #1 /home/yourdir/public_html/learn/appLms/modules/item/item.php(227): insitem() #2 /home/yourdir/public_html/learn/appLms/class.module/class.definition.php(105): include('/home/yourdir/...') #3 /home/yourdir/public_html/learn/appLms/index.php(84): LmsModule->loadBody() #4 {main} thrown in /home/yourdir/public_html/learn/lib/lib.upload.php on line 104
Re: Blank Window when attempting Upload file to Course
Posted: Thu Jan 02, 2020 5:36 pm
by alfa24
Re: Blank Window when attempting Upload file to Course
Posted: Thu Jan 02, 2020 8:03 pm
by jwood01
Alfa24, Thank you. Now we are getting:
Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /home/yourdir/public_html/learn/lib/lib.upload.php:105 Stack trace: #0 /home/yourdir/public_html/learn/appLms/modules/item/item.php(74): sl_upload('/tmp/phpagUDS7', '/appLms/item/1_...') #1 /home/yourdir/public_html/learn/appLms/modules/item/item.php(227): insitem() #2 /home/yourdir/public_html/learn/appLms/class.module/class.definition.php(105): include('/home/yourdir/...') #3 /home/yourdir/public_html/learn/appLms/index.php(84): LmsModule->loadBody() #4 {main} thrown in /home/yourdir/public_html/learn/lib/lib.upload.php on line 105
Re: Blank Window when attempting Upload file to Course
Posted: Thu Jan 02, 2020 8:18 pm
by alfa24
You must have the mime_magic extension on. Check your php.ini and look in phpinfo().
Re: Blank Window when attempting Upload file to Course
Posted: Fri Jan 03, 2020 4:56 pm
by jwood01
Alfa24,
We do not have the mime_magic extension turned on.
Other thoughts?
Re: Blank Window when attempting Upload file to Course
Posted: Fri Jan 03, 2020 5:11 pm
by alfa24
If you don't want to turn it on, you need a rewrite of the library. Contact me privately if you want to proceed.
Re: Blank Window when attempting Upload file to Course
Posted: Mon Jan 06, 2020 10:47 pm
by jwood01
Alfa,
I do appreciate your help. I will send you a PM
Re: Blank Window when attempting Upload file to Course
Posted: Mon Jan 27, 2020 3:25 pm
by alfa24
I'm afraid you're having mail problems...