COM_SPLMS_ATTACHMENT_UPLOAD_FAILED - Question | JoomShaper

COM_SPLMS_ATTACHMENT_UPLOAD_FAILED

C

cristiwebsas

Extension 3 years ago

I need help, have a problem with LSM the moment the attachment PDF in my lesson See https://i.imgur.com/f0GtwZv.png

0
1 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #3828

Hi there!

Sorry for the inconvenience!

Please enter to your template folder then go to this location \administrator\components\com_splms\models\lesson.php

Replace the current line with the fixed line: https://prnt.sc/sr7hm7

Current line 141:

$media_file = pregreplace("/[\s-]+/", "-", JFile::makeSafe(basename(strtolower($name)))); (working for PHP 7.2 and below)

fixed line 141:

$media_file = pregreplace("/[\s-]+/", "-", JFile::makeSafe(basename(strtolower($name)))); (working for PHP 7.3 and higher)

Hope this helps!

Best Regards

0