• 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:

  • 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

instead of Website.com/chev login and other functions redirect to Website.com/chev/chev

Version
4.1.4
Website URL
https://kenzato.uk/booru
PHP version
8.0.30
Database driver
MariaDB
Database version
10.3.29
Web browser
chrome

Kenzato

Chevereto Member
After updating from 3.20 to 4.1.4 ive been having this issue where everything that "redirects" will have the subdomain applied twice, leading to errors obviously.

For example if you try to login, the redirect will send you to chev/chev instead of chev, you will still be logged in but have to manually go to /chev
Or if you go through the 18/cookie disclaimer it will also send you to /chev/chev instead of /chev. The popup account bar which lets you go to "following" or "followers" will do this too, same with the image sorting on user profiles (most recent, most liked)

Anyone have an idea of where this could be going wrong. I looked at the function for hostname/get url and whatnot and it does not seem to be faulty other than appending the subdirectory twice of course. the hostname env looked good, thought it might have to do something with trailing slashes but could not find any either but ofc i am most likely wrong.

Aware that this might need more indepth info which is ready to give whats asked for, hoping that someone has run into this themselves


env
'CHEVERETO_HOSTNAME_PATH' => '/booru/',

No errors logged anywhere, nothing that screams "redirect" or similar in the apache config. Obviously, something to do with hostname or similar, webmin might be to blame. For reference public_html/booru is where everything is stored
 
  • Like
Reactions: mar
I am having the same issue after the 4.1.4 update.
Can we log this as a defect or does anyone know what the quick fix is? I am surprised more people aren't having this issue..
 
  • Like
Reactions: mar
I am also facing this issue. I'm using a sub directory too.
my site(example domain):
Code:
https://mysite.com
chevereto location
Code:
https://mysite.com/mychevereto

I upgraded from v3.20.20 to v4.1.4 most of it went well except for that same issue

When it login it goes to:
Code:
https://mysite.com/mychevereto/mychevereto
and i see an error "That page doesn't exist. The requested page was not found."
I have to click on the chevereto logo to take me to the homepage.
The login worked and I am logged in and everything works normal. I can upload media no issues.

Inside of the users profiles whether logged in or not. if i hover over the or click on "following" & "follower"
the link shows up as
Code:
https://mysite.com/mychevereto/mychevereto/admin/following
Code:
https://mysite.com/mychevereto/mychevereto/admin/followers

If i remove one of the mychevereto/ i can see the users profile

In the directory /app/
I looked in both these files: env.php and env-default.php and these are my settings:

env.php
Code:
  'CHEVERETO_DB_DRIVER' => 'mysql',
  'CHEVERETO_HOSTNAME_PATH' => '/mychevereto/',
  'CHEVERETO_HOSTNAME' => 'mysite.com',

env-default.php
Code:
  'CHEVERETO_DB_DRIVER' => 'mysql',
  'CHEVERETO_HOSTNAME_PATH' => '/',
  'CHEVERETO_HOSTNAME' => 'localhost',

I tired fooling around with those 2 files and also the .htaccess but no success.

i checked out Kenzato's site and he has a consent page. When i click on it goes to /booru/booru/
I don't have a landing page like Kenzato but i turned it on and same issue.
the url is:
Code:
https://mysite.com/mychevereto//agree-cosent
if i click on it it goes to:
Code:
https://mysite.com/mychevereto/mychevereto

Version: 4.1.4
PHP version: 8.1.29
Database driver: mysqlnd 8.1.29
Web browser: Firefox, Chromium, Edge
 
Last edited:
Unfortunately this is something that I can't replicate under Docker, when I add a sub-path the system only needs the proper ENV and works flawlessly. Most likely this is related to how your virtual server is configured, something is causing to report a wrong path and Chevereto is unaware of that.

I need to inspect this on a "live" system, that is, I need to see this happening on the wild.

Someone needs to get me access to a system with this issue so I can detect what's going on.
 
I'm going to install a fresh copy on my server to see if it still happens. Then import the database and see if that happens. It's on my to-do list.

i'm not using docker. I heard if i install it via docker i won't be able to edit the html, css, php files etc.

I'm not too familiar with docker. I've just started using it.

If that doesn't work you can inspect mine too but i'll do some troubleshooting first.
 
Back
Top