Hi everybody,
The contact form integrated into RW7 does not work with the new PHP 8.0 version.
When you send a message, you get this : Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc()…
After internet research, get_magic_quotes_gpc() has been removed in PHP 8 (deprecated since 7.4). Is there a solution ?
Just for information, can someone tell me if the contact form built into RW8 works with PHP 8.0.
Thank you for your answers
As I doesn’t seem to be working on PHP v8 my guess would be it is not designed specifically for that version. Have you tried it on PHP v7.4? If not give it a shot there.
Hi Elixir and thank you,
Yes, it’s working with PHP v7.4 until december 2022 !
But I want to know if after this date, I would have to switch to RW8 or RW9 !
and especially if with RW8, the contact form built into RW8 works with PHP 8.0
Sorry for my english (I am french)
Thank you again
I would stay away from PHP 8 for a little bit. There is a lot of breaking changes. I have not had the time to test any of my stacks with it yet either.
Mr Joe Workman, it seems to me that you are not affected by this topic because it is not about stacks. I’m talking about the contact form page provided by the RW7 app and not one of your stacks.
On the other hand, I am currently speaking in another topic about the recurring issue of the skin controls settings in your HTML5 video and audio stacks.
Thank you beforehand
Thank you @dan for responding
It is indeed quite easy to test with a RapidWeaver 8 demo.
But I still allow myself to address myself to the RapidWeaver community which uses RW8, and which went admittedly prematurely from PHP 7.4 to PHP 8.0, to ask them if the contact form page works… (when sending a message)
No it does not work and will not work due to the get_magic_quotes_gpc() which is no longer available in PHP 8.0. The fix is not to use PHP 8.0 until more stacks, plugins and RW software us updated to be PHP 8.0 compatible. As PHP 7.4 will be around for years to come it’s not too much of a worry yet.
My web host will no longer accept PHP 7.4 in December 2022.
Sure, no worries before time.
Hoping that RW8 will be updated, or you will have to buy RW9, or even buy a “contact form” stack …
Or go for an alternative solution, just use a suitably obfuscated mailto: link that opens up your visitors email program so they can compose a message, no php to worry about.