Undefined variable $time

Permalink Browser Info Environment
We're getting an error on form submission on orbitaltravel.co.uk.

Seems to be a PHP8 thing.

Could you take a look?

1 Attachment

Type: Ticket
Status: Resolved
katalysis
View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Sorry for that… It's not a PHP 8 error, it's much worse than that…. It's a copy/pasted piece of code not properly modified. :(

I just uploaded a fix, please update and it should be all good now.
mnakalay replied on at Permalink Reply
mnakalay
Oh, by the way, that error was only going to happen if you used the time to submission field and somebody tempered with the token.

So, either you were running tests or somebody was trying not so cool things with your form.
katalysis replied on at Permalink Reply
katalysis
All working again now - thank you Nour.

BTW we were getting the error every time we or the client tested so I don't think there was any tampering.
mnakalay replied on at Permalink Reply
mnakalay
That's just very weird... that piece of code is meant to run only if the token was tempered with. Would you mind keeping an eye open for anything weird ? I know you already do so thank you :)

concrete5 Environment Information

# Concrete Version
Core Version - 9.1.3
Version Installed - 9.1.3
Database Version - 20220908074900

# Hostname
nh4.katalysis.net

# Environment
production

# Database Information
Version: 10.2.39-MariaDB
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Ajax Forms - Express Edition Light (2.1.1), Anti-Spammer Master (2.0.8), Fileset Attribute (1.1), Hidden Data Attributes for Express (3.0.1), Katalysis Base Bootstrap (0.0.6.0.1), Katalysis Orbital Travel Theme Bootstrap (0.0.6.1), Multiple Page Selector Attribute (1.0.1)

# Concrete Overrides
blocks/external_form/form/controller/topic_plus_form.php, blocks/external_form/form/controller, blocks/external_form/form/topic_plus_form.php, blocks/external_form/form, blocks/external_form, blocks/katalysis_lead_in/auto.js, blocks/katalysis_lead_in/icon.png, blocks/katalysis_lead_in/add.php, blocks/katalysis_lead_in/templates/this_offer.php, blocks/katalysis_lead_in/templates, blocks/katalysis_lead_in/db.xml, blocks/katalysis_lead_in/controller.php, blocks/katalysis_lead_in/README.md, blocks/katalysis_lead_in/view.php, blocks/katalysis_lead_in/edit.php, blocks/katalysis_lead_in/form.php, blocks/katalysis_lead_in, blocks/form/controller.php, blocks/form, blocks/core_area_layout/templates/example_layout_template.php, blocks/core_area_layout/templates, blocks/core_area_layout/view.php, blocks/core_area_layout/form.php, blocks/core_area_layout, elements/block_area_footer.php

# Concrete Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
8.0.28

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, redis, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
max_multipart_body_parts - -1
memory_limit - 512M
post_max_size - 128M
upload_max_filesize - 128M
zend.exception_string_param_max_len - 0
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
redis.pconnect.connection_limit - 0
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.jit_bisect_limit - 0
opcache.jit_max_exit_counters - 8192
opcache.jit_max_loop_unrolls - 8
opcache.jit_max_polymorphic_calls - 2
opcache.jit_max_recursive_calls - 2
opcache.jit_max_recursive_returns - 2
opcache.jit_max_root_traces - 1024
opcache.jit_max_side_traces - 128
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.