bug cmsb 3.55 upload list undefined index

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 9, 2022   (RSS)

By kitsguru - February 23, 2022

My developer log is filling up with the following notices:

#733 - E_NOTICE: Undefined index: mediaNum
/www/cmsb/lib/menus/default/uploadList.php (line 109)

My temporary fix was to modify line 109

FROM:
<?php if ($row['mediaNum']) { echo "(<a href='?menu=_media&action=edit&num=" .$row['mediaNum']. "' target='_blank'>" .t("from media library"). "</a>)"; }; ?>

TO:
<?php if (@$row['mediaNum']) { echo "(<a href='?menu=_media&action=edit&num=" .$row['mediaNum']. "' target='_blank'>" .t("from media library"). "</a>)"; }; ?>
Jeff Shields

By daniel - March 9, 2022

Thanks for the report Jeff! I'll review the section and get a fix added for the next CMSB release. In the meantime, your fix should work fine.

Daniel
Technical Lead
interactivetools.com