• 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

Unable to fix the errors when v3 free to v4 lite edition update.

Version
v4.3.7
PHP version
8.1
Database driver
MariaDB
Database version
10.11
Web browser
Firefox and others

akilam

Chevereto Member
Hello community members,

I’ve searched the forum extensively but couldn’t find a solution, so I’m posting here for help.

I have two websites — one running Chevereto V3 Free and another on V3 Paid. When attempting to update both, I’m encountering similar errors.

Environment details:
  • Hosting: Hetzner VPS with cPanel
  • PHP versions tested: 7.4 to 8.4
  • Database: MariaDB
I decided to update the free edition to V4 Lite using the upgrade method described in the documentation...

🔗 Upgrade to V4 Docs
🔗 Using app/env.php Docs

Following the steps:
  1. Removed the app/vendor folder from my Chevereto V3 installation.
  2. Replaced Chevereto V3 files with V4 files.
  3. Switched PHP to version 8.
  4. Created app/env.php (as per the documentation).
After this, running /update resulted in an error.

1. When accessing /update, the error log shows:

(Please see attached “update.php.error.txt”)

Message: Error executing the Chevereto update query.

I suspect this might be related to my previous theme’s custom templates, as it seems to be checking many tables.

I deleted the old files and uploaded the V4 files, but the issue persists.


2. When opening the dashboard, another error appears:

(Please see attached “dash.php.error.txt”)

Message: Undefined array key "disk_used"

I believe this might be related to the local storage URL or path configuration, but I couldn’t find any references in the forum regarding this.


3. I can still view previously uploaded images, but clicking on any thumbnails (posting on blogs) leads to an error message. I can upload new images as well with same result.

(Please see attached “thumb_click.php.error.txt”)

Message: Undefined array key "like_user_id" in Image.php (line 377)

Code snippet in Image.php:377 >

PHP:
if ($requester !== []) {
            if (version_compare(cheveretoVersionInstalled(), '3.7.0', '>=')) {
                $joins[] = 'LEFT JOIN '
                    . $tables['likes']
                    . ' ON '
                    . $tables['likes']
                    . '.like_content_type = "image" AND '  << this is line 377
                    . $tables['images']
                    . '.image_id = '
                    . $tables['likes']
                    . '.like_content_id AND '
                    . $tables['likes']
                    . '.like_user_id = '
                    . $requester['id'];
                $columns = array_merge($columns, self::COLUMNS['likes']);
            }
        }

Other similar errors appear in the same file.

Also..

The profile page and settings loads fine, but the dashboard remains inaccessible.

If I can’t resolve this, I might revert to V3 on a separate VPS running PHP 7.4.

I apologize if this seems like a complicated or basic issue that I unable to find a solution.

Any help or guidance would be greatly appreciated.

Thank you very much!
 

Attachments

The first error says:

Code:
Try running each of the following statements in the database console to find the conflict.
(SQL)

The application filesystem is running Chevereto V4, but your database is not upgraded. The website won't work until the database gets updated, which you need to do it manually to detect why the database is panic.
 
Back
Top