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/
cuseeme
Member
Posted 2 years ago #
The same problem exist also in my installation.
Charles Tang
Member
Posted 2 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
dragoslungu
Member
Posted 2 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 !
dolemite
Member
Posted 2 years ago #
I'm getting the same issue and now I have zero page navigation.
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.
Nope, your web hosting sucks. Read the link above.
astracan
Member
Posted 2 years ago #
My PHP version is 5. And I have the same problem.
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
@astracan and @ozai:
To see what PHP version you’re really running, add this line to wp-config.php:
var_dump(PHP_VERSION);
jlboelen
Member
Posted 2 years ago #
I get the same error message :(
@scribu
code line added.
php version is 5.2
regards,
Marcomail
Member
Posted 2 years ago #
I receive another fatal error after the upgrade:
Fatal error: Cannot redeclare debug().... in /wp-includes/rss.php on line 1375
@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.
XXXSkaPunk
Member
Posted 2 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?
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 ;)
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
Did you read the instructions in the FAQ?
hubbygrove
Member
Posted 2 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.
redactor007
Member
Posted 2 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!
Please paste the exact error text.
redactor007
Member
Posted 2 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
redactor007
Member
Posted 2 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!
redactor007
Member
Posted 2 years ago #
And yes, after I was able to force php5, the plugin worked just fine. Thanks and sorry for the trouble.
cfscare
Member
Posted 2 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.
You have to place that line after the opening <?php tag.
muddybunny
Member
Posted 1 year 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