Forum Replies Created
-
AuthorPosts
-
Mauro
ParticipantI confirm this issue is in the latest update with all my custom MB Blocks
December 21, 2023 at 10:29 PM in reply to: ✅From user to post not handling more that 10 connections #44154Mauro
ParticipantI've ran into this issue today! I was just about to give up and re-implement my feature without MB Relationships.
Please note this is still an issue. It's weird that we only get up to 10 items, and then some get removed randomly. I assume this is a bug and should get fixed. It makes relationships not work as intended.
However this post is dated Oct 10 and it's Dec 21 now and no fix has been released... also there's no clear mention of this in the docs.
October 5, 2023 at 10:00 PM in reply to: ✅BUG - Image field's break backend with latest update MB Blocks #43436Mauro
ParticipantI managed to rollback the main MetaBox plugin using WP Rollback and it solved the issue. As things stand, we _cannot_ download any previous version of the premium plugins from this site. Is there any other place where we can do this?
October 5, 2023 at 9:38 PM in reply to: ✅BUG - Image field's break backend with latest update MB Blocks #43434Mauro
ParticipantAlso how do I get the previous version of AIO? I only see the download link to the latest version on my account.
October 5, 2023 at 9:36 PM in reply to: ✅BUG - Image field's break backend with latest update MB Blocks #43432Mauro
ParticipantWhen is the update scheduled to be released? I have a very similar issue:
Error: Template not found: #tmpl-rwmb-media-button
This happens on my custom block and as far as I know it was working before updating WordPress and MetaBox earlier this month.
June 14, 2022 at 3:54 PM in reply to: Huge performance issue with MB Blocks when context => side #36476Mauro
ParticipantHi Long,
Thanks for your reply! Yes, live editing would be the whole point, but since that's not possible due to the nature of MB Blocks -- storing everything on server side and having to parse through a PHP template rather than updating everything through JS -- a quick workaround to this issue would be greatly appreciated.Please note WP core blocks don't have this issue:
- in these you can enter custom text inline, on the editor side and not on the side, without triggering any Ajax
- Also, the WP blocks "range" system, i.e. on the paragraph typography option, does not call Ajax if you change a value
- finally, the built-in colour picker doesn't let you fine-tune colours so you don't end up changing it multiple times just to get to the colour you want. And even the colour change won't trigger Ajax.So they managed to avoid this issue completely, I assume by assigning the appropriate classes to blocks via JS instead of parsing everything on the back end on every change.
Since at the end of the day most changes are made through classes, perhaps some options can be added to the fields to determine if the change of the field needs to fire Ajax or to just toggle some class to a specific part of the HTML? It sounds complicated, but it looks like WP Core is doing it so there should be a way to achieve this.
But that's for later. I think as a quick fix, a delay to Ajax would solve the most immediate performance issue.
Thanks for your work!
Mauro.June 9, 2022 at 3:15 PM in reply to: Bug Report: Click twice on update, all custom fields are lost #36390Mauro
ParticipantThanks for the quick reply!
Regarding (2), what I meant is that it would be great to be able to put the actual callback function code someplace in the builder. Perhaps a new CPT that allows to enter php and then have a select in the fields that support callbacks.I know eval is evil etc, perhaps it’s possible to build a disk-based solution that takes the code from the DB and keeps it up to date with a files storage solution.
There is also a limit in specifying some defaults, specifically in the date and date time fields, whereas I.e. you can’t default to today in the builder because the php one liner can’t be put in the field.
The whole point is to have a self contained solution in the builder that is also exportable and can be imported and kept up to date from a development environment to a live environment.
On a separate note for the sake of version control I think having an option to enable posts revisions on every MB CPT would be a nice thing to have.
June 8, 2021 at 4:10 PM in reply to: Database Error on Relationships after update to latest MetaBox AIO and WP 5.5.1 #28762Mauro
ParticipantHello there, this is still an issue. Here are some more details shared by a fellow developer:
PHP Notice: Undefined index: to in /home/XYZ.cloudwaysapps.com/XYZ/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-relationships/inc/query/normalizer.php on line 82
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near...
/** * Normalizes single relationship query arguments. * * @param array $args Query arguments. */ protected function normalize_args( $args ) { $direction = isset( $args['from'] ) ? 'from' : 'to'; $relationship = $this->factory->get( $args['id'] ); $args['id_field'] = $relationship->get_db_field( $direction ); $args['direction'] = $direction; $args['items'] = $this->get_ids( $args[ $direction ], $args['id_field'] ); $args['reciprocal'] = $relationship->reciprocal; unset( $args[ $direction ] ); return $args; }Sometimes the $args array doesn’t have a ‘to’ key. That’s where the php warning comes from. It's possible to fix the php warning by verifying if the ‘to’ key exists. If it’s missing, you can create it manually. This solution is not the best one because it fixes the PHP warning but it doesn’t fix the database error.
/** * Normalizes single relationship query arguments. * * @param array $args Query arguments. */ protected function normalize_args( $args ) { $direction = isset( $args['from'] ) ? 'from' : 'to'; $relationship = $this->factory->get( $args['id'] ); $args['id_field'] = $relationship->get_db_field( $direction ); $args['direction'] = $direction; if(!isset($args['to'])) { $args['to'] = null; } $args['items'] = $this->get_ids( $args[ $direction ], $args['id_field'] ); $args['reciprocal'] = $relationship->reciprocal; unset( $args[ $direction ] ); return $args; }April 19, 2021 at 4:47 PM in reply to: ✅BUG! Relationship gets deleted if related posts are both "draft" #27378Mauro
ParticipantI figured this one out. I need to add this to both "from" and "to" in the relationship:
'query_args' => array('post_status'=>'any')
I think this is a design flaw of how the plugin works. In the back end it should show the relationship even if the corresponding post is in draft, pending review or in private, otherwise results will be unpredictable upon publishing.
Following a revised logic, the listing of related objects in the back end should list all related objects along with:
- the post title,
- its status and
- a link to go view the related post
- a link to edit the postJanuary 6, 2021 at 5:49 PM in reply to: ✅Open Street Maps: binding of Latitude and Longitude, keeping the map in English? #23862Mauro
ParticipantHello Anh, revisiting this, is latitude and longitude binding possible now?
I'd also need to have zoom level exposed.
Please let me know, I now need this urgently.October 22, 2020 at 1:39 PM in reply to: Database Error on Relationships after update to latest MetaBox AIO and WP 5.5.1 #22527Mauro
ParticipantHello Long,
Any update on the database error?
Thank you for looking into this.
Mauro.October 18, 2020 at 10:36 PM in reply to: Database Error on Relationships after update to latest MetaBox AIO and WP 5.5.1 #22449Mauro
ParticipantOh almost forgot! The code that defines relationships is in:
wp-content/plugins/mundana-itineraries/classes/MundanaItineraries_MetaBoxes.php on line 258 (function register_relationships).The code that retrieves data is in the same directory, in the file MundanaItineraries.php on line 495 (method get_related_to) and 527 (method get_related_from).
In the theme this is used in several places, here is an example:
wp-content/themes/mundana/template-parts/content-hotel.phpOctober 18, 2020 at 10:32 PM in reply to: Database Error on Relationships after update to latest MetaBox AIO and WP 5.5.1 #22448Mauro
ParticipantHello, I shared the details for the staging site through the contact form as requested. Please confirm you received the data.
Thanks! 🙂
Mauro.March 20, 2020 at 6:24 PM in reply to: ✅wpautop on custom Gutenberg blocks, can't remove wpautop? #18608Mauro
ParticipantI'm missing something too!
I tried adding other blocks and the wpautop is applied to them as well, so this is not an issue with MetaBox. I also tried changing the theme so it's not an issue with the theme.I guess it's a problem introduced by one of the other plugins.
I managed to solve this bypassing the_content and loading the blocks like this:if ( has_blocks( $post->post_content ) ) { $blocks = parse_blocks( $post->post_content ); foreach( $blocks as $block ) { echo render_block( $block ); } }Thanks for looking into this Anh, your help is precious and always appreciated!
M.December 17, 2019 at 4:57 PM in reply to: ✅Registration: username as email, duplicated fields, avatar, visibility issue #17565Mauro
ParticipantUnfortunately, it’s not possible. I guess you’re tailoring the registration progress, aren’t you?
Yes, and in the past I did it with a fully custom plug-in.
Will probably use something else if they want further customisation of the process.Please note: after update the calendar for the "date of birth" date field isn't showing up anymore. Is this just me or something broke on your side?
-
AuthorPosts