• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • 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

Removing the restriction on albums

Azone

Chevereto Member
Hello everyone, I encountered a problem, the user has about 300 albums, and when creating an album, he cannot upload photos to this album, having found two topics related to this limitation, I tried to remove the limit, from 300 to 1000, but this did not help, the user also cannot upload photos to albums, I searched almost everywhere where this limitation of 300 albums can be found, but except for the file "User.php" I did not find anything, please help, if it is not difficult, tell me in which files I need to change to remove this limitation, thanks in advance.
I changed only this line in the file from 300 to 0
Important clarification: photos are not uploaded to the sub-album
PHP:
$db->bind(':limit', intval(env()['CHEVERETO_MAX_USER_ALBUMS_LIST'] ?? 0));
Я не очень хорош в настройках кода.
Topics related to the problem №1
Topics related to the problem №2
I use a translator
 
Last edited:
Solution
The problem was solved by simply adding 'CHEVERETO_MAX_USER_ALBUMS_LIST' to the env.php file, it looks something like this
Before the change
PHP:
<?php

return [
    'CHEVERETO_DB_HOST' => '',
    'CHEVERETO_DB_NAME' => '',
    'CHEVERETO_DB_PASS' => '',
    'CHEVERETO_DB_PORT' => '',
    'CHEVERETO_DB_USER' => '',
    'CHEVERETO_DB_TABLE_PREFIX' => '',
    'CHEVERETO_ENCRYPTION_KEY' => '',
];
After the change
PHP:
<?php

return [
    'CHEVERETO_DB_HOST' => '',
    'CHEVERETO_DB_NAME' => '',
    'CHEVERETO_DB_PASS' => '',
    'CHEVERETO_DB_PORT' => '',
    'CHEVERETO_DB_USER' => '',
    'CHEVERETO_DB_TABLE_PREFIX' => '',
    'CHEVERETO_ENCRYPTION_KEY' => '',
    'CHEVERETO_MAX_USER_ALBUMS_LIST' => '999',
];
Using translator
The problem was solved by simply adding 'CHEVERETO_MAX_USER_ALBUMS_LIST' to the env.php file, it looks something like this
Before the change
PHP:
<?php

return [
    'CHEVERETO_DB_HOST' => '',
    'CHEVERETO_DB_NAME' => '',
    'CHEVERETO_DB_PASS' => '',
    'CHEVERETO_DB_PORT' => '',
    'CHEVERETO_DB_USER' => '',
    'CHEVERETO_DB_TABLE_PREFIX' => '',
    'CHEVERETO_ENCRYPTION_KEY' => '',
];
After the change
PHP:
<?php

return [
    'CHEVERETO_DB_HOST' => '',
    'CHEVERETO_DB_NAME' => '',
    'CHEVERETO_DB_PASS' => '',
    'CHEVERETO_DB_PORT' => '',
    'CHEVERETO_DB_USER' => '',
    'CHEVERETO_DB_TABLE_PREFIX' => '',
    'CHEVERETO_ENCRYPTION_KEY' => '',
    'CHEVERETO_MAX_USER_ALBUMS_LIST' => '999',
];
Using translator
 
Solution
Back
Top