Bug In Rating.php - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Bug In Rating.php

RB

Ronny Buelund

Template 2 years ago

In the file shaper_travelia/html/layouts/joomla/content/rating.php on line 15 - this code is not working in Joomla 4: $layout = JRequest::getCmd('view', 'article');

I believe this template should be Joomla 4 compatible. Can you please provide me a fix asap, and also fix it in the tmeplate download package.

0
4 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #106029

Hello Ronny Buelund

The template is Joomla 4 compatible. Make sure that you are using the latest version. Your shared link is not working. Please share the issue page link to check.

Best regards

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
2 years ago #106030

@Ronny Buelund
To fix this issue, you can replace the line with the following Joomla 4 version.

Source: https://github.com/JoomShaper/Helix3/blob/master/templates/shaper_helix3/html/layouts/joomla/content/rating.php#L17

$layout = Factory::getApplication()->input->get('view', 'article');

@Ofi
I can confirm this issue, the rating.php is not compatible with Joomla 4.

How to reproduce:

  • Install Joomla 4.2.8
  • Install Travelia latest version 2.0.0
  • enable rating within the article configuration
  • change default template to travelia
  • view the frontpage

0
RB
Ronny Buelund
Accepted Answer
2 years ago #106034

I actually made this fix myself - but I would appreciate that Joomshaper fixed this problem in the package. When stating it is Joomla 4 compatible - then it should be that !

1
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #108203

Thanks for the update. Please share the fix if possible. I have already added this to the developer's board for checking. They will update it in the next release.

0