WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-PageNavi] Fatal Error (35 posts)

  1. kwoodall
    Member
    Posted 4 years ago #

    Can't activate the recent version...I get...

    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /hsphere/local/home/lakewood/test.advocatemag.com/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 179

    Kermit Woodall
    Managing Editor
    [ Signature moderated. ]

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. cuseeme
    Member
    Posted 4 years ago #

    The same problem exist also in my installation.

  3. Charles Tang
    Member
    Posted 4 years ago #

    me too!

    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxxx/public_html/wp/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 179

  4. dragoslungu
    Member
    Posted 4 years ago #

    I have the same problem :

    Plugin failed to reactivate due to a fatal error.
    
    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/yyyy/public_html/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 179

    Thank you for any hint !

  5. dolemite
    Member
    Posted 4 years ago #

    I'm getting the same issue and now I have zero page navigation.

  6. scribu
    Member
    Posted 4 years ago #

  7. ozai
    Member
    Posted 4 years ago #

    fatal error.
    I had to login to Cpanel to delete the plugin.
    the new version sucks.

    I wish I hadn't upgraded.
    I'm on wordpress 2.9.2
    atahualpa theme.

  8. scribu
    Member
    Posted 4 years ago #

    Nope, your web hosting sucks. Read the link above.

  9. astracan
    Member
    Posted 4 years ago #

    My PHP version is 5. And I have the same problem.

  10. ozai
    Member
    Posted 4 years ago #

    WRONG Scribu
    the plugin sucks
    it's not about my web hosting.
    here is the specs, check'em for yourself

    Theme x3
    Kernel version 2.6.18-164.2.1.el5.028stab066.7
    cPanel Version 11.25.0-RELEASE
    Shared Ip Address 174.120.159.137
    Architecture i686
    MySQL version 5.0.81-community-log
    cPanel Build 43473
    Path to sendmail /usr/sbin/sendmail
    Apache version 2.2.14
    PHP version 5.2.9
    cPanel Pro 1.0 (RC1)
    Service Status Click to View

  11. scribu
    Member
    Posted 4 years ago #

    @astracan and @ozai:

    To see what PHP version you’re really running, add this line to wp-config.php:

    var_dump(PHP_VERSION);

  12. jlboelen
    Member
    Posted 4 years ago #

    I get the same error message :(

  13. ozai
    Member
    Posted 4 years ago #

    @scribu

    code line added.
    php version is 5.2

    regards,

  14. Marcomail
    Member
    Posted 4 years ago #

    I receive another fatal error after the upgrade:

    Fatal error: Cannot redeclare debug().... in /wp-includes/rss.php on line 1375

  15. scribu
    Member
    Posted 4 years ago #

    @ozai: Thanks for checking. So what's the error you're getting?

    @Marcomail: open wp-pagenavi/scb/Util.php and remove this block:

    if ( ! function_exists('debug') ):
    function debug() {
    	$args = func_get_args();
    
    	// integrate with FirePHP
    	if ( class_exists('FirePHP') ) {
    		$firephp = FirePHP::getInstance(true);
    		$firephp->group('debug');
    		foreach ( $args as $arg )
    			$firephp->log($arg);
    		$firephp->groupEnd();
    
    		return;
    	}
    
    	new scbDebug($args);
    }
    endif;

    This will be fixed in the next version.

  16. XXXSkaPunk
    Member
    Posted 4 years ago #

    I get this message:

    Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/b/r/y/bryankremkau/html/skapunkphotos/public_html/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 179

    What should I do to fix this?

  17. scribu
    Member
    Posted 4 years ago #

    Same thing as everyone else: read http://scribu.net/wordpress/wp-pagenavi/wp-2-70.html

  18. ozai
    Member
    Posted 4 years ago #

    SCRIBU
    just upgraded to 2.72
    plugin now working like a CHARM

    I'm on wordpress 2.9.2
    php version is 5.2

    Donation on its way!
    thanks dude ;)

  19. scribu
    Member
    Posted 4 years ago #

    Heh, you're welcome. :)

  20. sabinou
    Member
    Posted 3 years ago #

    Same problem, Scribu,

    "Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.70/hentairu/www/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 181"

    php version 5.0.51a

  21. scribu
    Member
    Posted 3 years ago #

    Did you read the instructions in the FAQ?

  22. hubbygrove
    Member
    Posted 3 years ago #

    I changed to lower version of the plugin and I am set now.

    Was facing the same problem form quiet some time.

    Anyways... thanks for the info.

  23. redactor007
    Member
    Posted 3 years ago #

    Hey scribu,

    I really like your plugin, and I've been using it for quite a while now, but I can't seem to get the latest version to work. I followed the instructions in the FAQ and came up with PHP v5, but I still get that parse error. Any ideas?

    Thanks!

  24. scribu
    Member
    Posted 3 years ago #

    Please paste the exact error text.

  25. redactor007
    Member
    Posted 3 years ago #

    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in wp-pagenavi.php on line 181

  26. redactor007
    Member
    Posted 3 years ago #

    Ok, scratch that, I just double/triple checked and now it's coming up as version 4.4.9.... hmmm, sorry about that, I'll get on my provider.

    Sorry for the trouble!

  27. redactor007
    Member
    Posted 3 years ago #

    And yes, after I was able to force php5, the plugin worked just fine. Thanks and sorry for the trouble.

  28. cfscare
    Member
    Posted 3 years ago #

    Scribu, you say:

    >To see what PHP version you’re really running, add this
    >line to wp-config.php:
    >
    >var_dump(PHP_VERSION);

    I've done this, but I don't understand where the version is displayed. My dashboard now simply says:

    var_dump(PHP_VERSION);

    How can I find out what PHP version I'm running? Thanks.

  29. scribu
    Member
    Posted 3 years ago #

    You have to place that line after the opening <?php tag.

  30. muddybunny
    Member
    Posted 3 years ago #

    In case anyone is running their WordPress installation on an 1&1 hosting package, you can add the following line at the beginning of your htaccess file:-

    AddType x-mapp-php5 .php

    It works, but don't ask me how or why.

    I found this fix here:-

    http://www.xptechsupport.com/using-php-5-with-1and1-hosting.html

Topic Closed

This topic has been closed to new replies.

About this Topic