form submission stopped working

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Scam Warning
Post Reply
Nick225
Registered User
Posts: 131
Joined: Sat Nov 24, 2018 7:48 pm

form submission stopped working

Post by Nick225 »

Code: Select all

$post_vars_array = $request->variable_names(\phpbb\request\request_interface::POST);
echo '<hr>'; print_r($post_vars_array); echo '<hr>';
I have a form that was working fine until today when I am now getting an empty array upon submission. I am using php v 7.2
Is the function obsolete or something?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21869
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: form submission stopped working

Post by Mick »

Have you changed PHP version, have you changed anything? If it was working then stopped something has changed, if it’s not you then your host did something.
"The more connected we get the more alone we become" - Kyle Broflovski

Nick225
Registered User
Posts: 131
Joined: Sat Nov 24, 2018 7:48 pm

Re: form submission stopped working

Post by Nick225 »

Mick wrote:
Tue Jan 14, 2020 7:01 pm
Have you changed PHP version, have you changed anything? If it was working then stopped something has changed, if it’s not you then your host did something.
That's what I suspect. Godaddy asked to changed php to version 7.2 .. So I did a couple of months ago .. I did not test this page at the time.. But other pages that use the function are fine.
and I think many here are using php7.2. So I was not worried about breaking forms.
Last edited by Nick225 on Tue Jan 14, 2020 7:08 pm, edited 2 times in total.

User avatar
</Solidjeuh>
Registered User
Posts: 1752
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: form submission stopped working

Post by </Solidjeuh> »

I don't think that code is from standard phpBB ... or is it? So that's why "others" don"t see the problem :D
Forum for NL Extension translations ---> https://www.supportforum.be
----------------------------------------------------------------------------

Nick225
Registered User
Posts: 131
Joined: Sat Nov 24, 2018 7:48 pm

Re: form submission stopped working

Post by Nick225 »

</Solidjeuh> wrote:
Tue Jan 14, 2020 7:07 pm
I don't think that code is from standard phpBB ... or is it? So that's why "others" don"t see the problem :D
that code is the phpbb3 way of getting info from forms. It's been working for the past 2 years since I upgraded from phpbb2.

User avatar
warmweer
Registered User
Posts: 3501
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: form submission stopped working

Post by warmweer »

Nick225 wrote:
Tue Jan 14, 2020 7:09 pm
That code is the phpbb3 way of getting info from forms. It's been working for the past 2 years since I upgraded from phpbb2.
Which phpBB version are you using now?
Brexit and Trump are old news and currently I have no inspiration for a new signature.
Ow, wait: 3.3 has been released.

Nick225
Registered User
Posts: 131
Joined: Sat Nov 24, 2018 7:48 pm

Re: form submission stopped working

Post by Nick225 »

warmweer wrote:
Tue Jan 14, 2020 8:00 pm
Nick225 wrote:
Tue Jan 14, 2020 7:09 pm
That code is the phpbb3 way of getting info from forms. It's been working for the past 2 years since I upgraded from phpbb2.
Which phpBB version are you using now?
phpbb3.2.4 .. All's been working fine the last 2 years. Yes I know 3.3 is out and I will upgrade at some point. I have so many extensions and mod so I always take my time to the upgrade. have to do it in the off-season when my sport fans are not that busy on the site.

Post Reply

Return to “phpBB Discussion”