Site not loading template

Summary

Site suddenly not loading template

Observed behavior

Site showing - sort of - menus and text , but no ‘formatting’ or images/videos - template not loading

Environment

Modx 2.8.6 on litespeed php 8.1

Here form system errorlog:
2024-03-12 12:06:09.552313 [ERROR] [3088815] [T0] [HTAccess] Failed to open [/home/bloom/public_html/assets/themes/.htaccess]: Permission denied

[Tue Mar 12 11:21:15.116159 2024] [error] [client 85.203.137.110] ModSecurity: Warning. [Rule: ‘REQUEST_URI’ ‘!@rx /wc-api/KCO_WC_Validation/’] [id “77140164”] [msg “IM360 WAF: PHP Injection Low value||T:LITESPEED||SC:/home/bloom/public_html/connectors/index.php”] [severity “DEBUG”] [tag “service_im360”] [hostname “bloom.as”] [uri “/connectors/index.php”] [unique_id “XzzbMa0tmsyZtHumrJLy2-2i”], referer: Login | Bloom Fortune Ventures

This is weird since there is no htaccess in that folder - never was.
What could it be? What can be done?

What exactly do you mean by “not loading template”?
Is this on the front-end (or in the manager)?

What do the developer tools in the browser show? Any errors in the “Console” tab? Any requests that fail in the “Network” tab?

The manager looks all fine, but the front will not ‘take’ the templates - except the ‘default’ one
DevTools? What should I search for? There is no messages?
Console? Clicking in the upper left corner? Nothing unusual there - all looks ‘clean’
Where is the network tab?

I have another site on the same server, agv.as which functions as expected. It is a copy of bloom.as from a few weeks ago.

And then there is the errorlog in manager:
```[2024-03-12 06:53:35] (ERROR in resource 53 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:36] (ERROR in resource 5 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:53:43] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 480) PHP warning: fileperms(): stat failed for /home/bloom/public_html/assets/components/phpthumbof/cache/Bloom Fortune ventures e-mail cut.fe9b41158558b648782a2d5dd916e90356.png
[2024-03-12 06:53:43] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 482) PHP warning: chmod(): No such file or directory
[2024-03-12 06:53:44] (ERROR in resource 56 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~13]] encountered
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key “window_id”
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/modx/processors/system/phpthumb.class.php : 61) PHP warning: file_get_contents(/assets/themes/codrop/media/bg.svg): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1591) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMversion.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1518) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMcommandlineBase.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1495) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMwhichConvert.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1591) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMversion.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1591) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMversion.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 1591) PHP warning: file_get_contents(/home/bloom/public_html/core/cache/phpthumb/phpThumbCacheIMversion.txt): Failed to open stream: No such file or directory
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__src5005961d3710d7a1c1451d70c5ac7d8b_par50a064df300e664cfff2fbd5ed8df8e3_dat0.png
[2024-03-12 06:54:11] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file “phpthumb.class.php” on line 702
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__srcf597d748c625332e9d995f810b69f0f6_par50a064df300e664cfff2fbd5ed8df8e3_dat0.png
[2024-03-12 06:54:12] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file “phpthumb.class.php” on line 702
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3916) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__src558c9f9b8ccef6e8b5263d285fecf38a_par50a064df300e664cfff2fbd5ed8df8e3_dat1709892558.png
[2024-03-12 06:54:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file “phpthumb.class.php” on line 702
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 480) PHP warning: fileperms(): stat failed for /home/bloom/public_html/assets/components/phpthumbof/cache/hd-3.1e1aaed53dade925bcd510b7f1bf976c2.jpg
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 482) PHP warning: chmod(): No such file or directory
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 379) [phpThumbOf] Could not generate thumbnail: /assets/themes/codrop/media/hd-3.jpg - Debug: Array
(
[0] => phpThumb() v1.7.21-202307141720 in file “phpthumb.class.php” on line 279
[1] => setCacheDirectory() starting with config_cache_directory = “/home/bloom/public_html/core/cache/phpthumb/” in file “phpthumb.class.php” on line 1108
[2] => setting config_cache_directory to $this->realPathSafe(/home/bloom/public_html/core/cache/phpthumb) = “/home/bloom/public_html/core/cache/phpthumb” in file “phpthumb.class.php” on line 1136
[3] => setCacheDirectory() starting with config_cache_directory = “/home/bloom/public_html/assets/components/phpthumbof/cache/” in file “phpthumb.class.php” on line 1108
[4] => setting config_cache_directory to $this->realPathSafe(/home/bloom/public_html/assets/components/phpthumbof/cache) = “/home/bloom/public_html/assets/components/phpthumbof/cache” in file “phpthumb.class.php” on line 1136
[5] => setSourceFilename(/assets/themes/codrop/media/hd-3.jpg) set $this->sourceFilename to “/assets/themes/codrop/media/hd-3.jpg” in file “phpthumb.class.php” on line 347
[6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file “phpthumb.class.php” on line 806
[7] => CleanUpCacheDirectory() skipped because “/home/bloom/public_html/assets/components/phpthumbof/cache/phpThumbCacheStats.txt” is recently modified in file “phpthumb.class.php” on line 816
[8] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;avif;webp;png;jpeg) in file “phpthumb.class.php” on line 1065
[9] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;avif;webp;png;jpeg) in file “phpthumb.class.php” on line 1071
[10] => $this->thumbnailFormat set to $this->config_output_format “jpeg” in file “phpthumb.class.php” on line 1083
[11] => $this->thumbnailFormat set to $this->f “jpeg” in file “phpthumb.class.php” on line 1090
[12] => $this->thumbnailQuality set to “75” in file “phpthumb.class.php” on line 1100
[13] => ResolveFilenameToAbsolute() prepending $this->config_document_root (//home/bloom/public_html/) to $filename (/assets/themes/codrop/media/hd-3.jpg) resulting in ($AbsoluteFilename = “//home/bloom/public_html//assets/themes/codrop/media/hd-3.jpg”) in file “modphpthumb.class.php” on line 327
[14] => !$this->config_allow_src_above_docroot therefore setting “//home/bloom/public_html//assets/themes/codrop/media/hd-3.jpg” (outside “/home/bloom/public_html”) to null in file “modphpthumb.class.php” on line 372
[15] => $this->sourceFilename set to “” in file “phpthumb.class.php” on line 988
[16] => phpThumb() v1.7.21-202307141720

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG[‘disable_debug’] = false;
to view the details of this error in file “phpthumb.class.php” on line 4351
[17] => ResolveFilenameToAbsolute() prepending $this->config_document_root (//home/bloom/public_html/) to $filename (/assets/themes/codrop/media/hd-3.jpg) resulting in ($AbsoluteFilename = “//home/bloom/public_html//assets/themes/codrop/media/hd-3.jpg”) in file “modphpthumb.class.php” on line 327
[18] => !$this->config_allow_src_above_docroot therefore setting “//home/bloom/public_html//assets/themes/codrop/media/hd-3.jpg” (outside “/home/bloom/public_html”) to null in file “modphpthumb.class.php” on line 372
[19] => SetCacheFilename() _src set from md5($this->sourceFilename) “” = “d41d8cd98f00b204e9800998ecf8427e” in file “phpthumb.class.php” on line 3693
[20] => SetCacheFilename() _par set from md5(_farC_zc1_h1080_w1920_dpi150_q75) in file “phpthumb.class.php” on line 3732
[21] => starting ExtractEXIFgetImageSize() in file “phpthumb.class.php” on line 3486
[22] => skipping getimagesize() because $this->sourceFilename is empty in file “phpthumb.class.php” on line 3501
[23] => getimagesize(“”) failed in file “phpthumb.class.php” on line 3528
[24] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file “phpthumb.class.php” on line 1723
[25] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file “phpthumb.class.php” on line 1776
[26] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3535
[27] => SetOrientationDependantWidthHeight() starting with ““x”” in file “phpthumb.class.php” on line 3465
[28] => SetOrientationDependantWidthHeight() setting w=“1920”, h=“1080” in file “phpthumb.class.php” on line 3481
[29] => EXIF thumbnail extraction: (size=0; type=“”; 0x0) in file “phpthumb.class.php” on line 3594
[30] => starting SourceImageToGD() in file “phpthumb.class.php” on line 3863
[31] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file “phpthumb.class.php” on line 3935
[32] => $this->gdimg_source is still empty in file “phpthumb.class.php” on line 3987
[33] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3989
[34] => phpThumb() v1.7.21-202307141720

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG[‘disable_debug’] = false;
to view the details of this error in file “phpthumb.class.php” on line 4351
[35] => SourceImageToGD() failed in file “phpthumb.class.php” on line 427
)

[2024-03-12 07:05:20] (ERROR in resource 2 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag [[~17]] encountered
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 480) PHP warning: fileperms(): stat failed for /home/bloom/public_html/assets/components/phpthumbof/cache/store-google-white.066dff0b6f10c007cc67aa860534156e2.png
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 482) PHP warning: chmod(): No such file or directory
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 379) [phpThumbOf] Could not generate thumbnail: /assets/themes/codrop/media/store-google-white.png - Debug: Array
(
[0] => phpThumb() v1.7.21-202307141720 in file “phpthumb.class.php” on line 279
[1] => setCacheDirectory() starting with config_cache_directory = “/home/bloom/public_html/core/cache/phpthumb/” in file “phpthumb.class.php” on line 1108
[2] => setting config_cache_directory to $this->realPathSafe(/home/bloom/public_html/core/cache/phpthumb) = “/home/bloom/public_html/core/cache/phpthumb” in file “phpthumb.class.php” on line 1136
[3] => setCacheDirectory() starting with config_cache_directory = “/home/bloom/public_html/assets/components/phpthumbof/cache/” in file “phpthumb.class.php” on line 1108
[4] => setting config_cache_directory to $this->realPathSafe(/home/bloom/public_html/assets/components/phpthumbof/cache) = “/home/bloom/public_html/assets/components/phpthumbof/cache” in file “phpthumb.class.php” on line 1136
[5] => setSourceFilename(/assets/themes/codrop/media/store-google-white.png) set $this->sourceFilename to “/assets/themes/codrop/media/store-google-white.png” in file “phpthumb.class.php” on line 347
[6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file “phpthumb.class.php” on line 806
[7] => CleanUpCacheDirectory() skipped because “/home/bloom/public_html/assets/components/phpthumbof/cache/phpThumbCacheStats.txt” is recently modified in file “phpthumb.class.php” on line 816
[8] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;avif;webp;png;jpeg) in file “phpthumb.class.php” on line 1065
[9] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;avif;webp;png;jpeg) in file “phpthumb.class.php” on line 1071
[10] => $this->thumbnailFormat set to $this->config_output_format “jpeg” in file “phpthumb.class.php” on line 1083
[11] => $this->thumbnailFormat set to $this->f “png” in file “phpthumb.class.php” on line 1090
[12] => $this->thumbnailQuality set to “75” in file “phpthumb.class.php” on line 1100
[13] => ResolveFilenameToAbsolute() prepending $this->config_document_root (//home/bloom/public_html/) to $filename (/assets/themes/codrop/media/store-google-white.png) resulting in ($AbsoluteFilename = “//home/bloom/public_html//assets/themes/codrop/media/store-google-white.png”) in file “modphpthumb.class.php” on line 327
[14] => !$this->config_allow_src_above_docroot therefore setting “//home/bloom/public_html//assets/themes/codrop/media/store-google-white.png” (outside “/home/bloom/public_html”) to null in file “modphpthumb.class.php” on line 372
[15] => $this->sourceFilename set to “” in file “phpthumb.class.php” on line 988
[16] => phpThumb() v1.7.21-202307141720

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG[‘disable_debug’] = false;
to view the details of this error in file “phpthumb.class.php” on line 4351
[17] => ResolveFilenameToAbsolute() prepending $this->config_document_root (//home/bloom/public_html/) to $filename (/assets/themes/codrop/media/store-google-white.png) resulting in ($AbsoluteFilename = “//home/bloom/public_html//assets/themes/codrop/media/store-google-white.png”) in file “modphpthumb.class.php” on line 327
[18] => !$this->config_allow_src_above_docroot therefore setting “//home/bloom/public_html//assets/themes/codrop/media/store-google-white.png” (outside “/home/bloom/public_html”) to null in file “modphpthumb.class.php” on line 372
[19] => SetCacheFilename() _src set from md5($this->sourceFilename) “” = “d41d8cd98f00b204e9800998ecf8427e” in file “phpthumb.class.php” on line 3693
[20] => SetCacheFilename() _par set from md5(_farC_zc1_h192_w524_dpi150) in file “phpthumb.class.php” on line 3732
[21] => starting ExtractEXIFgetImageSize() in file “phpthumb.class.php” on line 3486
[22] => skipping getimagesize() because $this->sourceFilename is empty in file “phpthumb.class.php” on line 3501
[23] => getimagesize(“”) failed in file “phpthumb.class.php” on line 3528
[24] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file “phpthumb.class.php” on line 1723
[25] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file “phpthumb.class.php” on line 1776
[26] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3535
[27] => SetOrientationDependantWidthHeight() starting with ““x”” in file “phpthumb.class.php” on line 3465
[28] => SetOrientationDependantWidthHeight() setting w=“524”, h=“192” in file “phpthumb.class.php” on line 3481
[29] => EXIF thumbnail extraction: (size=0; type=“”; 0x0) in file “phpthumb.class.php” on line 3594
[30] => starting SourceImageToGD() in file “phpthumb.class.php” on line 3863
[31] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file “phpthumb.class.php” on line 3935
[32] => $this->gdimg_source is still empty in file “phpthumb.class.php” on line 3987
[33] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3989
[34] => phpThumb() v1.7.21-202307141720

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG[‘disable_debug’] = false;
to view the details of this error in file “phpthumb.class.php” on line 4351
[35] => SourceImageToGD() failed in file “phpthumb.class.php” on line 427
)

[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 480) PHP warning: fileperms(): stat failed for /home/bloom/public_html/assets/components/phpthumbof/cache/store-apple-white.066dff0b6f10c007cc67aa860534156e2.png
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 482) PHP warning: chmod(): No such file or directory
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:05:20] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null```


edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG['disable_debug'] = false;
to view the details of this error in file "phpthumb.class.php" on line 4351
    [35] => SourceImageToGD() failed in file "phpthumb.class.php" on line 427
)

[2024-03-12 07:05:21] (ERROR in resource 2 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag `[[~13]]` encountered
[2024-03-12 07:10:52] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 480) PHP warning: fileperms(): stat failed for /home/bloom/public_html/assets/components/phpthumbof/cache/Bloom Fortune ventures e-mail cut.fe9b41158558b648782a2d5dd916e90358.png
[2024-03-12 07:10:52] (ERROR @ /home/bloom/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 482) PHP warning: chmod(): No such file or directory
[2024-03-12 07:10:53] (ERROR in resource 58 @ /home/bloom/public_html/core/model/modx/modparser.class.php : 1373) Bad link tag `[[~13]]` encountered
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__srcbae6d120dfe561355af9ec6c9482ea02_parfe63e9239bc49e2fae6900079200047d_dat0.png
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 702
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__src2ad9d05f660391f024b4a430574acf46_parfe63e9239bc49e2fae6900079200047d_dat0.png
[2024-03-12 07:35:05] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 702
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:46] (ERROR @ /home/bloom/public_html/core/cache/mgr/smarty/default/246c1c1c4f964247317c43ef99f9b3b3525ca7fb_0.file.migx.tpl.php : 85) PHP warning: Undefined array key "window_id"
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__srcf597d748c625332e9d995f810b69f0f6_par50a064df300e664cfff2fbd5ed8df8e3_dat0.png
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 702
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type null
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__src5005961d3710d7a1c1451d70c5ac7d8b_par50a064df300e664cfff2fbd5ed8df8e3_dat0.png
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 702
[2024-03-12 08:07:47] (ERROR @ /home/bloom/public_html/core/model/modx/processors/system/phpthumb.class.php : 61) PHP warning: file_get_contents(/assets/themes/codrop/media/bg.svg): Failed to open stream: No such file or directory
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3916) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type bool
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 170) phpThumb was unable to generate a thumbnail for: /home/bloom/public_html/core/cache/phpthumb/bloom.as__src558c9f9b8ccef6e8b5263d285fecf38a_par50a064df300e664cfff2fbd5ed8df8e3_dat1709892558.png
[2024-03-12 08:08:01] (ERROR @ /home/bloom/public_html/core/model/phpthumb/modphpthumb.class.php : 182) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 702
[2024-03-12 08:26:34] (ERROR @ /home/bloom/public_html/core/model/modx/xmlrss/rssfetch.class.php : 241) User warning: MagpieRSS: Failed to fetch https://forums.modx.com/board.xml?board=294 and cache is off```

Open the developer tools in your browser. You can usually do this with F12 or Ctrl + Shift + I (but it depends on the operating system and the browser you use).


This sounds like the HTML markup loads correctly but the CSS file and images files don’t.
Make sure you have <base href="[[!++site_url]]"> in the <head> tag of your template.

I tried to run setup on the site, but get a 403 access denied - never seen that before in this context

Thank you Harry,
In the network tab in devtools (sorry I misunderstood) it says unable to load script
It will only load inline css
Apparently several sub-folders are blocked - and I did not edit any htaccess files.
So far the hosting company have not been of any help.

Seems to be fine. The source code for the page looks just as it should, but css files etc are not loaded

Is the path to the CSS file correct?

Is the problem that it tries to load the files from the wrong path or that you don’t have permission to access the folder/file?

No, no path have been changed. And I can not even access the ‘setup’ sub-folder. ModSecurity has been disabled, so that is not it either.

Did you verify that the file permissions are correct?

They are all correct
Edit: The folder had for some reason 700 instead of 755
Corrected now and all is back to normal.
Thank you for taking the time.

It was unpacking a tar.gz file (in cPanel File-manager) that changed the permission on a folder - from 755 to 700. How that is possible I do not know - have never seen it before either.