开发者

Unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR

开发者 https://www.devze.com 2023-02-05 00:42 出处:网络
I\'m trying to run a WordPress plugin, and I get the following error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION

I'm trying to run a WordPress plugin, and I get the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION
or T_FUNCTION or T_VAR or '}' in
/nfs/c03/h05/mnt/52704/domains/creathive.net/html/wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php
on line 13

What would cause this error? Line 13 is the public bit.

EDIT: Here is some code:

class QrctWp
{
    public $pluginNa开发者_StackOverflow社区me = 'QR Code Tag';


Running on PHP4 by any chance? That's what the error message at this location would usually indicate.

Remove all public and private attributes. Though it's unlikely the plugin will work perfectly with the older object instance handling.

0

精彩评论

暂无评论...
验证码 换一张
取 消