Forum Replies Created
-
AuthorPosts
-
Tobias Haas
ParticipantI have the same error. Usually I could solve this by clicking "Save data in the raw format", but that doesn't work anymore.
Bricks Builder always inserts an empty <p> tag at the beginning and end.
<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $prefix = ''; $meta_boxes[] = [ 'title' => __( 'Single Post', 'your-text-domain' ), 'id' => 'single-post', 'post_types' => ['service', 'post', 'prozess'], 'fields' => [ [ 'name' => __( 'Single Post Sections', 'your-text-domain' ), 'id' => $prefix . 'single-post-sections', 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'fields' => [ [ 'name' => __( 'Template', 'your-text-domain' ), 'id' => $prefix . 'template-sections', 'type' => 'select', 'options' => [ 'grauebox-section' => __( 'Graue Box', 'your-text-domain' ), 'standard-content' => __( 'Standard Box', 'your-text-domain' ), 'pdf-section' => __( 'PDF', 'your-text-domain' ), ], ], [ 'name' => __( 'Graue Box', 'your-text-domain' ), 'id' => $prefix . 'grauebox-section', 'type' => 'group', 'collapsible' => true, 'fields' => [ [ 'name' => __( 'Heading', 'your-text-domain' ), 'id' => $prefix . 'heading', 'type' => 'text', ], [ 'name' => __( 'Subheading', 'your-text-domain' ), 'id' => $prefix . 'subheading', 'type' => 'text', ], [ 'name' => __( 'Wysiwyg', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_grauebox', 'type' => 'wysiwyg', 'options' => [ 'media_buttons' => false, ], ], [ 'name' => __( 'Fußzeile', 'your-text-domain' ), 'id' => $prefix . 'fusszeile', 'type' => 'textarea', 'rows' => 6, ], ], 'visible' => [ 'when' => [['template-sections', '=', 'grauebox-section']], 'relation' => 'or', ], ], [ 'name' => __( 'Standard Content', 'your-text-domain' ), 'id' => $prefix . 'standard-content', 'type' => 'group', 'collapsible' => true, 'fields' => [ [ 'name' => __( 'Wysiwyg', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_standard', 'type' => 'wysiwyg', 'options' => [ 'media_buttons' => false, ], ], ], 'visible' => [ 'when' => [['template-sections', '=', 'standard-content']], 'relation' => 'or', ], ], [ 'name' => __( 'PDF', 'your-text-domain' ), 'id' => $prefix . 'pdf-section', 'type' => 'group', 'collapsible' => true, 'fields' => [ [ 'name' => __( 'Text', 'your-text-domain' ), 'id' => $prefix . 'text_pdf', 'type' => 'text', ], [ 'name' => __( 'Button Text', 'your-text-domain' ), 'id' => $prefix . 'button_text_pdf', 'type' => 'text', ], [ 'name' => __( 'File Advanced', 'your-text-domain' ), 'id' => $prefix . 'file_advanced_pdf', 'type' => 'file_advanced', 'max_file_uploads' => 1, ], ], 'visible' => [ 'when' => [['template-sections', '=', 'pdf-section']], 'relation' => 'or', ], ], ], ], ], ]; return $meta_boxes; }Hope you can Help! Thanks
TobiasDecember 15, 2022 at 5:56 PM in reply to: ✅Fatal error when attempting to edit custom post type #39817Tobias Haas
Participanthad the same error on mutliple sites... reinstalling the AIO Plugin was my solution..
December 15, 2022 at 12:25 AM in reply to: Critical error when updating to latest version of Meta Box AIO #39803Tobias Haas
Participantgot a critical error when trying to add a new CPT
`Aktuelles Plugin: Meta Box AIO (Version 1.16.7) PHP-Version 7.4.30 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 111 der Datei /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php verursacht. Fehlermeldung: Uncaught Error: Class 'RWMB_Update_Option' not found in /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php:111 Stack trace: #0 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php(24): MBCPT\Edit->is_premium_user() #1 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(310): MBCPT\Edit->register_upgrade_meta_box('mb-post-type') #2 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/includes/meta-boxes.php(1599): do_action('add_meta_boxes', 'mb-post-type', Object(WP_Post)) #5 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(ObjecTobias Haas
ParticipantHey Long,
it's been a while now.
Are there any updates on this?Tobias Haas
ParticipantThank you very much Long!
It finally works! You saved my dayTobias Haas
Participantok got it! Now it should work.
But somehow it doesn't get any data... Am I not targeting the field correctly?<?php add_action('wp_head', function(){ $favicon = rwmb_get_value( 'favicon', ['object_type' => 'setting'], 'site_option' ); ?> <script type="text/javascript"> var link = document.querySelector("link[rel~='icon']"); if (!link) { link = document.createElement('link'); link.rel = 'icon'; document.getElementsByTagName('head')[0].appendChild(link); } link.href = '<?php echo $favicon; ?>'; </script> <?php });


Thank you for support!
Tobias Haas
ParticipantHey Long, thanks
Yes, it is quite possible that this comes from ACF...I changed it in my code but still get an error - I forgot to mention it in my first post.
Error Message: Call to undefined function rwmb_get_value() On line: 1<?php $favicon = rwmb_get_value( 'favicon', ['object_type' => 'setting'], 'site_option' ) ?> <?php add_action('wp_head', function(){ ?> <script type="text/javascript"> var link = document.querySelector("link[rel~='icon']"); if (!link) { link = document.createElement('link'); link.rel = 'icon'; document.getElementsByTagName('head')[0].appendChild(link); } link.href = '<?php echo $favicon; ?>'; </script> <?php });Tobias Haas
ParticipantI wanted to ask carefully if you could find out something?
Tobias Haas
ParticipantThanks Long! I've sent the credentials
Tobias Haas
ParticipantDo you have another idea? I disabled everything and loaded the default theme but still the same...
Tobias Haas
ParticipantUnfortunately still the same...

Tobias Haas
ParticipantHello thank you for your help
I just noticed that it works too, but not perfectly. See screen capture.Do you have any idea?
Tobias Haas
ParticipantThanks Long!
Tobias Haas
ParticipantHow can I show a comma instead of a period for numbers (price)?
I want the price to look like this - 1,23 €
Thanks
Tobias Haas
Participantok thanks
-
AuthorPosts