Sp Lms V4.07 - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Sp Lms V4.07

M

marian

Extension 3 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.

0
17 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81711

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

templates/your_template/html/mod_login/default.php 
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81253

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

0
M
marian
Accepted Answer
3 years ago #81265

Thanks.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81270
0
M
marian
Accepted Answer
3 years ago #81349

done, protection off

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81461

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

0
M
marian
Accepted Answer
3 years ago #81473

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81622

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

0
M
marian
Accepted Answer
3 years ago #81627

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81679

Please check now. Thanks

0
M
marian
Accepted Answer
3 years ago #81689

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

0
M
marian
Accepted Answer
3 years ago #81782

Hi, everything works perfectly, thank you very much for your help.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #81853

You are most welcome. Will you please spend some to write a review about our product and support quality? 

https://extensions.joomla.org/extension/sp-page-builder/

0
M
marian
Accepted Answer
3 years ago #82528

Hi, yes, but first the second case from a month ago needs to be closed...

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #82669

Hi, yes, but first the second case from a month ago needs to be closed...

Not clear

0
M
marian
Accepted Answer
3 years ago #82676
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #82829

I have informed our teammate. Thanks

0