Installation fails when moving config_inc.php

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Peter-VARGA
Posts: 2
Joined: 17 Aug 2023, 14:24

Installation fails when moving config_inc.php

Post by Peter-VARGA »

I downloaded the latest version 2.25.7 and when I open the URL https://mantis.example.com then I see the below Pre-Installation Check, where all points are "GOOD" apart from this one:

Code: Select all

Checking there is no 'config_inc.php' file in 1.2.x location.	BAD Move config_inc.php to config/config_inc.php.
When I move the file to the directory then mantis stops working with HTTP #500 and this error is in the log file:
[php:warn] [pid 8148] PHP Warning: require_once(/application/mantis/config/core/php_api.php): Failed to open stream: No such file or directory in /application/mantis/core.php on line 247, referer: https://mantis.faf.software/admin/install.php
[php:error] [pid 8148] PHP Fatal error: Uncaught Error: Failed opening required '/application/mantis/config/core/php_api.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /application/mantis/core.php:247
Stack trace:
#0 /application/mantis/core.php(115): require_api('php_api.php')
#1 /application/mantis/admin/install.php(34): require_once('/application/ma...')
#2 {main}
thrown in /application/mantis/core.php on line 247, referer: https://mantis.faf.software/admin/install.php
Hm, what am I doing wrong? PHP 8.2.8

I see clearly that the the core directory is added to the config directory which causes the problem.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Installation fails when moving config_inc.php

Post by atrol »

After download of 2.25.7 there is no config_inc.php in the root folder of the download.

Maybe you downloaded and copied everything to the installation of an old version. This can't work.

Concerning PHP 8.2.8: PHP 8.2 is not supported at the moment but planned for the next version. See this issue and the child issues https://mantisbt.org/bugs/view.php?id=32027
Please use Search before posting and read the Manual
Peter-VARGA
Posts: 2
Joined: 17 Aug 2023, 14:24

Re: Installation fails when moving config_inc.php

Post by Peter-VARGA »

OK, I see. The problem starts with the fact, the current version doesn't run under PHP 8.2.8
All other issues are home-made and I forgot to check the log file after I created/updated the database. There are the error messages which are mentioned in your link.

Then I wait as an older PHP version is not an option.
Post Reply