PHP User Error Log
Support › MB Elementor Integrator › PHP User Error LogResolved
- This topic has 9 replies, 2 voices, and was last updated 2 years, 1 month ago by
Yasmine.
-
AuthorPosts
-
March 7, 2023 at 12:09 AM #40856
Yasmine
ParticipantHi,
I am getting this error:
/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285
Any idea what could be causing it?
Many thanks,
YasmineMarch 7, 2023 at 6:58 PM #40871Peter
ModeratorHello,
I don't know what the error on your site is. Can you please share the full error log? You can use https://pastebin.com/ and share the link here.
Also, please let me know how I can reproduce the issue.
March 11, 2023 at 3:25 AM #40949Yasmine
ParticipantSure, here are the logs from today: https://pastebin.com/cn0efYPN
March 11, 2023 at 3:26 AM #40950Yasmine
ParticipantAnd I don't know how to reproduce. I can only see the issue in php_errorlog and do not know yet what issue it is reporting on
March 11, 2023 at 8:57 AM #40952Peter
ModeratorHello,
Thanks for your additional information.
I've escalated this issue to the development team to fix it in the next update. Currently, it might not affect any function of the Meta Box plugins on your site.
March 13, 2023 at 1:28 AM #40977Yasmine
ParticipantGreat, thank you!
March 20, 2023 at 12:49 AM #41104Yasmine
ParticipantHi I found when the issue was outputting..
I use the meta box group skin for a group of 4 custom fields. When one of the values is not filled in, rather than showing blank. It shows this error directly on my webiste, I would really appreciate the fix in the next update:Warning: array_column() expects parameter 1 to be array, null given in ../public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285
Warning: array_combine() expects parameter 2 to be array, null given in ../public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285
Many thanks,
YasmineMarch 20, 2023 at 1:08 AM #41105Yasmine
ParticipantThis group field is as follows:
<?php
$groups = rwmb_meta( 'resources_group' );
foreach ( $groups as $group ) {// Field resource_or_database_type:
echo $group[ 'resource_or_database_type' ] ?? '';// Field name_of_resource:
echo $group[ 'name_of_resource' ] ?? '';// Field resource_details:
echo $group[ 'resource_details' ] ?? '';// Field resource_link:
echo $group[ 'resource_link' ] ?? '';}
?>Which is a select, text, textarea, URL
In one case, the error showed when there were 3 group field values, that were filled as follows
FIRST GROUP FIELD CONFIG
1. Select: Value there, but not outputted
2. Text: TRUE
3. Text area: FALSE
4. URL: TRUESECOND GROUP FIELD CONFIG
1. Select: Value there, but not outputted
2. Text: TRUE
3. Text area: FALSE
4. URL: TRUETHIRD GROUP FIELD CONFIG
1. Select: Value there, but not outputted
2. Text: TRUE
3. Text area: TRUE
4. URL: TRUEThe error showed beneath the first two fields, which had no value in the text area. When I added a space as the value in the text area for the first two, the error still showed. When the text area field was taken out of the MB Group Skin template, no error showed.
I think the error is due to there being no value in a field.
March 20, 2023 at 6:31 PM #41114Peter
ModeratorHello,
This issue has been fixed in this commit https://github.com/wpmetabox/mb-elementor-integrator/commit/3120d4507d3a703271693a170570b711aceac3d2
You can try to apply the change on your site or wait for the next update of the plugin. Thanks.
March 20, 2023 at 11:09 PM #41127Yasmine
ParticipantThanks Peter, I can wait 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.