Error while upgrading 3.2.1 to 3.2.2

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Fri Aug 17, 2018 6:11 pm

Hi,
I've upgraded our phpbb board from 3.2.1 to 3.2.2 today, and it's gone through smoothly, but now we're getting a strange error -

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

This error shows on the board index, and every post on the board,as you can see from this screenshot:
phpbb-error-3.2.2.jpg
Can anyone tell me how to fix this error please? Thank you very much in advance of any help you are able to give.

Rob

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1940
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by kinerity » Sat Aug 18, 2018 1:40 am

PHP 7.2 is causing problems with Twig. I believe this will be fixed in 3.2.3.
Kailey Truscott - Community Team

User avatar
3Di
Registered User
Posts: 12981
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by 3Di » Sat Aug 18, 2018 1:59 am

On a fresh 3.2.2 doesn't happens though, PHP 7.2.latests.
So you upgraded to 3.2.2 from 3.2.1 and upgraded also PHP?

Anyway, this change should fix your issue:
https://area51.phpbb.com/phpBB/viewtopi ... 03#p305161

In the meantime the phpBB's dependencies will be updated for 3.2.2, which would officially fix the 7.2's comp. That's a blocker to phpBB 3.2.3 atm.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Sat Aug 18, 2018 5:44 am

Where would I find this core.php the gentleman speaks of please?
I've found 3 core.php files in the site files, but I'm guessing that the right one is the one in forum/vendor/twig/twig/lib/Twig/Extension - would I be right?

So I've opened that file and found the code, but the code appears twice - from line 1258 and from line 1349 - which should I change, or should I change both?


Thanks again for your help

Rob

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Sat Aug 18, 2018 6:25 am

Oh dear, everything is going to hell rather quickly.

When I try to post on the board, I get this error:

Fatal error: Uncaught Error: Call to undefined method s9e\TextFormatter\Parser\Logger::getLogs() in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php:199 Stack trace: #0 /home/ehtnamuh/public_html/forum/includes/message_parser.php(1304): phpbb\textformatter\s9e\parser->get_errors() #1 /home/ehtnamuh/public_html/forum/posting.php(1045): parse_message->parse(true, 1, true, true, false, true, '1') #2 {main} thrown in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php on line 199

Can anyone help?

Thanks again,

Rob

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49625
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by stevemaury » Sat Aug 18, 2018 2:18 pm

Please fill out the Support Request Template and post it back here to enable us to assist you better.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

User avatar
3Di
Registered User
Posts: 12981
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by 3Di » Sun Aug 19, 2018 12:20 am

robbell wrote:
Sat Aug 18, 2018 6:25 am
Oh dear, everything is going to hell rather quickly.

When I try to post on the board, I get this error:

Fatal error: Uncaught Error: Call to undefined method s9e\TextFormatter\Parser\Logger::getLogs() in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php:199 Stack trace: #0 /home/ehtnamuh/public_html/forum/includes/message_parser.php(1304): phpbb\textformatter\s9e\parser->get_errors() #1 /home/ehtnamuh/public_html/forum/posting.php(1045): parse_message->parse(true, 1, true, true, false, true, '1') #2 {main} thrown in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php on line 199

Can anyone help?

Thanks again,

Rob
I see. Re-upload the whole vendor folder of 3.2.2, overwriting existing files.
Purge the cache after that. And report, please.

I believe you used the automatic upgrade package, isn't?

Also, the above fix it is already included in phpBB 3.2.2, I didn't check it yesterday but I said:
3Di wrote:
Sat Aug 18, 2018 1:59 am
On a fresh 3.2.2 doesn't happens though, PHP 7.2.latests.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Mon Aug 20, 2018 3:48 pm

Support Request Template
What version of phpBB are you using? phpBB 3.2.2
What is your board's URL? http://www.973-eht-namuh-973.com/forum
Who do you host your board with? UK2.net
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.2.1
What styles do you currently have installed? prosilver, ne-blackgreen
What language(s) is your board currently using? English
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? UK2 upgraded php to 7.2
I upgraded the board from 3.2.1 to 3.2.2 using the automatic package
Please describe your problem. 2 problems:
1. Showing on every post -
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

2. When I try to post, I get this error -
Fatal error: Uncaught Error: Call to undefined method s9e\TextFormatter\Parser\Logger::getLogs() in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php:199 Stack trace: #0 /home/ehtnamuh/public_html/forum/includes/message_parser.php(1304): phpbb\textformatter\s9e\parser->get_errors() #1 /home/ehtnamuh/public_html/forum/posting.php(1045): parse_message->parse(true, 1, true, true, false, true, '1') #2 {main} thrown in /home/ehtnamuh/public_html/forum/phpbb/textformatter/s9e/parser.php on line 199
Generated by SRT Generator

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Mon Aug 20, 2018 4:07 pm

3Di wrote:
Sun Aug 19, 2018 12:20 am

I see. Re-upload the whole vendor folder of 3.2.2, overwriting existing files.
Purge the cache after that. And report, please.

I believe you used the automatic upgrade package, isn't?

Also, the above fix it is already included in phpBB 3.2.2, I didn't check it yesterday but I said:
3Di wrote:
Sat Aug 18, 2018 1:59 am
On a fresh 3.2.2 doesn't happens though, PHP 7.2.latests.

That appears to have fixed the issue with twig, thank you very much... I still get this error when I try to post -

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_messenger.php on line 506: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1836: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)

However, the post has gone up

User avatar
3Di
Registered User
Posts: 12981
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by 3Di » Mon Aug 20, 2018 8:01 pm

robbell wrote: I upgraded the board from 3.2.1 to 3.2.2 using the automatic package
That method is not the best, now to solve you should replace the whole lot of phpBB files with those from a fresh FULL download package.
https://www.phpbb.com/files/release/phpBB-3.2.2.zip

There are also fixes to apply onto the above 3.2.2 package, here: viewtopic.php?f=556&t=2453611

And this one: https://github.com/phpbb/phpbb/commit/1 ... c2b8808064

After that, better to switch to PHP 7.1.xx and wait for phpBB 3.2.3 which seems to be close to be released. No ETA though.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Mon Aug 27, 2018 9:28 pm

I updated the files with those from the full download package, but I'm still getting the following errors when I try to post -

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_messenger.php on line 506: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1836: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)

Can anyone help please?
Would this be the issue that's fixed here? - https://github.com/phpbb/phpbb/commit/1 ... c2b8808064

User avatar
3Di
Registered User
Posts: 12981
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by 3Di » Mon Aug 27, 2018 9:33 pm

robbell wrote:
Mon Aug 27, 2018 9:28 pm
Can anyone help please?
Would this be the issue that's fixed here? - https://github.com/phpbb/phpbb/commit/1 ... c2b8808064
Yes, did you do that?
3Di wrote:
Mon Aug 20, 2018 8:01 pm
There are also fixes to apply onto the above 3.2.2 package, here: viewtopic.php?f=556&t=2453611

And this one: https://github.com/phpbb/phpbb/commit/1 ... c2b8808064
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

robbell
Registered User
Posts: 9
Joined: Sun Feb 27, 2011 12:33 am

Re: Error while upgrading 3.2.1 to 3.2.2

Post by robbell » Wed Aug 29, 2018 11:50 am

No I haven’t done it yet, I wanted to check it’s the right thing to do first...I shall upload the replacement file from github today

Another problem has come up though - we’ve lost a lot of images, as per this page:
Http://www.973-eht-namuh-973.com/forum/ ... =1&t=13112

They seem to have been corrupted somehow. That’s happened when I’ve uploaded the full download of the update. Do you think there’s any way of getting them back?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49625
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by stevemaury » Wed Aug 29, 2018 2:13 pm

Those images aren't attachments and they all have the same name (image.jpeg). Where do they exist?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51391
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Error while upgrading 3.2.1 to 3.2.2

Post by Brf » Wed Aug 29, 2018 2:19 pm

image.jpeg is only the title used by an inline attachment.
Did you upload your attachments files in binary mode? Clicking on the missing thumbnail displays a damaged image.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: EA117, Eldest, Nocol333, testingground, UKDen and 58 guests