Fatal error in SugarTheme.php line 870. Five missing images.

SuiteCRM version 7.1.4

  1. include/SugarTheme/SugarTheme.php Line 870 is logging Fatal errors in the php error log, because $GLOBALS[‘log’] is empty.

$GLOBALS['log']->warn("Image $imageName not found");
  1. The reason why it’s trying to log that error, is because there are five missing images.
GLOBALS[log] is empty in SugarTheme::getImageURL(). Warning Image slider_button_more.png not found
GLOBALS[log] is empty in SugarTheme::getImageURL(). Warning Image slider_button_less.png not found
GLOBALS[log] is empty in SugarTheme::getImageURL(). Warning Image horizBg.png not found
GLOBALS[log] is empty in SugarTheme::getImageURL(). Warning Image star-sheet.png not found
GLOBALS[log] is empty in SugarTheme::getImageURL(). Warning Image tabDownArrowOff.png not found

I have searched fopr those files and they apear to be nowhere in the distributions of both SuiteCRM and SugarCRM.

They are mentioned in the following CSS files

themes/Suite7/css/Cal.css
themes/Suite7/css/Style.css

and the corresponding file in cache

This seems to be a bug!

Have you changed anything relating to the SuiteCRM theme?

Thanks for taking a look at this.

Nothing was changed in the SuiteCRM theme.

The bug has 2 parts both need to be fixed,
1.

$GLOBALS['log']

is empty. It should’ve been instantiated by the initialization code… There was a shortcut taken to not instantiate the logger and many other things, for image requests performance, but then obviously notices warnings and fatal errors couldn’t be logged when they need to be.
2. the 5 images are missing from the installer. They should either be added to the installer, or references to them should be removed from the css.