• Resolved smit_ralph

    (@smit_ralph)


    The new update has two syntax errors in functions.php (line 154) and /inc/BootstrapBasicAdminHelp.php (line 10). After trying to fix that the theme loads, but gives a bunch of other errors.

    any chance of a quick fix? I don’t have a copy of an older version…

    Thx.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I just commented out the code for now in function.php I didn’t get the other error

    Please find below the git diff that solve the issue:

    diff --git a/wp-content/themes/bootstrap-basic/functions.php b/wp-content/themes/bootstrap-basic/functions.php
    index 6f5b953..f7046c6 100644
    --- a/wp-content/themes/bootstrap-basic/functions.php
    +++ b/wp-content/themes/bootstrap-basic/functions.php
    @@ -151,7 +151,7 @@ add_action('wp_enqueue_scripts', 'bootstrapBasicEnqueueScripts');
     if (is_admin()) {
            require get_template_directory() . '/inc/BootstrapBasicAdminHelp.php';
            $bbsc_adminhelp = new BootstrapBasicAdminHelp();
    -       add_action('admin_menu', [$bbsc_adminhelp, 'themeHelpMenu']);
    +       add_action('admin_menu', array( $bbsc_adminhelp, 'themeHelpMenu'));
            unset($bbsc_adminhelp);
     }
    
    diff --git a/wp-content/themes/bootstrap-basic/inc/BootstrapBasicAdminHelp.php b/wp-content/themes/bootstrap-basic/inc/BootstrapBasicAdminHelp.php
    index ac77388..cf91740 100644
    --- a/wp-content/themes/bootstrap-basic/inc/BootstrapBasicAdminHelp.php
    +++ b/wp-content/themes/bootstrap-basic/inc/BootstrapBasicAdminHelp.php
    @@ -7,7 +7,7 @@ if (!class_exists('BootstrapBasicAdminHelp')) {
    
                    public function themeHelpMenu()
                    {
    -                       add_theme_page(__('Theme help', 'bootstrap-basic'), __('Theme help', 'bootstrap-basic'), 'edit_posts', 'theme_help', [$this, 'themeHelpPage']);
    +                       add_theme_page(__('Theme help', 'bootstrap-basic'), __('Theme help', 'bootstrap-basic'), 'edit_posts', 'theme_help', array($this, 'themeHelpPage'
                    }// themeHelpMenu
    
    @@ -19,4 +19,4 @@ if (!class_exists('BootstrapBasicAdminHelp')) {
    
            }// end class -------------------------------------------------------------------------------
    -}
    \ No newline at end of file
    +}
    Theme Author vee

    (@okvee)

    I have committed the new update. Please wait for WP moderators approved it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The update (july 21st) is broken’ is closed to new replies.