question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gallery.RANDOM stopped working.

See original GitHub issue
(node:21718) UnhandledPromiseRejectionWarning: QueryFailedError: ER_SP_DOES_NOT_EXIST: FUNCTION gallery.RANDOM does not exist
    at new QueryFailedError (/home/kadelam/works/kmodules/pigallery2/node_modules/typeorm/error/QueryFailedError.js:27:28)
    at Query.<anonymous> (/home/kadelam/works/kmodules/pigallery2/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:223:45)
    at Query.<anonymous> (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/Connection.js:502:10)
    at Query._callback (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/Connection.js:468:16)
    at Query.Sequence.end (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Query.ErrorPacket (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/protocol/sequences/Query.js:90:8)
    at Protocol._parsePacket (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/protocol/Protocol.js:278:23)
    at Parser.write (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/protocol/Parser.js:76:12)
    at Protocol.write (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/kadelam/works/kmodules/pigallery2/node_modules/mysql/lib/Connection.js:91:28)
(node:21718) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21718) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Node version is 11.1.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Kadelamcommented, Nov 22, 2018

I can confirm it’s working. Cheers!

0reactions
bpatrikcommented, Nov 21, 2018

Thank you for the report, I managed to find the error. With the latest commit (5625f37) I fixed it. It will be part of the next (soon-comming) release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

is Random Gallery not working / having issues for you?
Go to your Apps->Random Gallery->Notifications and check whether notifications enabled or not. If it is not enabled, please enable it. Also if you...
Read more >
Foo Galleries randomly stop working on my page
A quick fix would be to simply disable lazy loading in FooGallery and then everything should work as expected. Lazy loading is currently...
Read more >
Bug with Gallery's OnSelect skipping over random "functions"
First time, the variable is set and it navigates to the Screen. Go back and try a new line of the gallery. Second...
Read more >
FooGallery Random Sorting Issues - FooPlugins
One of the options in the Gallery Sorting feature is the “Random” option, which when selected will sort images randomly every time the...
Read more >
[resolved] Random Pictures --> Not Working Correctly... - Piwigo
Hi, got a problem...every time i hit the random picture button in the menu....well i got my random picture then in thumbnail format....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found