• 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

v4.0.4 CHEVERETO_HOSTNAME_PATH issue

Version
4.0.4
Website URL
https://savvyify.com/img
PHP version
8.025
Database driver
MariaDB
Database version
10.5.17-MariaDB-cll-lve
Web browser
chrome

user_f1e85

Chevereto Member
I have updated from v4.0.1 to v4.0.4 and because I use a sub-directory "img" I add this to the app/env.php file with 'CHEVERETO_HOSTNAME_PATH' => '/img/'
so this works fine but I just noticed the links to the image pages double the sub-directory in the url like this: https://savvyify.com/img/img/image/3JLl
all of the embed codes are showing correctly:
Code:
<a href="https://savvyify.com/img/image/3JLl"><img src="https://savvyify.com/img/images/2022/11/19/2022-11-19_008.th.png" alt="2022-11-19_008.png" border="0" /></a>
and the thumbnails show correctly on other sites when you paste the embed codes, and when you hover the thumbnails the url is correct
but when you click the thumbnails or a text link the sub-directory is doubled like this: https://savvyify.com/img/img/image/3JLl
My .htaccess looks like the default so I'm not sure why this is, in v4.0.1 this worked correctly.
I reported this as a bug here, perhaps correcting this bug will also fix the issues with logging in and updating installs that use a sub-directory.
 
Last edited:
I found that changing my install to a subdomain corrected my issues.
So somehow installing Chevereto in a sub-directory like
Code:
https://savvyify.com/img/
and adding "img" to the app/env.php file like the documentation instructs: 'CHEVERETO_HOSTNAME_PATH' => '/img/' causes the error.
But installing Chevereto in a subdomain like
Code:
https://img.savvyify.com/
and removing the "img" from the app/env.php file like the documentation instructs works correctly.
Hopefully, this will help someone in the future who experiences this bug.
 
Last edited:
You need to configure CHEVERETO_HOSTNAME_PATH when you SERVE Chevereto from a sub-directory. When at cPanel you create a sub-domain website, it places that website at public_html/sub but it serves from /. That's why it got fixed by removing img.
 
Thanks for your reply, but please note that I did configure CHEVERETO_HOSTNAME_PATH when I served Chevereto from a sub-directory, and this is what was causing the error.
Configuring the CHEVERETO_HOSTNAME_PATH made the thumbnail image path correct but broke the thumbnail link path to the image page.
Changing my install to a sub-domain instead of a sub-directory solved, too bad we didn't look into this back in November, I left the error in place for almost 3 weeks and made a bug report, but I can't disrupt my site now to demonstrate.
I guess most people don't make a sub-directory install but this was not an issue with v4.0.1
Hopefully, this thread will help the next person that makes a sub-directory install.
 
Back
Top