Issue accessing Code Generator with v3.61

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 11, 2023   (RSS)

By Deborah - September 11, 2023

Hello, Interactive Tools. It seems I might not have tested the Code Generator with the last beta!

With CMS Builder v3.61 (Build 2372), after tapping "Code Generator" in the CMS nav bar, I see a series of repeated errors and the "Create a Viewer" links are non-operable.

The 14 errors all refer to this file and line number:
/home/x/public_html/cms/admin.php on line 59
https://www.domain.com/cms/admin.php?menu=_codeGenerator

Error displays 4 times:
Warning: Cannot modify header information - headers already sent by (output started at /home/test/public_html/cms/lib/errorlog_functions.php:108)
/home/test/public_html/cms/admin.php on line 59

Error displays 5 times:
Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated
https://www.domain.com/cms/admin.php?menu=_codeGenerator

Error displays 5 times:
Warning: Undefined array key "function"

Tested with PHP v8.2.3 and PHP v8.1.16 - same results. I have no code generator issues with earlier CMSB versions.

Please let me know what I can do or provide for tracing this down. Thanks!

~ Deborah

By Dave - September 11, 2023

Hi Deborah, 

Thanks for reporting this, it is indeed a bug that slipped through!

We've released a hotfix v3.61a with this patched here: https://www.interactivetools.com/download/

And you can patch it yourself if you like as follows: 

  • Open /lib/plugin_functions.php
  • Search for $generators[]
  • Around line 208
    • Replace this: 'functionName' => $functionName,
    • With this: 'function' => $functionName,

Hope that helps, let me know if you run into any other issues!

Dave Edis - Senior Developer
interactivetools.com