• 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

500 error. Unexpected contents in env.php

Version
4.0.6
Website URL
http://scrhub.ru
PHP version
8.1
Database driver
MySQL
Database version
8
Web browser
chrome

SpJkee

Chevereto Member
Hello!

Reproduction steps
I'm trying to move to another hosting, so far to a test domain.

Unexpected result

After transferring all the files and the database dump, I get a 500 error. It's like he doesn't see the database.
All logins and passwords from the database are correct, I checked several times.

Error log message

# Message
Unexpected contents in /var/www/fastuser/data/www/fotohosting.pro/app/env.php

# Incident ID:675ac8f5508bb

# Time
2024-12-12T11:28:53+00:00 [1734002933]

# Stack trace
------------------------------------------------------------
#0 /var/www/fastuser/data/www/fotohosting.pro/app/vendor/chevere/chevere/src/Filesystem/FilePhpReturn.php:112
{main}()
------------------------------------------------------------
#1 /var/www/fastuser/data/www/fotohosting.pro/app/vendor/chevere/chevere/src/Filesystem/FilePhpReturn.php:42
Chevere\Filesystem\FilePhpReturn->assert()
------------------------------------------------------------
#2 /var/www/fastuser/data/www/fotohosting.pro/app/vendor/chevere/chevere/src/Filesystem/FilePhpReturn.php:51
Chevere\Filesystem\FilePhpReturn->get()
------------------------------------------------------------
#3 /var/www/fastuser/data/www/fotohosting.pro/app/src/Legacy/functions.php:988
Chevere\Filesystem\FilePhpReturn->getArray()
------------------------------------------------------------
#4 /var/www/fastuser/data/www/fotohosting.pro/app/legacy/entrypoints/index.php:25
Chevereto\Legacy\loaderHandler()
------------------------------------------------------------
#5 /var/www/fastuser/data/www/fotohosting.pro/index.php:12
require_once(string(length=75))
------------------------------------------------------------

# Server
Linux scrhub.ru 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64
 
The 500 error might be caused by invalid characters at the beginning of the env.php file. This can happen if there are extra spaces, BOM markers, or invisible characters before the opening <?php tag.

To resolve this, open the env.php file in a plain text editor and ensure that there are no characters or spaces before <?php. Save the file and try loading your website again. This should resolve the issue.
 
The 500 error might be caused by invalid characters at the beginning of the env.php file. This can happen if there are extra spaces, BOM markers, or invisible characters before the opening <?php tag.

To resolve this, open the env.php file in a plain text editor and ensure that there are no characters or spaces before <?php. Save the file and try loading your website again. This should resolve the issue.

Hello! I downloaded and checked on the PC, there are no spaces, no characters 🙁(I upload this file to the combat site on another hosting, everything works well there.
Rodolfo Help please 🙁(((
 
@SpJkee Use a code editor to edit the file. Don't use the built-in OS text editors, it won't work.
To be honest, I don't use the editor's code, I just copy the files and transfer it with all the data to another hosting. I don't edit anything in the editor.

Now I rented another hosting and tried to move it there, a similar problem arises.
 
I still get a similar error
Thank you for reaching out. I understand you're experiencing issues migrating your site to a new database. To help you effectively, could you please share:
  • The exact error message you're receiving
  • The steps you've taken so far
  • Any relevant access information

This information will help me better understand your situation and provide appropriate assistance.

P.S. The system uses the same error handler for all errors, it may look "similar" but the actual issue may be different from what happened before.
 
Back
Top