- Posts: 13
- Thank you received: 0
Error: Array to string conversion in com_eventbooking/view/event.php on line 90
- Jeff Dun
- Topic Author
- Offline
- New Member
-
Less
More
2 years 6 months ago #159499
by Jeff Dun
Error: Array to string conversion in com_eventbooking/view/event.php on line 90 was created by Jeff Dun
I'm getting this error in buildFormData when i submit an event, it has an error in the model, and is returned to the client to fix.
I have a custom validateFormInput override in the event model.
buildFormData is basically getting the custom attribute params in item->params instead of the event params.
I don't know if its something i've done, or if its a bug.
Any ideas?
Thanks
Jeff
I have a custom validateFormInput override in the event model.
buildFormData is basically getting the custom attribute params in item->params instead of the event params.
I don't know if its something i've done, or if its a bug.
Any ideas?
Thanks
Jeff
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #159553
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error: Array to string conversion in com_eventbooking/view/event.php on line 90
Sorry Jeff. I believe I fixed the issue but forgot to reply you here. Please access to My Downloads menu item, download latest package of Events Booking, upgrade it to your site, then check it again. The error should be gone
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jeff Dun
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
2 years 6 months ago #159559
by Jeff Dun
Replied by Jeff Dun on topic Error: Array to string conversion in com_eventbooking/view/event.php on line 90
Yes, its fixed.
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- Jeff Dun
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
2 years 6 months ago #159560
by Jeff Dun
Replied by Jeff Dun on topic Error: Array to string conversion in com_eventbooking/view/event.php on line 90
I can see the change - you are not converting to string anymore.
However, i don't understand why sometimes i get the event params in item->params, and sometimes the customFields.
For example, the first time, i can see user_registration.
The second time, i get the customFields.
I can see down further in the buildFormData method where data->params is set:
$registry = new Registry($item->custom_fields);
$data = new stdClass();
$data->params = $registry->toArray();
To me it seems that the same variable is being used for two different purposes.
Thanks
Jeff
However, i don't understand why sometimes i get the event params in item->params, and sometimes the customFields.
For example, the first time, i can see user_registration.
The second time, i get the customFields.
I can see down further in the buildFormData method where data->params is set:
$registry = new Registry($item->custom_fields);
$data = new stdClass();
$data->params = $registry->toArray();
To me it seems that the same variable is being used for two different purposes.
Thanks
Jeff
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #159565
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error: Array to string conversion in com_eventbooking/view/event.php on line 90
Hi Jeff
The code you mentioned is unrelated. $items->params is different from $data->params. $data->params there, is just a temp variable which is used to build the form object to allow rendering form to edit event custom fields.
The code you mentioned is unrelated. $items->params is different from $data->params. $data->params there, is just a temp variable which is used to build the form object to allow rendering form to edit event custom fields.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.