Blank Window when attempting Upload file to Course

Anything about what happens on the user and teacher side
jwood01
Newbie
Posts: 9
Joined: Mon Dec 30, 2019 10:58 pm
Version: forma.lms 2.0

Blank Window when attempting Upload file to Course

Post 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.

alfa24
Senior Boarder
Posts: 971
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Window when attempting Upload file to Course

Post by alfa24 »

Turn on the debug, you Will see a fatal error instead of the blank Page. Post here the error.
I'm Jasmines, the One. If you need, you can contact me.

jwood01
Newbie
Posts: 9
Joined: Mon Dec 30, 2019 10:58 pm
Version: forma.lms 2.0

Re: Blank Window when attempting Upload file to Course

Post 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

alfa24
Senior Boarder
Posts: 971
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Window when attempting Upload file to Course

Post by alfa24 »

I'm Jasmines, the One. If you need, you can contact me.

jwood01
Newbie
Posts: 9
Joined: Mon Dec 30, 2019 10:58 pm
Version: forma.lms 2.0

Re: Blank Window when attempting Upload file to Course

Post 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

alfa24
Senior Boarder
Posts: 971
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Window when attempting Upload file to Course

Post by alfa24 »

You must have the mime_magic extension on. Check your php.ini and look in phpinfo().
I'm Jasmines, the One. If you need, you can contact me.

jwood01
Newbie
Posts: 9
Joined: Mon Dec 30, 2019 10:58 pm
Version: forma.lms 2.0

Re: Blank Window when attempting Upload file to Course

Post by jwood01 »

Alfa24,

We do not have the mime_magic extension turned on.

Other thoughts?

alfa24
Senior Boarder
Posts: 971
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Window when attempting Upload file to Course

Post 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.
I'm Jasmines, the One. If you need, you can contact me.

jwood01
Newbie
Posts: 9
Joined: Mon Dec 30, 2019 10:58 pm
Version: forma.lms 2.0

Re: Blank Window when attempting Upload file to Course

Post by jwood01 »

Alfa,

I do appreciate your help. I will send you a PM

alfa24
Senior Boarder
Posts: 971
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Window when attempting Upload file to Course

Post by alfa24 »

I'm afraid you're having mail problems...
I'm Jasmines, the One. If you need, you can contact me.

Post Reply