sp lms v4.07 - Forum | JoomShaper
Solved Extensions

sp lms v4.07

Asked by marian 4 years ago Last activity 4 years ago

Hi,
thank you for updating the LMS to version 4.07, unfortunately, after switching to PHP 8.0.20 or 8.1.7 (Joomla 4.2), clicking on the lecturer gives me an error:
round(): Argument #1 ($num) must be of type int|float, string given
When I restore PHP 7.4.30 - everything is OK. What am I doing wrong?
Thanks for the advice.

Accepted answer

Marked as the solution
Toufiq Senior Staff

Go to this file location and download the default.php file replace on your production site.

templates/your_template/html/mod_login/default.php 

16 more replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

Before update any product you should create an staging site.

https://drive.google.com/file/d/1ms8hPQfM3xfF4XUO0W4pUZAhzGUqxBwD/view

  1. Create a subdomain from your cPanel
  2. Export your existing site Database from PHPMyAdmin
  3. Create a new Database
  4. Import the existing Database to the new Database
  5. Update configuration.php file
  6. Go to the administrator of the staging site

-Thanks

marian Asked this

Thanks.

marian Asked this

done, protection off

Toufiq Senior Staff

But, system information says it is still now PHP 7.4. Did you read my previous reply? And is it possible to create an staging site? Thanks

marian Asked this

Hi, I switched PHP to v8.1.7.
The edulif subdomain is the working version.

Toufiq Senior Staff

Please check now. I just updated this line of code

templates/edulif/html/com_splms/teacher/default.php
<?php echo gmdate("H", round($this->item->featuredCourse->duration)) . 'h'; ?>
<?php echo gmdate("i", round($this->item->featuredCourse->duration)) . 'm'; ?>

to

<?php echo gmdate("H", round(strtotime($this->item->featuredCourse->duration))) . 'h'; ?>
<?php echo gmdate("i", round(strtotime($this->item->featuredCourse->duration))) . 'm'; ?>

-Thanks

marian Asked this

Hi, something has changed, but the front end is still broken (as a whole with PHP 8.1)

Toufiq Senior Staff

Please check now. Thanks

marian Asked this

Hi, perfect, thank you very much. What should I do in the sharp version?

Log in to reply.