test.php
in your forum root, put this in it, run it in your browser, and post the output:
Code: Select all
<?php
define('IN_PHPBB', true);
define('IN_INSTALL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
if (file_exists('install/startup.' . $phpEx))
{
include('install/startup.' . $phpEx);
}
else
{
include('common.' . $phpEx);
include('includes/startup.' . $phpEx);
}
$config = new \phpbb\config\config(array());
$driver_helper = new \phpbb\passwords\driver\helper($config);
$passwords_drivers = array(
'passwords.driver.bcrypt_2y' => new \phpbb\passwords\driver\bcrypt_2y($config, $driver_helper),
'passwords.driver.bcrypt' => new \phpbb\passwords\driver\bcrypt($config, $driver_helper),
'passwords.driver.salted_md5' => new \phpbb\passwords\driver\salted_md5($config, $driver_helper),
'passwords.driver.phpass' => new \phpbb\passwords\driver\phpass($config, $driver_helper),
'passwords.driver.argon2i' => new \phpbb\passwords\driver\argon2i($config, $driver_helper),
'passwords.driver.argon2id' => new \phpbb\passwords\driver\argon2id($config, $driver_helper),
);
$passwords_helper = new \phpbb\passwords\helper;
// Set up passwords manager
$passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, array_keys($passwords_drivers));
// Run a dummy password to initialize the manager
$passwords_manager->hash('test');
foreach ($passwords_drivers as $driver => $class)
{
echo 'Driver: ' . $driver;
flush();
echo ' hash(test): ' . $passwords_manager->hash('test', $driver) . '<br>';
}
These lines are often added automatically by whatever web panel management software is being used (ex. cPanel) when a PHP version change is made.JPLABS wrote: Tue May 13, 2025 6:34 pm This line wasn’t added by us - it was already in the file, likely from a previous setup.
You can use the "Forgot password" link on the login page to generate a temporary password and then reset it.JPLABS wrote: Tue May 13, 2025 6:34 pm Unfortunately, still is no possible to log in as administator with original password or user as user with password created before manually changes at .htaccess.
echo 'Argon2 provider: ', PASSWORD_ARGON2_PROVIDER;
if you add this line to the very end script above?Yes, I used "Forgot password", received email, created new email. I have tried to log in with new password and received message: You did not provide a password reset token.Noxwizard wrote: Tue May 13, 2025 10:25 pm You can use the "Forgot password" link on the login page to generate a temporary password and then reset it.
I have added the above to the very end of the test.php and startedrxu wrote: Wed May 14, 2025 4:01 am What will be the output ofecho 'Argon2 provider: ', PASSWORD_ARGON2_PROVIDER;
if you add this line to the very end script above?