New 3.8.0 installation, no test data
In Global Config, turn on maximum error messages
Create a category, call it 'Test'
Create custom field and assign it to the category 'Test'
Go to Articles, set the list filter to filter on Category 'Test'
Click New Article, get error
Notice: Array to string conversion in C:\xampp7\htdocs\test\administrator\components\com_fields\helpers\fields.php on line 330
Error as stated
Both live Siteground host and local xampp.
PHP7
J3.8.0
The error happens because the Category Filter dropdown has changed to multiselect, so in my example, the field helper is given an array of cat id's instead of a single cat id to work with. The New Article form tries to load custom fields for the specified category but its now an array of one or more catid's instead of just a single catid.
My suggestion would be to check the incoming catid for an array and if found, to just use the first catid.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-22 19:53:42 |
Closed_By | ⇒ | gaelicwinter |
Status | Closed | ⇒ | New |
Closed_Date | 2017-09-22 19:53:42 | ⇒ | |
Closed_By | gaelicwinter | ⇒ |
reopened
Category | ⇒ | com_fields |
Status | New | ⇒ | Duplicate Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-23 04:59:36 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18078
closed as duplicated Report #17974. Thanks for Hint @ggppdk