Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Warning: Upload Collision handler - Merge #274

Open
ghost opened this Issue Jan 8, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jan 8, 2013

Warning: assert() [function.assert]: Assertion failed in /www/core/imageboard.pack.php on line 73
Makes it nearly impossible to use "Bulk Add" and any duplicate images being uploaded by users show an ugly php error.

EDIT: This occurs when uploading a file with the same hash and the "Upload collision handler" option in the Board Config is set to "Merge".

Collaborator

jgen commented Dec 1, 2013

The assert that is failing is this below:

    /**
     * Find an image by ID
     *
     * @retval Image
     */
    public static function by_id(/*int*/ $id) {
        assert(is_numeric($id));

I can't seem to replicated this doing a normal upload on latest Shimmie. It's possible that Bulk Adding is what is causing this. Though I haven't confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment