Title: Page Builder Block error
Last modified: March 12, 2019

---

# Page Builder Block error

 *  Resolved [wylydoicu](https://wordpress.org/support/users/wylydoicu/)
 * (@wylydoicu)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/page-builder-block-error/)
 * Hello,
    I’ve installed the theme on local server, to test and edit sites. I like
   Bento very much, but I have problems with SiteOrigin’s Page Builder and Widgets.
   They work on Sidebars and Footer but not on pages. I’ve seen the apache log error
   line: “PHP Warning: date() expects at most 2 parameters, 3 given in /var/www/
   xxxxx/wp-content/themes/bento/includes/metaboxes/inc ludes/CMB2_Base.php on line
   315, referer: [http://xxxxx/wp-admin/edit.php?post_type=page&#8221](http://xxxxx/wp-admin/edit.php?post_type=page&#8221);
   I thought is the CMB2 problem, I’ve installed the plugin, not fixed. Then I’ve
   update PHP to 7.3 and enabled modules, still no chance. I have reinstalled everything
   leave only Polylang, SiteOrigin’s and CMB2 plugins. Still not working. The plugins
   works perfect on default TwentyXX themes. I very much appreciate some help. Thank
   you! Will

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/page-builder-block-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/page-builder-block-error/page/2/?output_format=md)

 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11303364)
 * Hello Will, thanks for choosing Bento! Does the warning appear right after entering
   edit mode for a new page (i.e. “ages -> Add New” admin section), or after a sequence
   of specific steps? In case the latter, could you please describe those steps?
   Thank you!
 *  Thread Starter [wylydoicu](https://wordpress.org/support/users/wylydoicu/)
 * (@wylydoicu)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11304734)
 * Hey, Even if I add new page or try to edit one that has PB block on it, the block
   doesn’t appear, as for error. Now the PHP error points to CMB2 plugin directory.
   Maybe is something wrong with my server(or apache config). I’ts hard to replicate
   because the error stands after fresh install of wp core, on two instances(two
   different websites with their own database). Still CMB2 doesn’t complain about
   running on other themes. Thank you!
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11308262)
 * Thanks for the details! I can’t seem to be able to reproduce the error, so since
   you’re currently on a localhost I can only suggest some directions for troubleshooting
   the situation:
 * – First, try commenting out line 46 in the theme’s main functions.php file like
   so:
    `// add_filter( 'cmb2_admin_init', 'bento_metaboxes' );`
 * – If this removes the warning message, you can go to the /includes/admin/post-
   settings.php file which contains all CMB settings used by the theme, and try 
   removing blocks one by one which look like this:
 *     ```
       $bento_xxxx_xxxx->add_field(
       // an array inside
       );
       ```
   
 * This can help find the specific part of the code which produces the warning.
 * Alternatively, if your WP_DEBUG is currently set to ‘true’, you can always just
   set it to false to temporarily hide all php notices and warnings 🙂
 *  Thread Starter [wylydoicu](https://wordpress.org/support/users/wylydoicu/)
 * (@wylydoicu)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11309364)
 * Well, I’ll try that tomorrow, meanwhile, the debug stays :). I find that error
   triggers when I open the editor. The list for debug is long: `WARNING: wp-content/
   themes/bento/includes/metaboxes/includes/CMB2_Base.php:315 – date() expects at
   most 2 parameters, 3 given
    include(‘wp-admin/edit-form-blocks.php’), the_block_editor_meta_boxes,
   do_meta_boxes, CMB2_hookup->metabox_callback, CMB2->show_form, CMB2->render_field,
   CMB2_Field->render_field, CMB2_Base->peform_param_callback, CMB2_Base->get_param_callback_result,
   CMB2_Base->do_callback, CMB2_Field->render_field_callback, CMB2_Types->render,
   CMB2_Types->_render, CMB2_Types->select, CMB2_Type_Select->render, CMB2_Type_Base-
   >rendered, CMB2_Field->register_js_data, CMB2_JS::add_field_data, CMB2_Field-
   >js_data, CMB2_Field->get_default, CMB2_Base->get_param_callback_result, CMB2_Base-
   >do_callback, date’ . Still think that the server background causing the problem,
   had some outdated packages when I first installed wp and theme, also found a 
   thread about SiteOrigin’s plugins that causes same error on a outdated php5.4.
   My was php7.0 at the time I get that. I also find some strange behavior of footer
   widgets that happen when switching themes and a error for this, but I will open
   another thread for it if I can replicate again. I’m not rushing, maybe I’ll try
   another server next week. Keep in touch, thanks.
 *  Thread Starter [wylydoicu](https://wordpress.org/support/users/wylydoicu/)
 * (@wylydoicu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11330122)
 * Hi again. I guess, I need to answer. The error persist on a new server. It occurs
   when the page/ editor is opened. First I’ve installed classic editor which let
   me work with PageBuilder, the default don’t. Next, the debug, I found the block
   in “/bento/includes/admin/post-settings.php” “// Grid page settings” exactly 
   the field ‘Order grid items by’ has a ‘date’ option. I’ve modified line 590 from`'
   default_cb' => 'date'` to `'default_cb' => 'modified'`
    I do not know what this
   implies when u realy need to make the ordering because I do not know where to
   look. But for the moment error disappear. If you think about a better solution,
   let me know. Maybe parameters passed to ‘date’ are more than 2. Thanks!
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11334999)
 * Thank you very much for the update, Will! I will make sure the fix is added to
   the next version update of Bento.
 *  [craigthill](https://wordpress.org/support/users/craigthill/)
 * (@craigthill)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11349942)
 * My issue is when using the block editor to create or edit a page I can not use
   the SiteOrigin tool when adding a block.
    When I try and add it I get this error:“
   The block has encountered an error and cannot be previewed” I have deactivated
   all SiteOrigin plug-ins and re-activated them with no change. I tried two different
   themes and did not have this error, so I am thinking the ball is in your court.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11352847)
 * Hello [@craigthill](https://wordpress.org/support/users/craigthill/), thanks 
   for choosing Bento! The new Gutenberg editor which has been introduced into the
   WordPress core since version 5.0 is still quite raw, error like yours are commonly
   reported in various cases (see e.g. [here](https://wordpress.org/support/topic/after-update-this-block-has-encountered-an-error-and-cannot-be-previewed/)
   and [here](https://wordpress.org/support/topic/this-block-has-encountered-an-error-and-cannot-be-previewed-5/)).
   Since Gutenberg essentially serves the same purpose as Bento’s bundled content
   builder, we highly recommend using just one of them at a given time; you can 
   force the classical editor with Bento’s Content Builder blocks by ticking the“
   Use Classic Editor for new posts” checkbox in the “Settings -> Page Builder” 
   admin panel section.
 *  [craigthill](https://wordpress.org/support/users/craigthill/)
 * (@craigthill)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11353387)
 * Not sure why I want to go back to the classic editor as it is being dropped. 
   Bento was my choice for the new block editor, but now you are saying go back ???
 * This from SiteOrigin:
    When you get a moment, please could you reach out to Bento
   and let them know about this problem. The issue might be related to admin-scripts.
   js. If I prevent that file from being enqueued in Bento, the SiteOrigin Layout
   Block works. They can perhaps look there first. I’m sure they’ll be able to resolve
   quickly once they know about the issue.
 * I know very little about web design, just trying to use the tools available and
   moving forward, not backward.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11356094)
 * Thank you for the details! My apologies, it’s indeed a bug on our end. We’ve 
   fixed the issue and added some extra styles to the settings boxes in the post/
   page editing interface. The changes have already been submitted as a Bento theme
   update (version 2.1), which should go live shortly. You will be able to update
   via the “Appearance -> Themes” section in your WP admin. Cheers!
 *  Thread Starter [wylydoicu](https://wordpress.org/support/users/wylydoicu/)
 * (@wylydoicu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11358068)
 * Hi, Thanks for the update. Anyway, the classic editor works better. The issue
   for which I opened the topic is resolved.
 *  [craigthill](https://wordpress.org/support/users/craigthill/)
 * (@craigthill)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11364516)
 * Oh, Great.. I look forward to the upgrade. I like the Bento Theme.
 * A slightly different question…
    I know how to size the fonts that are the menu,
   but how can I make the fonts in the drop-down menus larger. They are a bit hard
   to read on mobile devices.
 * Thanks again.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11365635)
 * [@craigthill](https://wordpress.org/support/users/craigthill/), [@wylydoicu](https://wordpress.org/support/users/wylydoicu/)
   the update is now live 😉
 * [@craigthill](https://wordpress.org/support/users/craigthill/) regarding your
   question: the sub-menu font size is set in the theme’s CSS code, so you can override
   it by adding this snippet:
    `.primary-menu li .sub-menu { font-size: 14px; }`
 *  [craigthill](https://wordpress.org/support/users/craigthill/)
 * (@craigthill)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11371655)
 * Yes, that worked fine. Thank you
 *  [craigthill](https://wordpress.org/support/users/craigthill/)
 * (@craigthill)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/page-builder-block-error/#post-11787250)
 * Seems my old error is back… from 4 months ago. Cant edit in WP Gutenberg wit 
   Site Origin… back then Site origin responded:
 * This from SiteOrigin:
    When you get a moment, please could you reach out to Bento
   and let them know about this problem. The issue might be related to admin-scripts.
   js. If I prevent that file from being enqueued in Bento, the SiteOrigin Layout
   Block works. They can perhaps look there first. I’m sure they’ll be able to resolve
   quickly once they know about the issue.
 * Then you guys fixed the problem… noe its back. ???

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/page-builder-block-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/page-builder-block-error/page/2/?output_format=md)

The topic ‘Page Builder Block error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bento/2.5/screenshot.png)
 * Bento
 * [Support Threads](https://wordpress.org/support/theme/bento/)
 * [Active Topics](https://wordpress.org/support/theme/bento/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bento/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bento/reviews/)

 * 22 replies
 * 3 participants
 * Last reply from: [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/page-builder-block-error/page/2/#post-11855515)
 * Status: resolved