YOURLS-QRCode-Plugin
YOURLS-QRCode-Plugin copied to clipboard
Activation Error O_O
Running PHP 7.1, Yourls 1.8.2, Composer 2.3.5, Namecheap hosting, added to config file -> define('SEAN_QR_SCALE', 5); define('SEAN_QR_LOGO_SPACE', 13); define('SEAN_QR_ADD_TO_SHAREBOX', true); define('SEAN_QR_MARGIN', 4);
I've done everything I could think of/find on Google to try to fix this, but I keep getting the following error when attempting to install: Parse error: syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/MY_USER_NAME/MY_DOMAIN/user/plugins/seans-qrcode/plugin.php on line 40
--referring to: protected int $logoSpaceWidth; protected int $logoSpaceHeight;
Thanks for your work on this, it sounds extremely useful.
Any help would be greatly appreciated.
Hi, maybe you've resolved this already, if not, the error is caused because you're just uploading the plugin on plugin's directory, and this plugins have dependencies of another library (chillerlan/php-qrcode) managed by composer
look at the Manual installation guide (not recommended) of that library
https://github.com/chillerlan/php-qrcode 这里是说明 运行 composer require chillerlan/php-qrcode 然后再激活,就可以了