Blank manager with undefined message

Sorry, MODX might be ‘pretty simple’, but I’ve experienced dozens of issues over the past few years, while the sites I build are pretty standard. I have been using MODX for 10 years now or so. On many websites.
I’m not a developer, and it sometimes feels like I need to to fully understand how MODX works, how to solve things, how to answer questions in the forum. That’s actually not what I expect from a CMS as a frontender.
MODX does not feel solid at all to me. It has even made me go to Wordpress at the moment; which has a better way of understanding, support, bug fixes, etc.
But I’m still enthousiastic about what MODX is in the core.

This is the latest form the error log. I’m not sure what I am posting here:

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 4197
    [45] => SourceImageToGD() failed in file "phpthumb.class.php" on line 378
)

[2021-03-15 19:07:28] (ERROR in xPDO::getService @ /var/www/vhosts/website.nl/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-15 19:07:28] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-15 19:21:08] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':a447:8067:1:704e:f912:543c:b1b6 BETWEEN `rptBan`.`ip_low1` AND `rptBan`.`ip_hig' at line 1
)

[2021-03-15 19:21:08] (ERROR in xPDO::getService @ /var/www/vhosts/website.nl/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-15 19:21:08] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-16 06:27:10] (ERROR in xPDO::getService @ /var/www/vhosts/website.nl/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-16 06:27:10] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_58_outdoor_adventure_robin_hood_4.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_56_outdoor_adventure_robin_hood_2.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_55_outdoor_adventure_robin_hood_1.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_56_outdoor_adventure_robin_hood_2.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_58_outdoor_adventure_robin_hood_4.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_57_outdoor_adventure_robin_hood_3.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_316_63_outdoor_adventure_handboogschieten_2.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_55_outdoor_adventure_robin_hood_1.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_316_63_outdoor_adventure_handboogschieten_2.jpg
[2021-03-16 10:26:51] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_57_outdoor_adventure_robin_hood_3.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_58_outdoor_adventure_robin_hood_4.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_56_outdoor_adventure_robin_hood_2.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_55_outdoor_adventure_robin_hood_1.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_56_outdoor_adventure_robin_hood_2.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_58_outdoor_adventure_robin_hood_4.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_57_outdoor_adventure_robin_hood_3.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_316_63_outdoor_adventure_handboogschieten_2.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/vierkant_55_outdoor_adventure_robin_hood_1.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_316_63_outdoor_adventure_handboogschieten_2.jpg
[2021-03-16 10:34:10] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/120/_thumbs/normaal_57_outdoor_adventure_robin_hood_3.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/vierkant_149_clinics_workshops_workshop_outdoor_cooking_2.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/vierkant_148_clinics_workshops_workshop_outdoor_cooking_1.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/vierkant_150_clinics_workshops_workshop_outdoor_cooking_3.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/normaal_148_clinics_workshops_workshop_outdoor_cooking_1.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/normaal_149_clinics_workshops_workshop_outdoor_cooking_2.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/normaal_150_clinics_workshops_workshop_outdoor_cooking_3.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/vierkant_151_clinics_workshops_workshop_outdoor_cooking_5.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/vierkant_152_clinics_workshops_workshop_outdoor_cooking_4.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/normaal_151_clinics_workshops_workshop_outdoor_cooking_5.jpg
[2021-03-16 10:50:32] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/sources/modfilemediasource.class.php : 282) Thumbnail could not be created for file: /var/www/vhosts/website.nl/httpdocs/135/_thumbs/normaal_152_clinics_workshops_workshop_outdoor_cooking_4.jpg
[2021-03-16 12:16:21] (ERROR in xPDO::getService @ /var/www/vhosts/website.nl/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-16 12:16:21] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/website.nl/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2021-03-16 13:16:59] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/model/phpthumb/phpthumb.class.php : 1726) PHP warning: getimagesize(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg): failed to open stream: No such file or directory
[2021-03-16 13:16:59] (ERROR @ /var/www/vhosts/website.nl/httpdocs/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 379) [phpThumbOf] Could not generate thumbnail: /assets/bestanden/img/15 september 2007 330.jpg - Debug: Array
(
    [0] => phpThumb() v1.7.15-202004301145 in file "phpthumb.class.php" on line 233
    [1] => setCacheDirectory() starting with config_cache_directory = "/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb/" in file "phpthumb.class.php" on line 1045
    [2] => setting config_cache_directory to $this->realPathSafe(/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb) = "/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb" in file "phpthumb.class.php" on line 1073
    [3] => setCacheDirectory() starting with config_cache_directory = "/var/www/vhosts/website.nl/httpdocs/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 1045
    [4] => setting config_cache_directory to $this->realPathSafe(/var/www/vhosts/website.nl/httpdocs/assets/components/phpthumbof/cache) = "/var/www/vhosts/website.nl/httpdocs/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 1073
    [5] => setSourceFilename(/assets/bestanden/img/15 september 2007 330.jpg) set $this->sourceFilename to "/assets/bestanden/img/15 september 2007 330.jpg" in file "phpthumb.class.php" on line 298
    [6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 748
    [7] => CleanUpCacheDirectory() skipped because "/var/www/vhosts/website.nl/httpdocs/assets/components/phpthumbof/cache/phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 758
    [8] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1003
    [9] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1009
    [10] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1020
    [11] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 1027
    [12] => $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 1037
    [13] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/var/www/vhosts/website.nl/httpdocs/) to $filename (/assets/bestanden/img/15 september 2007 330.jpg) resulting in ($AbsoluteFilename = "/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg") in file "modphpthumb.class.php" on line 310
    [14] => $this->sourceFilename set to "/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg" in file "phpthumb.class.php" on line 930
    [15] => phpThumb() v1.7.15-202004301145
http://phpthumb.sourceforge.net

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 4197
    [16] => SetCacheFilename() _src set from md5($this->sourceFilename) "/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg" = "e1e07de3a10901c5b6660a5978e381a3" in file "phpthumb.class.php" on line 3591
    [17] => SetCacheFilename() _par set from md5(_farC_zc1_wl360_wp360_hp240_dpi150_q90) in file "phpthumb.class.php" on line 3624
    [18] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3389
    [19] => getimagesize(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) says image is x in file "phpthumb.class.php" on line 3399
    [20] => getimagesize("/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg") failed in file "phpthumb.class.php" on line 3428
    [21] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1635
    [22] => phpThumb_tempnam() returning "/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb/pThumbsSAL4F" in file "phpthumb.class.php" on line 4426
    [23] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1571
    [24] => getimagesize(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1732
    [25] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1571
    [26] => getimagesize(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) failed in file "phpthumb.class.php" on line 1912
    [27] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2296
    [28] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1568
    [29] => ImageMagick called as (convert '/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg[0]' -flatten -density '150' -quality '90' -interlace line  jpeg:'/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb/pThumbsSAL4F' 2>&1) in file "phpthumb.class.php" on line 2314
    [30] => ImageMagick failed with message (convert: unable to open image `/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `jpeg:/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb/pThumbsSAL4F' @ error/convert.c/ConvertImageCommand/3210.) in file "phpthumb.class.php" on line 2319
    [31] => deleting "/var/www/vhosts/website.nl/httpdocs/core/cache/phpthumb/pThumbsSAL4F" in file "phpthumb.class.php" on line 2351
    [32] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3435
    [33] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3368
    [34] => SetOrientationDependantWidthHeight() setting w="360", h="240" in file "phpthumb.class.php" on line 3384
    [35] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3492
    [36] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3750
    [37] => starting ImageCreateFromFilename(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) in file "phpthumb.class.php" on line 3665
    [38] => empty $filename or getimagesize(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) failed in file "phpthumb.class.php" on line 3714
    [39] => Populating $rawimagedata in file "phpthumb.class.php" on line 3722
    [40] => cannot fopen(/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg) in file "phpthumb.class.php" on line 3733
    [41] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3822
    [42] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3874
    [43] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3876
    [44] => phpThumb() v1.7.15-202004301145
http://phpthumb.sourceforge.net

This looks interesting:

Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':a447:8067:1:704e:f912:543c:b1b6 BETWEEN `rptBan`.`ip_low1` AND `rptBan`.`ip_hig' at line 1
)

I don’t recognise the class name rptBan, but there’s an extra there that has an issue reading from its table, seemingly when it encounters an ipv6 address.

Seems somewhat unlikely to me that it would result in an undefined error in the manager, but that’s the sort of log message that needs to be reported to the developer of an extra to make sure that gets fixed. Can you check against your list of installed packages what rptBan might belong to? Typically the prefix (rpt) is an acronym or part of the name of an extra…

2 Likes

OHi there, sorry about the bad user experience, sadly it can still happen, and even for me, as a developer was a step curve, but got to say that I’m loving the framework and the whole PHP community, regarding your logs, seems like your phpthumb might be broken, as I’m seeing some weird paths like ‘/var/www/vhosts/website.nl/httpdocs//assets/bestanden/img/15 september 2007 330.jpg’ Im not sure about the spaces, but im pretty sure the double ‘//’ will be an issue.

Also if you can edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG['disable_debug'] = false;

Youll get more info about the problem, but my bet is some misconfigured parameter on the system or phThumb settings

found rptBan here

1 Like

I found rptban in the Discuss code (the author’s name looks familiar for some reason :wink: ). It looks like it’s used to ban users by IP address. I wonder if an occasional user is accidentally banned and gets a blank manager as a result.

Note that Discuss was last updated in July of 2013, so it wouldn’t be a surprise if it didn’t play nice with current versions of MODX and PHP.

As a supreme irony, I had this exact issue for most of the night last night (minus the error message). It turned out to be a problem with a new, unreleased, version of UpgradeMODX. When I took UGM off the dashboard, everything was fine. One clue was that if I bypassed the dashboard I could go directly to editing a resource after logging in. The Manager worked fine as long as I avoided the dashboard.

It reminded me of a similar problem I’d seen before. If something goes wrong while MODX is pulling the News and Security feeds, it seems to leave cURL in an unusable state. The next widget that tries to use it crashes the dashboard. The problem was intermittent, like yours. Moving the UpgradeMODX widget to the top of the dashboard prevented the issue, which may or may not be fixed.

I should also mention that a version of UpgradeMODX throws an undefined JavaScript error when MODX is up to date. I fixed it a while back but I’m not sure if the current release is fixed or not. I’ve never seen that as an error except in the Dev. Tools console, and it’s never caused trouble in the Manager.

Things to Try

My first guess on the cause of your issue would be a dashboard widget, especially if there is a dashboard widget that uses Discuss or Rampart, or uses the internet to grab anything off site.

It’s easy to remove widgets from a dashboard, and it doesn’t delete them, it just keeps them from executing. The first thing I’d try is just turning off the News and Security feeds (in System Settings, search for feed and you’ll see the settings). If that doesn’t work, I’d try moving UpgradeMODX to the top of the dashboard, and if that fails, removing it from the dashboard.

My second guess would be a problem with a plugin attached to a Manager login event.

A distant third guess would be some kind of JavaScript problem, possibly involving multiple versions of JQuery.

Yes, this site is using Rampart (not sure why it was implemented). And Dashboards. I experienced more problems with the Dashboards in the past. For many clients I reverted Dashboards to default, but not for this client. Maybe that’s the problem. I am awaiting more input from the client if he encounters the problem again.

That’s interesting. The site/images look to work properly. It’s a multisite with context routing. There as been a lot of effort to make it work, even with MODX experts from here having had a look at it. So it’s still not quite okay?

well your logs have plenty of errors related to phpThumb, but from bob’s comments, I don’t this would be your major issue, yet something to look at, as there’s something clearly broken there

I wouldn’t know what could be broken and what I could do about it from my part. I just installed the extra and started using it.

Are you using resizer with pThumb?

No idea. How can I tell?

In the backend: Try going to the system settings and search for use_resizer

Try this:

Put this in your browser’s address bar:

yoursite.com/manager/?id=1&a=resource/update

Change yoursite.com to your site’s URL.
If you’ve renamed the manager, change that as well.

If that gets you into the Manager, your problem is almost certainly caused by a dashboard widget.

1 Like

The issue occured again and I got this from the customer:

Deze pagina gebruikt de niet-standaard property ‘zoom’. Overweeg het gebruik van calc() in de relevante propertywaarden of gebruik ‘transform’ samen met ‘transform-origin: 0 0’. manager
Sommige cookies maken misbruik van het aanbevolen attribuut ‘SameSite’ 4
Laden voor het <script> met bron ‘https://website.nl/connectors/lang.js.php?ctx=mgr&topic=topmenu,file,resource,trash,welcome,configcheck,gallery:default,moregallery:default,ace:default&action=’ is mislukt. manager:15:1
Het script van ‘https://www.website.nl/connectors/modx.config.js.php?action=&wctx=mgr’ is geladen, hoewel het MIME-type ervan (‘text/html’) geen geldig JavaScript-MIME-type is.manager
Uncaught ReferenceError: _ is not defined    <anonymous> https://website.nl/manager/assets/modext/util/uploaddialog.js:1456uploaddialog.js:1456:3
Uncaught TypeError: MODx.config.upload_files is undefined    <anonymous> https://website.nl/manager/assets/modext/util/multiuploaddialog.js:3    <anonymous> https://website.nl/manager/assets/modext/util/multiuploaddialog.js:563multiuploaddialog.js:3:30
unreachable code after return statementmodx.tree.js:872:12
Gebruik van window.controllers/Controllers wordt niet meer ondersteund. Gebruik dit niet voor UA-detectie. ace.min.js:1:18511
Uncaught ReferenceError: _ is not defined    <anonymous> https://website.nl/manager/assets/modext/core/modx.localization.js:5    ExtJS 2modx.localization.js:5:9Uncaught TypeError: MODx.user is undefined    readState https://website.nl/manager/assets/modext/core/modx.js?v=ef5b0ae9:1024    HttpProvider https://website.nl/manager/assets/modext/core/modx.js?v=ef5b0ae9:879    Layout https://website.nl/manager/assets/modext/core/modx.layout.js:25    Default https://website.nl/manager/templates/default/js/layout.js:6    create ExtJS    load https://website.nl/manager/assets/modext/core/modx.js?v=ef5b0ae9:85    <anonymous> https://website.nl/manager/:52    ExtJS 2modx.js:1024:9
Uncaught ReferenceError: _ is not defined    RecentlyEditedResourcesByUser https://website.nl/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js:12    create ExtJS    load https://website.nl/manager/assets/modext/core/modx.js?v=ef5b0ae9:85    <anonymous> https://website.nl/manager/:103    ExtJS 2modx.grid.user.recent.resource.js:12:9Uncaught ReferenceError: _ is not defined    SearchBar https://website.nl/manager/assets/modext/widgets/core/modx.searchbar.js:8    <anonymous> https://website.nl/manager/:128    ExtJS 2
https://www.website.nl/connectors/modx.config.js.php?action=&wctx=mgr' has been loaded, although its MIME type ('text / html') not a valid JavaScript MIME type . 

`managerUncaught ReferenceError: _` is not defined

The _ is not defined message usually has to do with the MODX lexicon. modExt/ExtJS creates _() as a JavaScript method that’s used to simulate the $modx->lexicon() method.

The preceding error is about connectors/modx.config.js.php (which is apparently given the wrong mime type). It launches the index.php file, which creates the _() function. Probably because the connectors/modx.config.js.php file is being treated as text rather then PHP, it isn’t being executed, just read.

The question is why this isn’t a problem all the time. The MIME type of a file is deduced from its extension, and sometimes its content, so maybe the js.php extension is confusing things. The MIME types are often in this file: /usr/share/magic.mime. I don’t know if it makes sense to add a .js.php extension in the file that’s set to application/x-httpd-php.

You might consult with your host on how to make sure that connectors/modx.config.js.php file is executed as PHP.

Yes, it has user_resizer

I will check with the host.

My customer keeps having problems. He almost needs to clear his cache and cookies, refresh browser, etc. all the time to properly login.

It is executed as PHP:

$ curl -I https://www.website.nl/connectors/modx.config.js.php
  HTTP/2 200
  server: nginx
  date: Fri, 16 Apr 2021 10:48:42 GMT
  content-type: text/html; charset=UTF-8
  vary: Accept-Encoding
  expires: Thu, 19 Nov 1981 08:52:00 GMT
  cache-control: no-store, no-cache, must-revalidate
  pragma: no-cache
  set-cookie: PHPSESSID=; expires=Fri, 23-Apr-2021 10:48:42 GMT; Max-Age=604800; path=/; HttpOnly
  strict-transport-security: max-age=31536000