ConvertToText throws error with CMSB 3.73 -> RESOLVED

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: December 27   (RSS)

By kitsguru - December 22 - edited: December 27

#3 - Warning: Undefined array key "installPath"
/Volumes/J/sterlingseafood/html/www/cmsb/plugins/convertToText/convertToText.php on line 290

I have not spent any time on a fix for this.

Jeff Shields
yaadev.com

ConvertToText throws error with CMSB 3.75

Hi Jeff, 

Can you try the latest released version of CMSB?  We previously added a fix for that.  Or add this first block to the top of /lib/Settings.php get()

    public static function get(string $key): string|int|bool|array|null {

        // legacy support for plugins and code that use old setting names
        if ($key === 'installPath') {
            return CMS::$rootDir;
        }

Or you have a really old version just set it to the folder CMSB admin.php is in.

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com