phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

Hi there! After the update, I periodically get this error in the logs:
GIK-Team wrote:
Thu Jan 09, 2020 8:46 pm
I figured out where this error occurs. When a user tries to recover his password and does not enter it in the "confirm password" field correctly (so that passwords do not match) on the password recovery page, then an error occurs. I have emulated such situation and got this error.

Code: Select all

[08-Jan-2020 17:25:34 Europe/Kiev] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to phpbb\template\context::assign_block_vars() must be of the type array, string given, called in /home/layzee/public_html/forum/phpbb/template/context.php on line 252 and defined in /home/layzee/public_html/forum/phpbb/template/context.php:190
Stack trace:
#0 /home/layzee/public_html/forum/phpbb/template/context.php(252): phpbb\template\context->assign_block_vars('PASSWORD_RESET_...', 'The passwords y...')
#1 /home/layzee/public_html/forum/phpbb/template/base.php(143): phpbb\template\context->assign_block_vars_array('PASSWORD_RESET_...', Array)
#2 /home/layzee/public_html/forum/phpbb/ucp/controller/reset_password.php(429): phpbb\template\base->assign_block_vars_array('PASSWORD_RESET_...', Array)
#3 /home/layzee/public_html/forum/vendor/symfony/http-kernel/HttpKernel.php(151): phpbb\ucp\controller\reset_password->reset()
#4 /home/layzee/public_html/forum/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object( in /home/layzee/public_html/forum/phpbb/template/context.php on line 190
PHP 7.3.13
Style: Lucid Lime (updated)
Language packs: en, it, es, uk, ru, zh_cmn_hans
Last edited by GIK-Team on Thu Jan 09, 2020 8:48 pm, edited 4 times in total.

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26132
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by Paul »

This sounds like a phpBB bug. Can you please report it to the bugtracker at https://tracker.phpbb.com? You should be able to login with your phpBB account.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

Paul wrote:
Wed Jan 08, 2020 5:39 pm
This sounds like a phpBB bug. Can you please report it to the bugtracker at https://tracker.phpbb.com? You should be able to login with your phpBB account.
I hope I did it right: https://tracker.phpbb.com/browse/PHPBB3-16308

webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by webants »

bbb

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17223
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by DavidIQ »

It's more likely that the style not being updated to 3.3 is causing this. As mentioned in the ticket try upgrading the style using this guide and that should resolve this. If it doesn't feel free to add to the ticket.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

DavidIQ wrote:
Wed Jan 08, 2020 7:14 pm
It's more likely that the style not being updated to 3.3 is causing this. As mentioned in the ticket try upgrading the style using this guide and that should resolve this. If it doesn't feel free to add to the ticket.
Lucid Lime contains only two templates:

Code: Select all

overall_footer.html
overall_header.html
Just in case, I have separately updated prosilver from the full archive, now I see if the error occurs again.

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

Problem gone after updating prosilver template from latest ZIP.
Last edited by GIK-Team on Thu Jan 09, 2020 7:42 pm, edited 1 time in total.

User avatar
Lumpy Burgertushie
Registered User
Posts: 67741
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [SOLVED] phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by Lumpy Burgertushie »

the upgrade should have removed all old prosilver files and replaced them with the new ones.

how did you upgrade without doing that?


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: [SOLVED] phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

Lumpy Burgertushie wrote:
Thu Jan 09, 2020 4:52 pm
the upgrade should have removed all old prosilver files and replaced them with the new ones.

how did you upgrade without doing that?

robert
I used AUTOMATIC UPDATE PACKAGE, i think that it did not work correctly and did not replace the template. I myself downloaded the full archive and completely replaced the theme, after which everything worked correctly till this moment. But now i figured out that this error still occurs :( Maybe the problem is with language packs. I will wait until they will become compatible with phpBB 3.3

User avatar
Mannix_
Registered User
Posts: 780
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by Mannix_ »

GIK-Team wrote:
Wed Jan 08, 2020 7:39 pm
DavidIQ wrote:
Wed Jan 08, 2020 7:14 pm
It's more likely that the style not being updated to 3.3 is causing this. As mentioned in the ticket try upgrading the style using this guide and that should resolve this. If it doesn't feel free to add to the ticket.
Lucid Lime contains only two templates:

Code: Select all

overall_footer.html
overall_header.html
Just in case, I have separately updated prosilver from the full archive, now I see if the error occurs again.
Click the link in my signature to get Lucid Lime for 3.3
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Need help with styling or want me to port a style to 3.2.x etc. contact me here or here.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

Mannix_ wrote:
Thu Jan 09, 2020 8:17 pm
Click the link in my signature to get Lucid Lime for 3.3
Thank you!

User avatar
GIK-Team
Registered User
Posts: 9
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by GIK-Team »

I figured out where this error occurs. When a user tries to recover his password and does not enter it in the "confirm password" field correctly (so that passwords do not match) on the password recovery page, then an error occurs (indicated in the first message). I have emulated such situation and got this error.

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

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by 3Di »

GIK-Team wrote:
Thu Jan 09, 2020 8:46 pm
I figured out where this error occurs. When a user tries to recover his password and does not enter it in the "confirm password" field correctly (so that passwords do not match) on the password recovery page, then an error occurs (indicated in the first message). I have emulated such situation and got this error.
I can confirm this.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17223
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by DavidIQ »

Ticket re-opened then. Thanks.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

tehohn
Registered User
Posts: 7
Joined: Fri Jan 25, 2013 4:23 pm

Re: phpbb 3.3.0 PHP Fatal error (template\context::assign_block_vars())

Post by tehohn »

We are also having this issue.

Password reset from forgot password link results in a fatal PHP error, blank screen. When trying to enter a new password.

Have updated lucid lime to latest version 1.2 that is phpBB 3.3 compatible, no change.
re-set guest style to use prosilver 3.3 style instead and same thing still happens.
Style seems to have no effect on this issue at all.
It started happening after upgrading the board from 2.2.8 to 3.3.0

We are also using 'Password Strength' extension, but disabling it makes no difference either. The error is still occurring, regardless of it is enabled or disabled.

Setting password complexity to: 'no requirements' seems to make the error occur less frequently.
However it always occurs if the required password length (as a board security setting) is not met.
It also always occurs if the two password fields do not match, ie if they are filled incorrectly.

Post Reply

Return to “[3.3.x] Support Forum”