• 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

Error uploading files after upgrading to 4.1.4 - Passing null to parameter #1 ($haystack) of type string is deprecated

Version
4.1.4
PHP version
8.3.7
Database driver
MySQL
Database version
8.0.35
Web browser
Firefox

kryz0

Chevereto Member
Attention: No official support is provided at Community Help, this is for users helping each other. If you want official support go to chevereto.com/support

Hi all,

I tried upgrading from 4.0.7 to 4.1.4 and even tried a completely fresh install of 4.1.4 on a brand new VPS and I'm still getting an error when uploading files. I'm on Ubuntu 24.04 LTS. The error is reproducing on multiple different browsers and image types. All composer packages are updated. Rebooted multiple times.

Any suggestions on how to fix it?

Code:
mf3r8noa09ac1.webp - str_ends_with(): Passing null to parameter #1 ($haystack) of type string is deprecated (0)

Screenshot 2024-06-11 140127.png
Screenshot 2024-06-11 140138.png
 
In your External Storage you are using "endpoint" which Chevereto expects to be a URL https://hostname/etc. I will make sure to detect invalid endpoint to avoid surfacing this error.

Ahhhh thanks. I was using a valid URL, but for some reason after installation/upgrade all the characters got jumbled into random characters. Didn't think to check those storage values, but the Bucket, Key, Secret, and Endpoint values all got jumbled like this:

Screenshot 2024-06-12 175816.png

After updating them all to proper strings, it worked fine. Thanks! Problem solved.
 
That happens when you (inadvertently) define CHEVERETO_ENCRYPTION_KEY which happens when you populate the database connection info via web. When you created your new app/env.php file it included the encryption key as that's the new default.

You shouldn't use the web gui to re-connect to the database for an existing installation, unless of course you manually remove the encryption key.

As your installation is now using encryption, mind checking all the settings/keys that will get you some trouble: https://v4-docs.chevereto.com/application/reference/encryption.html#what-is-encrypted
 
Back
Top