help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Php error
Php error
6 years 2 months ago
Hi,
with php 7.2 I have this error:
PHP Warning: Declaration of JemViewVenue::display() should be compatible with Joomla\CMS\MVC\View\HtmlView::display($tpl = NULL) in /components/com_jem/views/venue/view.feed.php on line 15
Some solution?
Thanks
Joomla 3.8.12 and Jem 2.2.3
with php 7.2 I have this error:
PHP Warning: Declaration of JemViewVenue::display() should be compatible with Joomla\CMS\MVC\View\HtmlView::display($tpl = NULL) in /components/com_jem/views/venue/view.feed.php on line 15
Some solution?
Thanks
Joomla 3.8.12 and Jem 2.2.3
Please Log in or Create an account to join the conversation.
Re: Php error
6 years 2 months ago - 6 years 2 months ago
go to <joomlaroot>/components/com_jem/views/venue/view.feed.php and add "$tpl = null" (without ") to the display() function. it should look like: public function display($tpl = null)
The same do in the file yjoomlaroot>/components/category/view.feed.php. I think someone forgot to fix those both files.
Edit: And thats not an error, thats a warning
The same do in the file yjoomlaroot>/components/category/view.feed.php. I think someone forgot to fix those both files.
Edit: And thats not an error, thats a warning
Last edit: 6 years 2 months ago by Egnarts.
The following user(s) said Thank You: jojo12
Please Log in or Create an account to join the conversation.
Re: Php error
6 years 2 months ago
@Egnarts: if you are on a php less than 7.2 and you have changed these files like that, is there a warning?
Can we officially change that in the official package without problems?
Can we officially change that in the official package without problems?
Please Log in or Create an account to join the conversation.
Re: Php error
6 years 2 months ago
I just tried that it works, I did not see the warning in my websites and did not checked if the warning is away.
I hoped giampus will give us feedback. But if you look in the other view.xxx.php files, the display() function always has something like that as parameter. So I think hoffi just forgot those two files.
I hoped giampus will give us feedback. But if you look in the other view.xxx.php files, the display() function always has something like that as parameter. So I think hoffi just forgot those two files.
Please Log in or Create an account to join the conversation.
Time to create page: 0.442 seconds