PHP 8.1 support

Permalink Browser Info Environment
Hi there,

I'm running Concrete 9.1.1. on PHP@8.1. Installing the add-on works fine but I get an error on this page: /dashboard/blocks/block_designer.

The error:
Non-static method RamonLeenders\BlockDesigner\BlockDesignerProcessor::getPackageFolder() cannot be called statically

Does the add-on work on PHP@8.1?

Type: Discussion
Status: Resolved
enormmarcel
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Did you try it on PHP 8.0? Seems 8.1 is a bit stricter and therefore will be having issues here and there. Not sure if the latest ConcreteCMS version in general works EVERYWHERE with 8.1... since it didn't a few versions ago. Would have to be updating my Add-Ons with version 8.1 but since the system requirements also say 8.0 I would best be waiting for that. Can you confirm it works on PHP 8.0 for you?

Kind regards
Ramon
enormmarcel replied on at Permalink Reply
enormmarcel
Switching to PHP@8.0 results in:

Undefined array key "block_handle"
…/public/packages/block_designer/single_pages/dashboard/blocks/block_designer.php 52
ramonleenders replied on at Permalink Reply
ramonleenders
OK, then there is work to do. Will be adding PHP 8.0 support then in upcoming week - as it's clear it's not working at this moment. Sorry for the inconvenience and will let you know as soon as this version is online.

Kind regards
Ramon
enormmarcel replied on at Permalink Reply
enormmarcel
Thank you for the quick response.
ramonleenders replied on at Permalink Reply
ramonleenders
Just updated Block Designer to version 4.1.0. Please check if it all works now (on version 8.0). If you have any issues, let me know where exactly. Perhaps you can check 8.1 after, but for now I tested it all on version 8.0 (and 7.4 of course, to be backwards compatible).

If 8.1 still doesn't work, I will be looking at that later. Step by step :D

Kind regards
Ramon
NUL76 replied on at Permalink Reply
NUL76
All seems to work on 8.0. I will check on 8.1 later. Is the pro version also ready? It looks like I'm missing the fields.
ramonleenders replied on at Permalink Reply
ramonleenders
Haven't checked the Pro version yet, there is so little time for everything... For now, my suggestion will be stay on PHP 7.x - I would need to look at the Pro version at a later point then if the fields don't show up!

Kind regards
Ramon
ramonleenders replied on at Permalink Reply
ramonleenders
Could you update to the latest versions available (4.1.0 PRO and 4.1.1 for Block Designer itself) and let me know if everything works okay for you now on PHP 8.0? After that, can you also try it out for 8.1 for me and let me know (version 8.1 untested, but let's see what it does)?

Kind regards
Ramon
NUL76 replied on at Permalink Reply
NUL76
After the update the Pro fields are still not showing up. I'm using Multiple Site Hosting. Could this be the issue?
ramonleenders replied on at Permalink Reply
ramonleenders
That very well could be the issue indeed. Can you try on a local install maybe without multi site?

Haven't setup this Add-On as multi site, as this Add-On is actually meant as per site and not for multiple sites (pre version 9.0).

Kind regards
Ramon
NUL76 replied on at Permalink Reply
NUL76
It works without multisite. Will this be an option in the future?
ramonleenders replied on at Permalink Reply
ramonleenders
Not having this on my TODO list as this will cost me money in 2 ways - people use it on multiple sites by only buying it once + I have to spend time (= money) on getting it to work on the multi-site setup. That will bite me in the ass twice.. so I'm gonna have to pass on this feature. Hope you understand.

Kind regards
Ramon
NUL76 replied on at Permalink Reply
NUL76
I sort of do get it. But a multisite is still one environment. But yes.
enormmarcel replied on at Permalink Reply
enormmarcel
Sorry I was logged into the wrong account.

concrete5 Environment Information

# Concrete Version
Core Version - 9.1.1
Version Installed - 9.1.1
Database Version - 20220516191423

# Database Information
Version: 5.7.23
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Block Designer (4.0.1), Block Designer Pro (4.0.1), Enorm Blackbox (1.0.8)

# Concrete Overrides
blocks/card_slider/add.php, blocks/card_slider/icon.png, blocks/card_slider/controller.php, blocks/card_slider/css_form/repeatable-ft.form.css, blocks/card_slider/css_form, blocks/card_slider/config.json, blocks/card_slider/composer.php, blocks/card_slider/db.xml, blocks/card_slider/js_form/handlebars-helpers.js, blocks/card_slider/js_form/handlebars-v4.0.4.js, blocks/card_slider/js_form, blocks/card_slider/auto.js, blocks/card_slider/view.php, blocks/card_slider/edit.php, blocks/card_slider/form.php, blocks/card_slider, blocks/buttons/add.php, blocks/buttons/icon.png, blocks/buttons/controller.php, blocks/buttons/css_form/repeatable-ft.form.css, blocks/buttons/css_form, blocks/buttons/config.json, blocks/buttons/composer.php, blocks/buttons/db.xml, blocks/buttons/js_form/handlebars-helpers.js, blocks/buttons/js_form/handlebars-v4.0.4.js, blocks/buttons/js_form, blocks/buttons/auto.js, blocks/buttons/view.php, blocks/buttons/edit.php, blocks/buttons/form.php, blocks/buttons, blocks/columns_two/add.php, blocks/columns_two/icon.png, blocks/columns_two/controller.php, blocks/columns_two/config.json, blocks/columns_two/composer.php, blocks/columns_two/db.xml, blocks/columns_two/auto.js, blocks/columns_two/view.php, blocks/columns_two/edit.php, blocks/columns_two/form.php, blocks/columns_two, blocks/column/add.php, blocks/column/icon.png, blocks/column/controller.php, blocks/column/config.json, blocks/column/composer.php, blocks/column/db.xml, blocks/column/auto.js, blocks/column/view.php, blocks/column/edit.php, blocks/column/form.php, blocks/column, blocks/hero/add.php, blocks/hero/icon.png, blocks/hero/controller.php, blocks/hero/css_form/repeatable-ft.form.css, blocks/hero/css_form, blocks/hero/config.json, blocks/hero/composer.php, blocks/hero/db.xml, blocks/hero/js_form/handlebars-helpers.js, blocks/hero/js_form/handlebars-v4.0.4.js, blocks/hero/js_form, blocks/hero/auto.js, blocks/hero/view.php, blocks/hero/edit.php, blocks/hero/form.php, blocks/hero, blocks/columns_three/add.php, blocks/columns_three/icon.png, blocks/columns_three/controller.php, blocks/columns_three/config.json, blocks/columns_three/composer.php, blocks/columns_three/db.xml, blocks/columns_three/auto.js, blocks/columns_three/view.php, blocks/columns_three/edit.php, blocks/columns_three/form.php, blocks/columns_three, elements/blocks/page_list_plus/form/filters.php, elements/blocks/page_list_plus/form/searchbox.php, elements/blocks/page_list_plus/form/sorting.php, elements/blocks/page_list_plus/form/js.php, elements/blocks/page_list_plus/form/submit.php, elements/blocks/page_list_plus/form/loading.php, elements/blocks/page_list_plus/form, elements/blocks/page_list_plus/title.php, elements/blocks/page_list_plus/pagination.php, elements/blocks/page_list_plus/search/filters/single_option.php, elements/blocks/page_list_plus/search/filters/multiple_option.php, elements/blocks/page_list_plus/search/filters, elements/blocks/page_list_plus/search, elements/blocks/page_list_plus/form.php, elements/blocks/page_list_plus, elements/blocks, js/formidable.js, src/Concrete/Flag/CustomInterfaceFlagHelper.php, src/Concrete/Flag, src/Concrete/PageListPlus/PageListPlus.php, src/Concrete/PageListPlus/Generator.php, src/Concrete/PageListPlus, src/Concrete

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

# Server Software
nginx/1.23.0

# Server API
fpm-fcgi

# PHP Version
8.1.7

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, 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 - 30
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 512M
upload_max_filesize - 512M
zend.exception_string_param_max_len - 15
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
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/103.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 have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.