I was batch uploading files and following the same steps each time. I selected the directory, pressed OK, but this time a critical error message came up:
Critical error
There was an error while processing a database query.
While executing query "SELECT filepath, filename FROM cpg14x_pictures WHERE filepath LIKE 'CutThroatIsland5%'" on 0 mySQL error: Got error 127 from storage engine
File: /screencaps/include/functions.inc.php - Line: 249
Debug is set up for everyone if more information is needed and the version being used is v1.4.13. I know there is a newer version, I just haven't upgraded yet.
Additional information: I went back to the gallery after posting the above and a critical error is no longer coming up and everything is acting as it should.
Marking thread as solved then. If the error should return: do exactly as suggested in the documentation, section "asking for support on upload issues". That section is there for a particular reason.
Terribly sorry, I'll keep this in mind in the future. Thank you though.