• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Broken upload with mysql error (3.6.2)

Status
Not open for further replies.

Pierre Lannoy

Chevereto Member
Hello Rodolfo.
When I try to upload an image, the frontend give me an error and, in my logs I've got a mysql error :
Code:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'modl_pics.chv_images' doesn't exist, referer: https://modl.pics/
The issue is the table prefix, I think... I've set no prefix, so my table name is :
Code:
modl_pics.images
Could you provide me a quick fix before 3.6.3 ?

Thanks in advance.
Pierre
 
app/lib/classes/class.image.php

Replace this:
PHP:
$db->query('SELECT * FROM chv_images WHERE image_md5=:md5 AND image_uploader_ip=:ip AND image_date_gmt > :date_gmt');

With this:
PHP:
$db->query('SELECT * FROM ' . DB::getTable('images') . ' WHERE image_md5=:md5 AND image_uploader_ip=:ip AND image_date_gmt > :date_gmt');

This has been already patched in the v3.6.2 download. For those who already have 3.6.2 either apply this patch or just re-download v3.6.2 with the patched file.
 
Status
Not open for further replies.
Back
Top