NO BUG: Migrating Site - Honeypot fields

bricks 2.0.2

Hi, we built a site using bricks and moved it across to another account within our host.
Upon doing so we had a few issues with Bricks causing critical errors.

The error was noted as this line in the form.php file, saying the T Arrow was not expected:
fn( $key, $value ) => “$key: $value”,

To resolve I deleted the entire section for * Generate CSS styles for honeypot fields.
Not sure if this is a bug or an error down to something else.

Hmm, do you know how to replicate this one?

Also, can you post the whole log file (or the relevant parts) and can you let me know if the specs of the new server is different than the old (dev) one - especially PHP version.

Thank you,
Matej

After further investigation, I think it was the php version. The php version for throwing up a couple of other errors.

Ok, thanks for the update. I’m glad that it’s working now.

Can you please let me know what PHP version you had, that produced the error?

Thank you,
Matej

The site was on php 8.3 and then moved to an account which was running 7.3.

Ah, yeah, this explains it.

Arrow functions were introduced in PHP 7.4, which is also the minimum required PHP version that Bricks supports; however, it’s recommended that you use a higher PHP version, especially because WP minimum requirements are higher.

Thank you for the reply. :slight_smile:
Matej

Yep - I get that - thanks for confirming. I didn’t realise that the account where the site was moved to was running 7.3 until I checked.

Thanks again for looking into this and solving my query - much appreciated.

1 Like