Portal stopped loading, getting a DateTime::__construct() er
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
-
Topic author - Active Member
- Posts: 9
- Joined: 9. March 2015 20:29
- phpBB.com User: random_rodder
Portal stopped loading, getting a DateTime::__construct() er
Your Portal Version: 2.1.0-rc2
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://ww.tandycoco.com/forum
What have you done before the problem was there?
Upgraded phpBB from 3.0.12 to 3.0.3, AFTER removing all previous MODs.
Modified the template colours.css file to achieve the color scheme for my forum.
After upgrade, Board3 Portal was reinstalled as an extension. phpBB Pages, Board Announcements and Breadcrumb Menu extensions were also installed.
What have you already tryed to solve the problem?
Disabling all other extensions and Google searching for the problem with no results. Also disabled Board3 Portal, cleared the data, and re-enabled Board3 Portal and still am given the same error.
Description and Message
After upgrade, portal was reinstalled as an extension, phpBB Pages, Board Announcements and Breadcrumb Menu extensions were also installed.
Everything was fine and all extensions were working as expected. Earlier today, I installed the TinyMCE editor for phpBB Pages - forum and Portal still worked fine.
Then, after a few hours I now get the following error when trying to access the Portal:
DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character
Any help would be greatly appreciated as I am NOT a PHP expert...
Thanks,
random_rodder
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://ww.tandycoco.com/forum
What have you done before the problem was there?
Upgraded phpBB from 3.0.12 to 3.0.3, AFTER removing all previous MODs.
Modified the template colours.css file to achieve the color scheme for my forum.
After upgrade, Board3 Portal was reinstalled as an extension. phpBB Pages, Board Announcements and Breadcrumb Menu extensions were also installed.
What have you already tryed to solve the problem?
Disabling all other extensions and Google searching for the problem with no results. Also disabled Board3 Portal, cleared the data, and re-enabled Board3 Portal and still am given the same error.
Description and Message
After upgrade, portal was reinstalled as an extension, phpBB Pages, Board Announcements and Breadcrumb Menu extensions were also installed.
Everything was fine and all extensions were working as expected. Earlier today, I installed the TinyMCE editor for phpBB Pages - forum and Portal still worked fine.
Then, after a few hours I now get the following error when trying to access the Portal:
DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character
Any help would be greatly appreciated as I am NOT a PHP expert...
Thanks,
random_rodder
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal stopped loading, getting a DateTime::__construct(
Do you maybe have an extended error log for your server that displays the line and file this error occurs at?
-
Topic author - Active Member
- Posts: 9
- Joined: 9. March 2015 20:29
- phpBB.com User: random_rodder
Re: Portal stopped loading, getting a DateTime::__construct(
Hi Marc,
No, the server logs show no errors. The forum itself displays the date-time just fine with no issues. The portal page is the only page that fails with the DateTime() error.
Thanks,
Brian
No, the server logs show no errors. The forum itself displays the date-time just fine with no issues. The portal page is the only page that fails with the DateTime() error.
Thanks,
Brian
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal stopped loading, getting a DateTime::__construct(
Could you check if disabling the birthday module or user menu for the portal in the ACP solves the issue?
-
Topic author - Active Member
- Posts: 9
- Joined: 9. March 2015 20:29
- phpBB.com User: random_rodder
Re: Portal stopped loading, getting a DateTime::__construct(
Disabled both modules, purged the cache and the problem remains.
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal stopped loading, getting a DateTime::__construct(
Please try to disable modules step by step and check if the error disappears. Without the location of where the error is thrown it's kind of hard to figure this out any other way.
-
Topic author - Active Member
- Posts: 9
- Joined: 9. March 2015 20:29
- phpBB.com User: random_rodder
Re: Portal stopped loading, getting a DateTime::__construct(
Okay, I pared the portal down to the following configuration:
Left Column | Center Column | Right Column
New Members | Welcome Message | User Menu
When I did that, the portal came back up. When I tried to add the Latest News Module to the center column, I ended up with the same error.
Left Column | Center Column | Right Column
New Members | Welcome Message | User Menu
When I did that, the portal came back up. When I tried to add the Latest News Module to the center column, I ended up with the same error.
-
Topic author - Active Member
- Posts: 9
- Joined: 9. March 2015 20:29
- phpBB.com User: random_rodder
Re: Portal stopped loading, getting a DateTime::__construct(
Another update, in the Latest News settings, if you select 'No" to:
Sort in order to the newest posts:
When activated, the newest will be sorted in order to the newest posts. When deactivated, the news will be sorted in order to the newest topic.
The portal failed with that error in the title. If you select Yes, the portal works.
Sort in order to the newest posts:
When activated, the newest will be sorted in order to the newest posts. When deactivated, the news will be sorted in order to the newest topic.
The portal failed with that error in the title. If you select Yes, the portal works.
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal stopped loading, getting a DateTime::__construct(
I'm still unable to produce why this is happening exactly. This is probably connected to some corrupted database row. I'll try to narrow this down to a database column that should cause the mentioned issue.
Re: Portal stopped loading, getting a DateTime::__construct(
Hi Mark, I've just installed the portal and I have the same problem.
DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character
Have you found a solution for that?
DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character
Have you found a solution for that?
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal stopped loading, getting a DateTime::__construct(
Please take a look at the proposed fix in phpBB that should prevent something like this from happening in the future:
https://github.com/phpbb/phpbb/pull/4222
https://github.com/phpbb/phpbb/pull/4222
Re: Portal stopped loading, getting a DateTime::__construct(
That solved the problem, thank you!