Unexpected T_STRING, waiting for T_OLD_FUNCTION or T_FUNCTION or T_VAR

I try to run the 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 can cause this error? Line 13 is a public bit.

EDIT: Here is the code:

class QrctWp
{
    public $pluginName = 'QR Code Tag';
+3
source share
1 answer

Running on PHP4 by accident? This is what the error message usually indicates in this place.

Remove all attributes publicand private. Although it is unlikely that the plugin will work fine with the old handling of the instance of the object.

+13
source

Source: https://habr.com/ru/post/1786042/


All Articles