Deprecated : Required parameter $item follows optional parameter $view in

  • Posts: 2

Deprecated : Required parameter $item follows optional parameter $view in was created by jjsjjs

Hello,
I've got this message when opening the menu item where the videoplayer layout was selected:

Deprecated
: Required parameter $item follows optional parameter $view in
D:\server\xampp\htdocs\mywebsite\components\com_yendifvideoshare\src\Helper\YendifVideoShareRoute.php
on line
123

The video plays ok.

This is in Joomla 4, Yendif 2.0.0, PHP 8.0.10. Testing in Xampp before going Live.

Thanks!
2 years 4 months ago #2568

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Deprecated : Required parameter $item follows optional parameter $view in

Sorry about that. I promise that our next version would have this issue addressed.

Quick Solution:

1. Kindly open the file {JOOMLA_ROOT}/components/com_yendifvideoshare/src/Helper/YendifVideoShareRoute.php

2. Locate the following line (#123),
private static function getRoute( $view = 'video', $item ) {
3. Change it as,
private static function getRoute( $view, $item ) {
4. Save the changes and check now.

Hope this solved your issue!
The following user(s) said Thank You: jjsjjs
2 years 4 months ago #2569

Please Log in or Create an account to join the conversation.

  • Posts: 2

Replied by jjsjjs on topic Deprecated : Required parameter $item follows optional parameter $view in

Yes!
I only saw this error when error reporting was enabled.
Seems to be solved!
Thanks very much and a good year to you!
2 years 4 months ago #2570

Please Log in or Create an account to join the conversation.

Time to create page: 0.240 seconds

Business Address

PLUGINSWARE INTERACTIVE PVT LTD
Door No 2A, Venkateshwara Nagar,
1st Main Road, Velachery, Chennai,
Tamilnadu, India
Pincode: 600042
© 2013 - 2024 Pluginsware Interactive Private Limited. All Rights Reserved. The Joomla! name and logo is used under a limited license granted in the United States and other countries.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.