New Installation Parse Error!

[09-Jul-2023 10:38:53 UTC] PHP Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Failed to parse dotenv file. Encountered an invalid name at []. in /home/folder/mydomain.com/vendor/vlucas/phpdotenv/src/Parser/Parser.php:30
Stack trace:
#0 /home/folder/mydomain.com/vendor/graham-campbell/result-type/src/Error.php(118): Dotenv\Parser\Parser::Dotenv\Parser{closure}()
[#1](https://github.com/InvoicePlane/InvoicePlane/issues/1) /home/folder/mydomain.com/vendor/vlucas/phpdotenv/src/Parser/Parser.php(31): GrahamCampbell\ResultType\Error->mapError()
[#2](https://github.com/InvoicePlane/InvoicePlane/issues/2) /home/folder/mydomain.com/vendor/vlucas/phpdotenv/src/Dotenv.php(222): Dotenv\Parser\Parser->parse()
[#3](https://github.com/InvoicePlane/InvoicePlane/issues/3) /home/folder/mydomain.com/index.php(20): Dotenv\Dotenv->load()
[#4](https://github.com/InvoicePlane/InvoicePlane/issues/4) {main}
thrown in /home/folder/mydomain.com/vendor/vlucas/phpdotenv/src/Parser/Parser.php on line 30

PHP Version 8.1. It also falls directly to 500 errors. I shared the content of the error_log file with you. Can you help me?

Hi, did you install InvoicePlane by following these instructions? InvoicePlane Wiki - InvoicePlane Wiki (especially pt. 6)

When taking the files to the standard main directory and applying the specified steps, an extra module that must be loaded during the first installation phase. It needs to be a file because it automatically drops to 500 error after doing Domain.com/Setup as standard.

The content of the error_log file of the 500 error I have experienced in the first installation should be done here on the server?

Can you kindly confirm that you commented out the first line of the ipconfig.php file as stated at the instructions at point 6 of the instructions?

Your error output points to a known issue that is solved in the upcoming version 1.6.1 and can also be solved by following the instructions as pointed out above.

1 Like

A post was split to a new topic: Cannot connect to the database server with the provided database information. Please check the credentials and try again

Thank you. After the specified arrangement, 500 error was solved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.