Problem while activating the BeCustom plugin

After installing the theme, when I try to activate the plug, I get the following message:

wp-content\plugins\becustom\becustom.php on line 372


  $this->page = add_submenu_page(

    apply_filters('betheme_dynamic_slug', 'betheme'),

    __( 'BeCustom', 'mfn-translate' ),

    'BeCustom',

    'edit_theme_options',

    'be_custom',

    array( $this, 'get_template'),

  );


Fresh installation of Wordpress on localhost

Comments

  • Hello,

    Do you have the newest version of Betheme?

    If not, please, update it because BeCustom works from version 24.0.1.


    Best regards

  • Version 24.0.1

  • Did you sent whole error message?

    Because the string you sent, looks like it's cut.

    thanks

  • edited July 2021

    Hello,

    Just did my first BeTheme Standard intallation on my Windows environment. Everything when well until activating BeCustom as I've got exactly the same issue with above message.


  • Hello @JamPlace,

    Please, update BeCustom to the newest version through Betheme -> Install Plugins, and this error will be gone.

    If you do not see the update option, please, delete BeCustom and install it again.


    Thanks

  • edited July 2021

    Oups,

    After activating to 1.0.1 I`ve got this.

    Trying to roll back but I don`t want to lose my changes

    Did renamed to plugins\becustom.old to be able deleting it to get back my site.

    Is there any PHP settings that need to be reviewed as minimum requirements?

  • Can you send me the error message you get in your mail, please?

    Also, please tell me what version of PHP do you have.


    Thanks

  • Here is the email detail


    WordPress version 5.7.2

    Current theme: Betheme (version 24.0.1.2) Current plugin: BeCustom (version 1.0.1) PHP version 7.0.21

    Error Details

    =============

    An error of type E_ERROR was caused in line 26 of the file D:\Web\wp.jamplace.com\wp-content\plugins\becustom\becustom_branding.php. Error message: Uncaught TypeError: Return value of Be_custom_branding::add_menu() must be an instance of void, none returned in D:\Web\wp.jamplace.com\wp-content\plugins\becustom\becustom_branding.php:26

    Stack trace:

    #0 D:\Web\wp.jamplace.com\wp-includes\class-wp-hook.php(292): Be_custom_branding->add_menu('')

    #1 D:\Web\wp.jamplace.com\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)

    #2 D:\Web\wp.jamplace.com\wp-includes\plugin.php(484): WP_Hook->do_action(Array)

    #3 D:\Web\wp.jamplace.com\wp-admin\includes\menu.php(155): do_action('admin_menu', '')

    #4 D:\Web\wp.jamplace.com\wp-admin\menu.php(327): require_once('D:\\Web\\wp.jampl...')

    #5 D:\Web\wp.jamplace.com\wp-admin\admin.php(158): require('D:\\Web\\wp.jampl...')

    #6 {main}

     thrown

  • Thanks for sending the error details. It helped us with investigating the source of this issue.

    Tomorrow we will release the update for BeCustom, and after it, it should work again.


    Thanks

  • Thank you Phil,

    It went great with version 1.0.2

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.