joshp23 / YOURLS-IQRCodes

YOURLS QRCode plugin with exposed options and full integration
GNU General Public License v3.0
22 stars 11 forks source link

QR code not being created #16

Closed nickdring closed 7 years ago

nickdring commented 7 years ago

We've configured the plugin and the qr code created has a broken link as you can see here,. screen shot 2017-07-07 at 13 42 38 Also when we upload the logo it doesn't seem to get saved.

joshp23 commented 7 years ago

If no qr codes are being generated then you may want to check permissions for the cache location. This may be the reason your logo isn't being saved as well.

Always start by checking permissions.

Open a separate issue for your second issue, please.

bm1-phillip commented 7 years ago

Hello, I get the same error. The users/cache/ folder does not exist either. Can it be at the SymLink?

I think it's not true.

ln -s user/plugins/iqrcodes/assets/srv.php pages/srv.php
ln -s user/plugins/iqrcodes/assets/qrchk.php pages/qrchk.php
nickdring commented 7 years ago

HI, no the permissions seem ok, indeed inside the cache folder we can see files. The cache folder we created ourselves. screen_thumb

nickdring commented 7 years ago

cache.zip here are the contents of the zip file

joshp23 commented 7 years ago

There needs to be two folders called cache (from YOURLS root)

The first (that you zipped above) is a static tool-box for phpqrcodes.php, it allows for slightly faster qr code image generation. The second is where iqrcodes will store the generated qr code images and your logo file.

Again, the issues mentioned in this particular thread all stem from a simple permissions issue. Iqrcodes plugin is trying to create user/cache/qr but apparently doesn't have the necessary permissions to write to the user directory in both of your setups. This is fine. You can do something like this:

Or, in case that is either unacceptable to you, or still doesn't do the trick, just do the following from YOURLS root:

The third command is merely for good measure, and shouldn't be required.