Portal stopped loading, getting a DateTime::__construct() er

Current Version: 2.1.0
Released: 2015-10-26
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.
Locked

Topic author
random_rodder
Active Member
Posts: 9
Joined: 9. March 2015 20:29
phpBB.com User: random_rodder

Portal stopped loading, getting a DateTime::__construct() er

Post by random_rodder »

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
User avatar

Marc
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(

Post by Marc »

Do you maybe have an extended error log for your server that displays the line and file this error occurs at?

Topic author
random_rodder
Active Member
Posts: 9
Joined: 9. March 2015 20:29
phpBB.com User: random_rodder

Re: Portal stopped loading, getting a DateTime::__construct(

Post by random_rodder »

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
User avatar

Marc
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(

Post by Marc »

Could you check if disabling the birthday module or user menu for the portal in the ACP solves the issue?

Topic author
random_rodder
Active Member
Posts: 9
Joined: 9. March 2015 20:29
phpBB.com User: random_rodder

Re: Portal stopped loading, getting a DateTime::__construct(

Post by random_rodder »

Disabled both modules, purged the cache and the problem remains.
User avatar

Marc
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(

Post by Marc »

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
random_rodder
Active Member
Posts: 9
Joined: 9. March 2015 20:29
phpBB.com User: random_rodder

Re: Portal stopped loading, getting a DateTime::__construct(

Post by random_rodder »

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.

Topic author
random_rodder
Active Member
Posts: 9
Joined: 9. March 2015 20:29
phpBB.com User: random_rodder

Re: Portal stopped loading, getting a DateTime::__construct(

Post by random_rodder »

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.
User avatar

Marc
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(

Post by Marc »

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.

buio
Active Member
Posts: 2
Joined: 3. March 2016 11:34
phpBB.com User: buio

Re: Portal stopped loading, getting a DateTime::__construct(

Post by buio »

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?
User avatar

Marc
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(

Post by Marc »

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

buio
Active Member
Posts: 2
Joined: 3. March 2016 11:34
phpBB.com User: buio

Re: Portal stopped loading, getting a DateTime::__construct(

Post by buio »

That solved the problem, thank you!
Locked

Return to “Board3 Portal 2.1.x - English Support”