Hi Dave,
I'm testing the beta CMS Builder v3.55 (Build 2295) and wanted to report a bug. On a multi-record section editor, the Advanced Commands don't work if per page is set to 1000.
Do none of the options work? Even "Admin: Code Generator"? If so, my first guess is that it's because the generated URL is too long and it's being rejected by the server.
Correct.
Apparently I hadn't previously attempted an Advanced Command while having a per page of 1000, as I can replicate this with previous builds. ¯\_(ツ)_/¯
Is the CMS creating a URL "behind the scenes" for processing that contains all record nums or something that gets passed through any Advanced Command?
Also have a question. I found the setting to automatically convert uploads to WebP format. Is there a method to convert existing uploads to WebP format?
Yes, we have an internal plugin for that and we're working to integrate into the main codebase.
Awesome, thanks for the info!
---------------------------------------------
On a separate note, I've discovered a PHP 8 compatibility issue when testing the CSV Export plugin with this beta installation.
"Cannot access offset of type string on string /plugins/csvExport/csvExport.php (line 101)"
I poked around a bit and it seems the last loop contains just a string of the table name.
Adding either of the following at the start of the loop appears to resolve the issue:
if (!is_array(@$schema[$name])) { continue; } // skip if not array
- or -
if (@$schema[$name] == $tableName) { continue; } // skip if schema name equals table name
before:
if (@$schema[$name]['type'] != 'upload') { continue; } // skip all but upload fields
You may come up with a completely different solution, but just wanted to pass along the info. :)
(Normally I'd keep a plugin reference in its separate designated forum space, so I hope you don't mind since we were already discussing PHP 8 here.)
Best,
Steve