-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
U-SRV sending blank / broken QR codes #7
Comments
YOURLS 1.8, U-SRV 2.3.3, IQRPlugin 2.2.1. If I use the mass QR check, it will create the cache files, but not update the database. I can't retrieve a QR code using the .qr URL method either. |
The qr codes are not put in the U-SRV database, they are stored as files in the cache folder so that much is ok. When you say that they don't appear here, what do you mean, in the file system, in the YOURLS ui, or both?
After you mass check, do the qr codes appear in YOURLS share boxes?
Any log data, or web console output? |
My apologies Josh,
It looks like now, after reverting to 1.79 and then 1.80, things have changed but I still have the same issue within the UI. If I create a new link, the qr IS now generated in the cache, I can go to the server and view it. The QR does not show in the UI when I create a new link.
[cid:132ff3a7-a14f-40bb-a2d6-531d83cbaf93]
Trying to access the QR with https://lnk.mcla.edu/nco49.qr results in a broken image. Maybe my logic is bad here, but it sounds more like I can't retrieve the image from U-SRV.
I will look for more logs but I have nothing when I turn on debug in YOURLS, scanning the access.log or the php_error.log.
Any thoughts you have would be appreciated.
Thank you,
…________________________________
From: Josh Panter ***@***.***>
Sent: Friday, March 12, 2021 12:59 AM
To: joshp23/YOURLS-IQRCodes ***@***.***>
Cc: Ian Bergeron ***@***.***>; Author ***@***.***>
Subject: Re: [joshp23/YOURLS-IQRCodes] Empty U-SRV database (#44)
CAUTION: This email originated from outside of MCLA. Do not click links or open attachments unless you recognize the sender and know the content is safe.
the database is blank and QR codes do not appear.
The qr codes are not put in the U-SRV database, they are stored as files in the cache folder so that much is ok. When you say that they don't appear here, what do you mean, in the file system, in the YOURLS ui, or both?
the mass QR check, it will create the cache files
After you mass check, do the qr codes appear in YOURLS share boxes?
If I try to create a new link, it does not create a cached image
Any log data, or web console output?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://github.com/joshp23/YOURLS-IQRCodes/issues/44#issuecomment-797255914>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATF4XKTXVTSNG5F3XLCLRZLTDGNTBANCNFSM4ZAH3TXQ>.
|
No, they do not. Broken link. I think this has more to do with USRV retrieving files. When I attempt to download a file by generating my own key, I get a file but it is empty in the case of a test file made from within the USRV plugin, and a corrupt image in the case of a QR. The access.log shows a successful attempt, result code 200. |
In the Web Developer Console there should be 2 or 3 get requests. The first, once expanded, should show a
|
Thank you for sticking with me on this. I was getting a 200 on image load, FWIW. What I found eventually, was that the file would download successful, with two line feeds at the beginning. I couldn't find anything in srv.php that would introduce blank lines but I "solved" it by adding:
On line 159 of srv.php, just before the readfile($file). |
Indeed.
seems like a pull request in the making. ;) |
I added your change to the main branch. Thanks! |
Installation succeeds and shows a good installation of U-SRV in the YOURLS IQRPlugin Config, but the database is blank and QR codes do not appear.
The text was updated successfully, but these errors were encountered: