Forum Replies Created
-
AuthorPosts
-
May 13, 2025 at 8:52 PM in reply to: ℹ️Corruptet File MB field Group ID gets up to 32mb on a Multisite #48243
Timo Wessels
ParticipantUnderstanding the Issue
The fields_translations setting in MetaBox is designed to make fields translatable with WPML, but in some cases, it can cause:Recursive serialization of data (data getting wrapped in itself multiple times)
Exponential growth of serialized strings
Memory limit exhaustion during save operationsThe backslash (\) in your configuration ("\\\) indicates an escaping issue that might be corrupting the serialized data structure.
February 13, 2024 at 4:11 AM in reply to: ✅Unregister Custom Table in Database / using Bricks Builder #44554Timo Wessels
ParticipantProblem Solved
My Mistake, I had somme Custom Fields still with the option to save into a custom table. So MB was running 3000 queries only on one Shortcode.
Sorry for my huge st++++pidity, shower that one will never happen again =)February 12, 2024 at 9:05 PM in reply to: ✅Unregister Custom Table in Database / using Bricks Builder #44551Timo Wessels
ParticipantSo, I trying to dig deeper.
I have two tabs open, and as long there is no Shortcode from MetaBox everything is fine.
But once I entered the Shortcode, just in the Builder even without saving I'm getting the error messages (that its trying to retrieve Data from Custom Tables That are not existing){% for item in post.recipe_source_recipe_source_individual_ta %} {{ item.name }} {% endfor %}My question is then, is it really Bricks related? Because inline dynamic Data is functioning without any issue. It just appears once I use a shortcode
February 12, 2024 at 6:00 PM in reply to: ✅Unregister Custom Table in Database / using Bricks Builder #44550Timo Wessels
ParticipantIm sorry but this answer, did not even answered my question.
So my issue is, that I have delete a Custom Table created by MetaBox Plugin.
And on my Bricks Template there is no relation in any shortcodes or custom fields to those Deleted Tables.My question is how can I remove them from the System..... or in what file of MetaBox or WordPress I should search to solve the issue.
WordPress database error: Indicates that the error is related to a database operation in WordPress.
Table 'wordpress.wp_mixing_instructions' doesn't exist for query: States that the table named wp_mixing_instructions is not found in the database named wordpress. The query attempted to access this table.
SELECT * FROM wp_mixing_instructions WHERE ID = 9421: This is the SQL query that caused the error. It's a SELECT query attempting to retrieve all columns (*) from the wp_mixing_instructions table where the ID is equal to 9421.
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, ...: This part of the error message indicates the sequence of function calls that led to the execution of the problematic query. It traces the path from the initial request to the point where the error occurred. It helps in debugging and identifying the context of the error.
MetaBox\CustomTable\Storage->get, MetaBox\CustomTable\Cache::get: Specific points in the code where the error occurred. It indicates that the issue is related to the MetaBox plugin's custom table functionality, particularly the Storage and Cache classes.
February 9, 2024 at 8:23 PM in reply to: ✅User custom meta using custom table - rest API update #44524Timo Wessels
ParticipantSorry wrong Post
February 9, 2024 at 8:22 PM in reply to: ✅User custom meta using custom table - rest API update #44523Timo Wessels
ParticipantHi, I recently deleted a lot of custom tables. However, even if they are deleted when I want to save an in the Bricksbuilder Template, it tries to save Data or get Data from deleted Custom Tables.
And I checked the Templates that I'm using, and they are not using any of the Old Data Table Custom fields to get data.My Question is how to completely unregister the deleted Data Tables.
Metabox 5.9.3
AIO 1.24.2ID not it Tables 25027, 24377, 25073, 24920
tables try to save:
wp_mb_mixed_drinks
wp_mixing_instructions
wp_mb_RecipeIngredient
wp_ProducerGeneral
mb_references
mb_changelog
wp_mb_SAndFPublicationDebug Log
<div> [09-Feb-2024 12:42:24 UTC] WordPress database error Table 'wordpress_staging.wp_ProducerGeneral' doesn't exist for query SELECT * FROM wp_ProducerGeneral WHERE
ID= 18828 made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Bricks\Api::render_element, Bricks\Ajax::render_element, Bricks\Element->init, Bricks\Element_Template->render, do_shortcode, preg_replace_callback, do_shortcode_tag, Bricks\Templates->render_shortcode, Bricks\Frontend::render_data, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Template->render, do_shortcode, preg_replace_callback, do_shortcode_tag, Bricks\Templates->render_shortcode, Bricks\Frontend::render_data, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Accordion_Nested->render, Bricks\Frontend::render_children, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Container->render, Bricks\Frontend::render_element, Bricks\Element->init, Bricks\Element_Text->render, Bricks\Helpers::parse_editor_content, do_shortcode, preg_replace_callback, do_shortcode_tag, MBViews\Shortcode->render, MBViews\Renderer->render, eLightUp\Twig\Environment->render, eLightUp\Twig\TemplateWrapper->render, eLightUp\Twig\Template->render, eLightUp\Twig\Template->display, eLightUp\Twig\Template->displayWithErrorHandling, __TwigTemplate_098f63102b4a560346774e18c308719fe1c60b7bc1b4a86e698e8533ce264f14->doDisplay, elightup_twig_get_attribute, MBViews\Renderer\Base->__get, MBViews\Renderer\Post->get_data, MBViews\Renderer\Post->get_fields, MBViews\Renderer\MetaBox->get_data, rwmb_get_value, RWMB_Field::call, RWMB_Field::get_value, RWMB_Field::call, RWMB_Field::raw_meta, MetaBox\CustomTable\Storage->get, MetaBox\CustomTable\Cache::get </div>Timo Wessels
ParticipantJust wanted to give an update how i solved my proplem.
I combined now several taxonomies into one big hierarichal. And you could choose the terms inside a cloneable group.My target was inside a bricks query loop to get the taxonomy advanced parent term name.
<?php function mbg_get_ingredient_parent() { $obj = Bricks\Query::get_loop_object(); $term = get_term_by( 'id', $obj['detailed_ingredients_ingredient_ta'], 'beverage-category' ); $parent_term_id = wp_get_term_taxonomy_parent_id( $term->term_id, 'beverage-category' ); return get_term( $parent_term_id )->name; }This code I was putting it via WPCodeBox, always on page load. And in my bricks query i was using {echo:mbg_get_ingredient_parent} to get the result.
Timo Wessels
ParticipantFor me, it worked. I just entered the ID of the Custom Field => contains => (ID of the Taxonomy).
I was using a regular Taxonomy Field.It worked like a charm
June 24, 2023 at 8:22 PM in reply to: ℹ️[Feature Request] Conditional Logic For Relationships #42347Timo Wessels
ParticipantI thought about the same thing, so add some conditional Logic. Is it possible to consider it for any future Feature to get a UI for it?
April 8, 2023 at 5:45 PM in reply to: ✅Add "css class" to Element with Switch Valua after Submit Front End Submission #41393Timo Wessels
ParticipantI got help from your Support and I gave further the URL MetaBox Docs to ChatGTP.
By the end I got this solution.I put the Script and the HTML both into a Bricks Template. And on the same Template I also run the MBView Shortcode.
Now it works =)
To get the ID from the URL and utilize it with the provided explanation, you can use JavaScript to extract the ID from the URL, then pass it to the Twig template using the mb proxy.
First, add a script in your Bricks layout to get the post ID from the URL and assign it to a JavaScript variable:
<script> function getPostIdFromUrl() { const urlParams = new URLSearchParams(window.location.search); return urlParams.get('rwmb_frontend_field_post_id') || 0; } const postId = getPostIdFromUrl(); </script>Next, use the JavaScript postId variable to set the value of an HTML input element, which will be used to pass the value to the Twig template:
<input type="hidden" id="postId" value="{{ postId }}">In your Twig template, use the mb proxy to get the post ID value from the input element, then fetch the post data and display it:
{% set post_id = mb.get_field_value('postId') %} {% set drink_recipe_query = mb.get_posts({post_type: 'drink-recipes', p: post_id, post_status: ['publish', 'draft'], posts_per_page: 1}) %} {% for recipe in drink_recipe_query %} <h2>{{ recipe.post_title }}</h2> <div>{{ recipe.post_content }}</div> {% else %} <p>No drink recipe found with the given ID.</p> {% endfor %}With this approach, you can extract the post ID from the URL using JavaScript, pass it to the Twig template through an HTML input element, and use the Meta Box mb proxy to fetch and display the post data.
April 3, 2023 at 2:45 PM in reply to: ✅Add "css class" to Element with Switch Valua after Submit Front End Submission #41303Timo Wessels
ParticipantHi Peter, thanks for the answer, but unfortunately it does not work. My Twig Code is not getting the Value from the Post after I submit it.
All other things (Textinputs, and queries from the Posts are working well)Here is a short video of the example:
https://komododecks.com/recordings/f4PdsusSoAAnTirrDiEb
And here is the updated code.
{% set ShowGreen = post.recipes_ShowGeneralInfosFP_switch %} {% if ShowGreen == 1 %} "green member-area__form-toc--mandatory " {% else %} "member-area__form-toc--mandatory " {% endif %}I already created a js code with session storage and it works, but I wanted to add a class via MB View.
I can give a accees to the stagging site.
April 1, 2023 at 8:11 PM in reply to: ✅Add "css class" to Element with Switch Valua after Submit Front End Submission #41288Timo Wessels
Participant<ul> <li class= {% set ShowColor = post.recipes_AddEditorsRecipesNotes_switch %} {% if ShowColor == 1 %} "green member-area__form-toc--mandatory " {% else %} "member-area__form-toc--mandatory " {% endif %} ><a href="#editor-recipe-notes">Recipe Notes</a></li> <ul>March 25, 2023 at 8:37 PM in reply to: ✅Syncing Group Taxonomy Advanced Field with a Taxonomy Field #41211Timo Wessels
ParticipantHi Peter is there any real-world example for that?
Like
taxonomy name = Drink Recipe
taxonomy-slug = drink-recipeterm name = Espresso Martini
term = espresso martinibecause I checked the https://docs.metabox.io/actions/rwmb-after-save-field/ but just more "documentation"
Timo Wessels
ParticipantThanks working =)
Timo Wessels
ParticipantSame here i can not edit or create anymore the custom taxonomies.
-
AuthorPosts