I just updated my old forum to Phpbb 3.1.5 and now I can no longer access the ACP. I get the following error:
Fatal error: Call to undefined method phpbb\template\twig\twig::set_custom_template() in /home1/reporter/public_html/pirkkalafoorumi.com/adm/index.php on line 54
The only files I saved from the old install were:
config.php
store-folder
images-folder
files-folder
I ran modission_reset.php but it returned zero results.
I deleted the cache files, but still the same error.
I re-uploaded all the Phpbb3-folder files (except config.php, files-folder, store-folder and images-folder).
I ran the database_update a couple of more times. Still the same error.
Maybe my mistake was that I didn't delete the old files from the server, I simply replaced them with the Phpbb 3.1.5 files. I will now try to delete all the files from the server (except config.php, files-folder, store-folder and images-folder) and try again.
After doing another "clean" install, I'm now getting the following error when trying to access ACP:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@<UNIX_TIMESTAMP>) at position 0 (@): Unexpected character' in /home1/reporter/public_html/pirkkalafoorumi.com/phpbb/datetime.php:50 Stack trace: #0 /home1/reporter/public_html/pirkkalafoorumi.com/phpbb/datetime.php(50): DateTime->__construct('@<UNIX_TIMESTAM...', Object(DateTimeZone)) #1 /home1/reporter/public_html/pirkkalafoorumi.com/phpbb/user.php(720): phpbb\datetime->__construct(Object(phpbb\user), '@<UNIX_TIMESTAM...', Object(DateTimeZone)) #2 /home1/reporter/public_html/pirkkalafoorumi.com/includes/acp/acp_main.php(462): phpbb\user->format_date('<UNIX_TIMESTAMP...') #3 /home1/reporter/public_html/pirkkalafoorumi.com/includes/functions_module.php(674): acp_main->main('main', 'main') #4 /home1/reporter/public_html/pirkkalafoorumi.com/adm/index.php(81): p_master->load_active() #5 {main} thrown in /home1/reporter/public_html/pirkkalafoorumi.com/phpbb/datetime.php on line 50
Your board start date has junk in it. Go here and enter a date on the right that you would like to use as your board's start date and get the unix timestamp: http://www.unixtimestamp.com/
The query was successful. First it didn't seem to work, but after cleaning the cache once again and switching to a different browser just to be sure, it's finally working! Thank you very much for both of you for your kind support!