aDaneInSpain / component-creator-issues

A code-free repository for handling issues and feature requests for Component Creator for Joomla
https://www.component-creator.com
11 stars 0 forks source link

Deprecated: explode() on list items #739

Open wunschradio opened 2 weeks ago

wunschradio commented 2 weeks ago

Steps to reproduce the issue

Add a list field to select hours per day like

field

Expected result

list view should be fine

Actual result

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /administrator/components/com_component/src/Model/ContentsModel.php on line 235 $options = explode(',', $oneItem->monday);

Name of component and email used to register (if relevant)

component 209823, table _content 336960

please change it to $options = (isset($oneItem->monday)) ? explode(',', $oneItem->monday) : array();

System information (as much as possible)

PHP 8.2

Additional comments

madanedeepali commented 2 weeks ago

We downloaded the specified component and tested it with PHP 8.1 and PHP 8.2, but we couldn’t reproduce the issue. Maximum error reporting was also enabled—please see the attached screenshot for reference. If you are still experiencing the issue, could you provide additional details to help us replicate it?

Screenshot 2024-10-27 at 10 43 02 PM Screenshot 2024-10-27 at 10 43 11 PM Screenshot 2024-10-27 at 10 43 39 PM