Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #1790381
The installation process of the plugin have error
Closed

Comments

  • simongcc started the conversation

    I just purchased the Alliston theme and try to install locally.

    The following error then occur during installation of the plugin:

    Warning: sprintf(): Too few arguments in ......../wp-admin/includes/class-bulk-upgrader-skin.php on line 150

    The plugin is then installed but not activated as selected in the installation screen.
    1. Will the installation have problem if I manually activate the plugin because I am afraid that it might be interrupted somewhere?

    2. I found that the error appear due to the following suspected bug found:

    // class-tgm-plugin-activation.php on line 3602
    $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'allston' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'allston' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'allston' ) . '</span>.</a>';
    // There are 2 defined variable placeholder for being substituted and expected 2 arguments,
    // %1$s
    // %2$s

    However,

    //in class-bulk-upgrader-skin.php on line 150
    ... sprintf( $this->upgrader->strings['skin_update_successful'], $title ) ...
    // Only $title is being put into it

    In PHP 5.6.3 tested, this error does not appear.
    In PHP 7.19 tested, the error come out.

    Am I correct?

  • simongcc replied

    And then I try to remove the bug by changing %2$s to something else so that php will not expect a parameter.

    It successfully eliminate the error but it will output 2 'Show Details' because WP already have a 'Show Details'.

    My WP is 4.9.8 English before installing any other else.

  •  1,845
    Elated replied

    Hello there,

    Thanks for writing in!

    What you are seeing are most likely not errors, but just warnings and notices.

    In order to hide these, please take a look at this helpful article:
    https://aristath.github.io/blog/wp-hide-php-errors

    Please let us know if there is something else we can do for you!
    Thank You,
    Norah


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.