• I installed the pluging but I ran up against some PHP errors.

    I am currently stuck on wp-content\themes\hueman\functions\class-tgm-plugin-activation.php on line 2001

    with this message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’

    Below is the way the page installed:

    /** Output error strings if an error has occurred */
                    if ( $this->error || ! $this->result ) {
                        if ( $this->error )
                            echo '<div class="error"><p>' . sprintf( $this->upgrader->strings['skin_update_failed_error'], $this->plugin_names[$this->i], $this->error ) . '</p></div>';
                        else
                            echo '<div class="error"><p>' . sprintf( $this->upgrader->strings['skin_update_failed'], $this->plugin_names[$this->i] ) . '</p></div>';
    
                        echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').show();</script>';
                    }
    
    This is where I am currently at- but the message hasen't changed one iota!
    
    if ( $this->error || ! $this->result ) {
                    if ( $this->error )
      <strong>line 2001                 echo '<div class="error"><p>' . sprintf( $this->upgrader->strings['skin_update_failed_error'], $this->plugin_names[$this->i], $this->error;) . </p></div>;</strong>
                    else
                        echo '<div class="error"><p>' . sprintf( $this->upgrader->strings['skin_update_failed'], $this->plugin_names[$this->i] ) . '</p></div>';
    
                    echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').show();</script>';
                }

    NOTE THAT I CHANGED “</p></div>’ ;” TO ” </p></div>; AT THE END TO “OF THE LINE BECAUSE THAT IS WHAT WAS REQUIRED TO FIX THE PREVIOUS ERROR.

    I know you said you are not into PHP but Just though I would ask if you happen to have a clue on this one. It’s been stumping me for awhile !
    This is the way it originally looked: I also added the “;” before the ending “)”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Smackenzie

    (@smackenzie)

    Apparently no edit post function here- the last paragraph was copied from an email.

    There is an “Edit” link right below your user name. And BTW, please use the code buttons when posting code – I fixed the code above.

    https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    Need some more details here. Take me through the process.

    1. When does the error appear and is it for a specific plugin only?
    2. Does it appear when you activate the theme or when you try to install a plugin via the “Install Plugins” menu, or at some other point?
    3. Which WordPress version are you using? Did you have this issue before updating to 3.8? (if it’s 3.8 that you have now)

    What was causing the initial error that required you to change the file?

    Are you working with a modified theme which puts out these errors, or is it Hueman in it’s original form – if so, which version?

    Update: For now, it looks like you need to stay up to date on this issue here, as it’s that code that has the issue, not the theme – it only utilizes their stuff:
    https://github.com/thomasgriffin/TGM-Plugin-Activation/issues/156

    If 3.8 broke it we’ll have to wait for an update from the TGM guys.

    Thread Starter Smackenzie

    (@smackenzie)

    I installed the Hueman template on my wamp server. No problem.

    Then I installed the plugin package- ( I think it is called Jetpack) and the PHP error page displayed. (note php page name is class-tgm-plugin-activation.php )

    Now if i login in to localhost, it goes directly to PHP error page.

    I was correcting the PHP page according to the instructions on the PHP error messages.

    I am using WordPress 3.7.1 ( maybe I should try 3.8 and see if that fixes the error ?)

    I’ll check out the link above.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PPH Installation problems’ is closed to new replies.