Import the database backup into an empty database.William959 wrote: ↑Sun Jan 23, 2022 8:03 pm A while ago I had a forum on PHPBB, and digging through my backups I was able to find the backup database for this forum. I would like to recover this forum, but I only have the database. How can I do this?
If possible on the latest version of PHPBB.
I'm doing all the procedure on localhost. I created the empty database and imported the backup.
I will leave some screenshots of these tables. I noticed that the lang table is also important, so I'll leave a screenshot of this part as well.
your prefix = phpbb_yourprefix_config
Code: Select all
<?php
// phpBB 3.2.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = 'localhost';
$dbport = '3306';
$dbname = 'mydatabase';
$dbuser = 'root';
$dbpasswd = '';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';
@define('PHPBB_INSTALLED', true);
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
In my database it is telling me that the version I was using is 3.2.9. And the version I'm using is 3.2.9 too.janus_zonstraal wrote: ↑Mon Jan 24, 2022 9:14 am What php version are you using.
Further is it easier to post the errors here directly "between code tags"
Code: Select all
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, phpbb\template\twig\definition given in C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php:607
Stack trace:
#0 C:\xampp\htdocs\forum\cache\production\twig\31\3169067b189da94058c9faa176fc1f83f0aa5b9394c2743d6a6b4e68f6a1fc96.php(264): Twig\Template->getAttribute(Object(phpbb\template\twig\definition), 'STYLESHEETS', Array)
#1 C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php(455): __TwigTemplate_a690e5a5f6c2e2f0f39453199bb2fa6e9906a54e9d618a38f4de508561b9d905->doDisplay(Array, Array)
#2 C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php(422): Twig\Template->displayWithErrorHandling(Array, Array)
#3 C:\xampp\htdocs\forum\cache\production\twig\fb\fbb57549381801650002b82825611222317da8baaebd28b649d4c2d8efd771ba.php(54): Twig\Template->display(Array)
#4 C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php(455): __TwigTemplate_0d3e083062153b9f2c8cc7f11eccd7c9b33239a4c6336a25bba31d2078903d7e->doDisplay(Array, Array)
#5 C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php(422): Twig\Template->displayWithErrorHandling(Array, Array)
#6 C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php(434): Twig\Template->display(Array)
#7 C:\xampp\htdocs\forum\vendor\twig\twig\src\TemplateWrapper.php(47): Twig\Template->render(Array, Array)
#8 C:\xampp\htdocs\forum\vendor\twig\twig\src\Environment.php(384): Twig\TemplateWrapper->render(Array)
#9 C:\xampp\htdocs\forum\phpbb\template\twig\environment.php(224): Twig\Environment->render('message_body.ht...', Array)
#10 C:\xampp\htdocs\forum\phpbb\template\twig\environment.php(194): phpbb\template\twig\environment->display_with_assets('message_body.ht...', Array)
#11 C:\xampp\htdocs\forum\phpbb\template\twig\twig.php(317): phpbb\template\twig\environment->display('message_body.ht...', Array)
#12 C:\xampp\htdocs\forum\includes\functions.php(4806): phpbb\template\twig\twig->display('body')
#13 C:\xampp\htdocs\forum\includes\functions.php(3554): page_footer()
#14 [internal function]: msg_handler(1024, 'Sorry but this ...', 'C:\\xampp\\htdocs...', 376)
#15 C:\xampp\htdocs\forum\phpbb\user.php(376): trigger_error('BOARD_DISABLE')
#16 C:\xampp\htdocs\forum\index.php(29): phpbb\user->setup(NULL)
#17 {main} thrown in C:\xampp\htdocs\forum\vendor\twig\twig\src\Template.php on line 607
That's the phpBB version.William959 wrote: ↑Mon Jan 24, 2022 4:58 pm In my database it is telling me that the version I was using is 3.2.9. And the version I'm using is 3.2.9 too.
Difficult with a board that doesn't start