CMSB v3.69 Released (Apr 29) - Website/Code Backups

7 posts by 3 authors in: Forums > CMS Builder
Last Post: Wednesday at 10:16am   (RSS)

Hi Dave

Are there any known issues with the Newsletter Plugin (3.07) and this latest release?

#154922 - implode(): Argument #2 ($array) must be of type ?array, string given
/home/domainhidden/public_html/cmsAdmin/lib/Fields/ListField.php on line 294
https://domainhidden.co.uk/cmsAdmin/admin.php?menu=_nlb_messages&action=add

Thanks
Jeff

Jeff

Hi Jeff, 

Thanks for reporting that, I can confirm that issue on my end.  Can you try this fix? 

  • Open cmsb/plugins/newsletterBuilder/newsletterBuilder_cmsMenus.php
  • Search for: only set defaults for new records
  • Replace:
    $_REQUEST['send'] = 'none';​
  • With this:
    $_REQUEST['send'] = ['none'];​

Let me know if that works for you and I'll release a Newsletter Builder update as well.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

Sorted. Thanks Dave

Jeff

Thanks Jeff, 

I've released an updated version here if you have any other sites that need upgrading: 
https://www.interactivetools.com/plugins/newsletter-builder/

Dave Edis - Senior Developer
interactivetools.com

Hi,

Always great news when you release a new version with new features!

After I upgraded and went to the Backup & Restore, I'm getting:

Warning: disk_free_space(): open_basedir restriction in effect. File(/var/www/vhosts/lagottoromagnolo.gr) is not within the allowed path(s): (/var/www/vhosts/lagottoromagnolo.gr/public_html/:/tmp/:/usr/share/pear/)formatBytes(): Argument #1 ($bytes) must be of type string|int|float|null, bool given, called in /var/www/vhosts/lagottoromagnolo.gr/public_html/cmsAdmin/lib/menus/admin/backupAndRestore.php on line 35

Note: there is no problem with free space on the server but the open_basedir restriction in effect.

How can I bypass this (if its possible)?

Thanks,
Karls

Hi Karlz, 

Thanks for reporting that.  Here's a patch: 

  • Open /cmsb/lib/menus/admin/backupAndRestore.php
  • Search for: disk_free_space
  • Add @ before disk_free_space like this:
  • $diskSpaceFreeBytes = @disk_free_space(dirname($GLOBALS['SETTINGS']['webRootDir']));

And then check your Website Root Dir under Admin > General and make sure it ends in /public_html to match your folder structure.

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com