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.
sp lms v4.07
Accepted answer
Marked as the solutionGo 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
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
- Create a subdomain from your cPanel
- Export your existing site Database from PHPMyAdmin
- Create a new Database
- Import the existing Database to the new Database
- Update configuration.php file
- Go to the administrator of the staging site
-Thanks
Thanks.
done, protection off
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
Hi, I switched PHP to v8.1.7.
The edulif subdomain is the working version.
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
Hi, something has changed, but the front end is still broken (as a whole with PHP 8.1)
Please check now. Thanks
Hi, perfect, thank you very much. What should I do in the sharp version?
Hi, everything works perfectly, thank you very much for your help.
You are most welcome. Will you please spend some to write a review about our product and support quality?
Hi, yes, but first the second case from a month ago needs to be closed...
Hi, yes, but first the second case from a month ago needs to be closed...
Not clear
I have informed our teammate. Thanks