Purchased, installed, not working

Permalink Browser Info Environment
Getting this Error:
Non-static method Concrete\Package\BlockDesigner\Controller\SinglePage\Dashboard\Blocks\BlockDesignerProcessor::setDirectorySeparator() cannot be called statically

Type: Ticket
Status: In Progress
abreitenfelder
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Can you let me know what version of Block Designer you are on?
Also check for the latest version perhaps, I am assuming something went wrong with getting the latest version of this Add-On!

Kind regards
Ramon
abreitenfelder replied on at Permalink Reply
abreitenfelder
SORRY!!!
it seems, i was very tired!
i just downloaded the files on the very top of the list...
shame on me!!!!

BUT, is it posible to upgrade to PRO, or just buy it too?

greets, andy
abreitenfelder replied on at Permalink Reply
abreitenfelder
Now i use the newest version and PHP 8.2.1.
i get this error when i just want to use static HTML/Picture/Static HTML

/* @var $fieldTypeClass \RamonLeenders\BlockDesigner\FieldType\FieldType */
$fieldTypeClass = new $fieldType['namespace']($fieldType['directory'], $fieldType['pkgHandle'], $fieldType['pkgDirectory'], $fieldType['className']);
$fieldRepeating = isset($value['repeatable']) && trim($value['repeatable']) != '' && $fieldTypeClass->getCanRepeat() === true && isset($postData['fields'][$value['repeatable']]) && array_key_exists('repeatable', $fieldTypes) ? true : false;
if (!$fieldRepeating) {
$required = isset($value['required']) && is_string($value['required']) && $value['required'] == '1' ? true : false;
$fieldData = array_merge($value, [
'row_id' => $key,
'required' => $required,
'prefix' => self::getFieldPrefix($value),
'suffix' => self::getFieldSuffix($value),
'label' => $value['label'],
'ft_count' => self::getFieldTypeCount($value['type']),
'ft_count_repeatable' => self::getFieldTypeCount($value['type'], true),
'btDirectory' => $blockTypeFolder . DIRECTORY_SEPARATOR,
'btTable' => $btTable,
'block_handle' => $blockHandle,
]
);
if (method_exists($fieldTypeClass, 'on_start')) {
$fieldTypeClass->on_start($fieldData);
}
if ($fieldTypeClass->getRequiredSlug() === true) {
if (isset($value['slug']) && trim($value['slug']) != '') {
// Being sure we have a non-existing slug for the field
$slug_num = 1;
$slug = $value['slug'];
while (in_array($slug, $fieldSlugs) || in_array(strtolower($slug), self::$fieldSlugsBlacklist)) {
$slug = $value['slug'] . '_' . $slug_num;
$slug_num++;
}
$fieldSlugs[] = $slug;
Arguments
"Undefined array key "label""
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

You're best off not using the very very latest PHP version, since that is not confirmed working yet. You could try PHP 8.1 for example.

I have yet to update to PHP 8.2 myself and see what all there is to be fixed. But since this got released in December 2022, I have not been able to do so yet.

Kind regards
Ramon
ramonleenders replied on at Permalink Reply
ramonleenders
Hey me again,

Since I needed to switch PHP version, I went ahead and check the issue. I've updated the Add-On and version 4.1.2 should fix the issue you were having. Try it out by updating the Add-On!

In case you find another issue, do let me know (in a new ticket). Not many people are using PHP 8.2 yet, so you could be one of the few.

I've got many using PHP 8.1 - so in case you need to get going quickly, I'd advice to switch to that. But for sure keep mentioning all the issues you have, since the earlier I know - the earlier a patch can be applied for the issue(s) in question!

If this bug is fixed, also let me know. Then I can close this ticket and in case of future issues, make a new ticket for that.

Have a good weekend :)

Kind regards
Ramon
abreitenfelder replied on at Permalink Reply
abreitenfelder
Thank U!

the normal Block Designer is working now with PHP 8.2.1

tomorrow i will install the Pro extension, hope that workes good too.

greets, andy

concrete5 Environment Information

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

# Hostname
s1.weirer-it.at

# Environment
production

# Database Information
Version: 10.3.36-MariaDB-0+deb10u2-log
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Block Designer (0.9.5)

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

# Server Software
Apache/2.4.38 (Debian)

# Server API
cgi-fcgi

# PHP Version
8.2.1

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, random, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, 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 - 256M
post_max_size - 128M
upload_max_filesize - 128M
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
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57

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.