Issue upgrading PHP to 8.1

Permalink Browser Info Environment
Hi There,
When attempting to upgrade our concrete v 9.1.3 site from php 7.4 to 8.1 we get this error:
Exception Occurred: C:\xampp\htdocs\packages\dex_superfish\blocks\dex_superfish\nav_item.php:70 Undefined property: Concrete\Package\DexSuperfish\Block\DexSuperfish\NavItem::$cPointerExternalLink (2)

We have had no problems with Dex Superfish v2.1.0 under various Concrete v8 and v9 (to 9.1.3) with php 7.3 and 7.4.

Do you have a suggested fix for running under php 8.1 ?

Thanks & regards,

Jeff.

Type: Pre-Sale
Status: In Progress
jphoward
View Replies:
dexcode replied on at Permalink Reply
dexcode
Hi Jeff,

I will have to have a look into things to see what is going on. Unfortunately I will be busy for a couple of days so things will have to wait till then but I will get back to you as soon as possible.

Cheers,
Dex
jphoward replied on at Permalink Reply
jphoward
Thanks Dex for your reply,

I managed to get the superfish menu to work under PHP 8.1 by making a couple of simple changes to nav_item.php:

Both occurrences of if ( $this->cPointerExternalLink != '' ) {
(lines 70 & 88)

replaced with:
if ( !empty($this->cPointerExternalLink) ) {

I have made these changes in a test environment - so far no other problems found with the menu add on.

Regards,

Jeff.

concrete5 Environment Information

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

# Hostname
JEFF-SARA7

# Environment
production

# Database Information
Version: 10.4.25-MariaDB
SQL Mode: NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Cloneamental (0.9.3), Cycle2 Slide Show (1.1), Dex Superfish (2.1.0), Formidable (Full Version) (2.1.5), Fundamental (4.0.7), Grand Gallery (2.1.1), HTML+PHP Code Block (1.0.2), HTML5 Audio Player Basic (2.0.7), Login/Logout Link (1.0), Login Log (1.0.1), Mega Menu (1.6.4), Simple Gallery (2.1.0), Traffic & Statistics (1.2.2), Video Pro (1.0.0), Vimeo Video (1.0.2), Webli Menu Maker (1.4), Whale Elastic Slider (1.1.4), Whale OWL Carousel (2.5.8)

# Concrete Overrides
blocks/external_form/form/cmw_social_program_display.php, blocks/external_form/form/cmw_social_program_display_orig.php, blocks/external_form/form/cmw_social_program_last_updated.php, blocks/external_form/form/CMW_Trip_Intentions.php, blocks/external_form/form/cmw_walks_program_last_updated.php, blocks/external_form/form, blocks/external_form, single_pages/auto_trip_return_details.php, single_pages/auto_trip_return_leaders_form.php, single_pages/cmw_back.php, single_pages/CMW_Post_Trip_Process.php, single_pages/CMW_Search_Program.php, single_pages/CMW_Trip_Intentions.php, single_pages/CMW_Trip_Maintenance.php, single_pages/cmw_validate_leaders_form.php, single_pages/fileupload.php, single_pages/fmconnect.php, single_pages/mailersend_leaders_form_email.php, single_pages/mailersend_send_email.php, single_pages/return_details.php, single_pages/return_trip_search.php, single_pages/sendst.php, single_pages/submitwalk.php

# Concrete Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.10

# Server API
apache2handler

# PHP Version
8.1.10

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, readline, Reflection, session, SimpleXML, SPL, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 120
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 40M
upload_max_filesize - 40M
zend.exception_string_param_max_len - 15
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.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.