/halp/ - LynxChan technical assistance

General support

Mode: Reply
Name
Subject
Message

Max message length: 4096

Files

Max file size: 1.00 MB

Max files: 3

E-mail
Password

(used to delete files and postings)

Misc

Remember to follow the rules


(1.85 KB 512x238 zelda-ii-i-am-error.png)
Anonymous 08/09/2019 (Fri) 19:23:24 No. 987
When uploading files in the mobile version of PenumbraLynx branch 2.2.x with the Lynxchan 2.2.7 backend. The issue occurs exclusively on the mobile version of the front-end, I get the following errors:

gallery.js:166 Uncaught TypeError: Cannot read property 'indexOf' of undefined
at Object.gallery.addGalleryFile (gallery.js:166)
at Object.posting.setUploadLinks (posting.js:345)
at Object.posting.setUploadCell (posting.js:384)
at Object.posting.setPostComplexElements (posting.js:542)
at Object.posting.setPostInnerElements (posting.js:572)
at Object.posting.addPost (posting.js:643)
at thread.refreshCallback (thread.js:405)
at XMLHttpRequest.connectionStateChanged (api.js:359)
gallery.addGalleryFile @ gallery.js:166
posting.setUploadLinks @ posting.js:345
posting.setUploadCell @ posting.js:384
posting.setPostComplexElements @ posting.js:542
posting.setPostInnerElements @ posting.js:572
posting.addPost @ posting.js:643
thread.refreshCallback @ thread.js:405
connectionStateChanged @ api.js:359
XMLHttpRequest.send (async)
api.localRequest @ api.js:365
thread.refreshPosts @ thread.js:465
thread.replyCallback @ thread.js:334
api.handleConnectionResponse @ api.js:232
connectionStateChanged @ api.js:290
XMLHttpRequest.send (async)
api.formApiRequest @ api.js:329
thread.sendReplyData @ thread.js:532
gotFiles @ thread.js:552
postCommon.newGetFilesToUpload @ postCommon.js:332
checked @ postCommon.js:356
requested @ postCommon.js:312
api.handleConnectionResponse @ api.js:232
connectionStateChanged @ api.js:290
XMLHttpRequest.send (async)
api.formApiRequest @ api.js:329
reader.onloadend @ postCommon.js:305
FileReader (async)
postCommon.newCheckExistance @ postCommon.js:321
postCommon.newGetFilesToUpload @ postCommon.js:341
checked @ postCommon.js:356
requested @ postCommon.js:312
api.handleConnectionResponse @ api.js:232
connectionStateChanged @ api.js:290
XMLHttpRequest.send (async)
api.formApiRequest @ api.js:329
reader.onloadend @ postCommon.js:305


I have tried PenumbraLynx branch 2.1.x too and I get the exact same issue, under the exact same context. Is this a known issue or something that I should fix on my own? Wanna double check before I start tweaking the js.
OOOOOH, so that's it.
>>988
lolwut
Fixed on master, lynxhub, 2.2.x and 2.1.x branches. I've noticed something odd right after uploading files, but never managed to figure it out.
>>990
And was the issue exclusively related to the js files or had it something to do with the html formatting too?
>>991
Exclusively with js. The gallery is only set for non-mobile, but the part that adds new files to the gallery didn't check if the environment was non-mobile.
>>992
Okay, I will change the js and report back if I still have the issue, or otherwise.
OP here. I can confirm that the recent changes in the js mentioned here >>990 solve the issue

Delete
Report/Ban

Captcha (required for reports and bans by board staff)


no cookies?