MODX Community

Template variables: only one category showing up suddenly

Summary

From today on, my modx-installation will only show the category “uncetegorized” on the tab “Template Variables”

Step to reproduce

As written in summary… I logged into my modx-installation and wanted to change something in my template variables on one page. But the tab “Template Variables” will only show the uncategorized TVs, and not one of the other categories I created.
The installation exists for about 5 years now and never showed such behaviour…

Expected behavior

well… the tab “TV” should show all TVs which are assigned to the chosen Template…

Environment

MODX version: MODX Revolution 2.6.5-pl, Apache

Have you checked the respective templates, whether the expected TVs are assigned to it?

Are there any errors in the error log? Did anything else change?

@vibedesign: Yes, checked it, they’re assigned as they were before.

@joshualuckers: I didn’t change anything…

Error log says: (but I can’t see a context with the error occuring in the manager)
(I disabled the pthumb-extra after reading this errorlog - but behaviour doesn’t change)
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 4126
[55] => SourceImageToGD() failed in file “phpthumb.class.php” on line 374
)

[2019-12-15 06:02:45] (ERROR @ /home/www/CPVCore/components/gallery/processors/web/phpthumb.php : 187) PHP warning: filemtime(): stat failed for /home/www/chorphilharmonie.de/28M8b7qs6A/components/gallery/cache/_home_www_chorphilharmonie.de_en__28M8b7qs6A_gallery_1_16.jpg.07e7ca9cf769f49711c8a5ddb8fa5520.jpg
[2019-12-15 06:02:45] (ERROR @ /home/www/CPVCore/components/gallery/processors/web/phpthumb.php : 199) PHP warning: file_get_contents(/home/www/chorphilharmonie.de/28M8b7qs6A/components/gallery/cache/_home_www_chorphilharmonie.de_en__28M8b7qs6A_gallery_1_16.jpg.07e7ca9cf769f49711c8a5ddb8fa5520.jpg): failed to open stream: No such file or directory
[2019-12-15 06:02:56] (ERROR @ /home/www/CPVCore/model/phpthumb/phpthumb.class.php : 1686) PHP warning: getimagesize(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg): failed to open stream: No such file or directory
[2019-12-15 06:02:56] (ERROR @ /home/www/CPVCore/components/gallery/processors/web/phpthumb.php : 181) [phpThumbOf] Could not generate thumbnail: /home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg - Debug: Array
(
[0] => phpThumb() v1.7.14-201608101311 in file “phpthumb.class.php” on line 229
[1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/en//28M8b7qs6A/gallery/1/4.jpg) resulting in ($AbsoluteFilename = “/en//28M8b7qs6A/gallery/1/4.jpg”) in file “phpthumb.class.php” on line 1299
[2] => resolvePath: /en//28M8b7qs6A/gallery/1/4.jpg (allowed_dirs: Array
(
)
) in file “phpthumb.class.php” on line 1140
[3] => resolvePath: iteration, path=/en//28M8b7qs6A/gallery/1/4.jpg, base path = /home/www/chorphilharmonie.de/28M8b7qs6A/components/gallery in file “phpthumb.class.php” on line 1159
[4] => open_basedir: “” in file “phpthumb.class.php” on line 1126
[5] => resolvePath: stop at component 7 in file “phpthumb.class.php” on line 1175
[6] => resolvePath: stop at path=/en/28M8b7qs6A/gallery/1/4.jpg in file “phpthumb.class.php” on line 1178
[7] => resolvePath: no match, returning null in file “phpthumb.class.php” on line 1180
[8] => !$this->config_allow_src_above_docroot therefore setting “” (outside “/home/www/chorphilharmonie.de/28M8b7qs6A/components/gallery”) to null in file “phpthumb.class.php” on line 1344
[9] => setSourceFilename() set $this->sourceFilename to “” in file “phpthumb.class.php” on line 294
[10] => setSourceFilename(/home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg) set $this->sourceFilename to “/home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg” in file “phpthumb.class.php” on line 294
[11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file “phpthumb.class.php” on line 712
[12] => CleanUpCacheDirectory() skipped because “/home/www/chorphilharmonie.de/28M8b7qs6A/components/gallery/cache//phpThumbCacheStats.txt” is recently modified in file “phpthumb.class.php” on line 722
[13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file “phpthumb.class.php” on line 969
[14] => $this->thumbnailFormat set to $this->config_output_format “jpeg” in file “phpthumb.class.php” on line 980
[15] => $this->thumbnailFormat set to $this->f “jpeg” in file “phpthumb.class.php” on line 987
[16] => $this->thumbnailQuality set to “90” in file “phpthumb.class.php” on line 997
[17] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/home/www/chorphilharmonie.de/) to $filename (/home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg) resulting in ($AbsoluteFilename = “/home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg”) in file “phpthumb.class.php” on line 1299
[18] => resolvePath: /home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg (allowed_dirs: Array
(
)
) in file “phpthumb.class.php” on line 1140
[19] => resolvePath: iteration, path=/home/www/chorphilharmonie.de/en//28M8b7qs6A/gallery/1/4.jpg, base path = /home/www/chorphilharmonie.de in file “phpthumb.class.php” on line 1159
[20] => resolvePath: stop at component 10 in file “phpthumb.class.php” on line 1175
[21] => resolvePath: stop at path=/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg in file “phpthumb.class.php” on line 1178
[22] => resolvePath: path parsed, over in file “phpthumb.class.php” on line 1184
[23] => $this->sourceFilename set to “/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg” in file “phpthumb.class.php” on line 894
[24] => phpThumb() v1.7.14-201608101311
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 4126
[25] => SetCacheFilename() _src set from md5($this->sourceFilename) “/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg” = “d8a000b2a5cd381329be970bdbbfe252” in file “phpthumb.class.php” on line 3520
[26] => SetCacheFilename() _par set from md5(_dpi150_q90) in file “phpthumb.class.php” on line 3553
[27] => starting ExtractEXIFgetImageSize() in file “phpthumb.class.php” on line 3314
[28] => getimagesize(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) says image is x in file “phpthumb.class.php” on line 3324
[29] => getimagesize("/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg") failed in file “phpthumb.class.php” on line 3357
[30] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file “phpthumb.class.php” on line 1595
[31] => phpThumb_tempnam() returning “/tmp/pThumb4hX6KF” in file “phpthumb.class.php” on line 4355
[32] => ImageMagickSwitchAvailable(thumbnail) = 0 in file “phpthumb.class.php” on line 1531
[33] => IMuseExplicitImageOutputDimensions = 0 in file “phpthumb.class.php” on line 1671
[34] => ImageMagickSwitchAvailable(density) = 0 in file “phpthumb.class.php” on line 1531
[35] => getimagesize(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) FAILED with error “” in file “phpthumb.class.php” on line 1692
[36] => getimagesize(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) failed in file “phpthumb.class.php” on line 1839
[37] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file “phpthumb.class.php” on line 2222
[38] => ImageMagickSwitchAvailable(quality;interlace) = 0 in file “phpthumb.class.php” on line 1528
[39] => ImageMagick called as (convert ‘/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg[0]’ jpeg:’/tmp/pThumb4hX6KF’ 2>&1) in file “phpthumb.class.php” on line 2241
[40] => ImageMagick failed with message (convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory) in file “phpthumb.class.php” on line 2246
[41] => deleting “/tmp/pThumb4hX6KF” in file “phpthumb.class.php” on line 2278
[42] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3364
[43] => SetOrientationDependantWidthHeight() starting with ““x”” in file “phpthumb.class.php” on line 3293
[44] => SetOrientationDependantWidthHeight() setting w=“0”, h=“0” in file “phpthumb.class.php” on line 3309
[45] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file “phpthumb.class.php” on line 3421
[46] => starting SourceImageToGD() in file “phpthumb.class.php” on line 3679
[47] => starting ImageCreateFromFilename(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) in file “phpthumb.class.php” on line 3594
[48] => empty $filename or getimagesize(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) failed in file “phpthumb.class.php” on line 3643
[49] => Populating $rawimagedata in file “phpthumb.class.php” on line 3651
[50] => cannot fopen(/home/www/chorphilharmonie.de/en/28M8b7qs6A/gallery/1/4.jpg) in file “phpthumb.class.php” on line 3662
[51] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file “phpthumb.class.php” on line 3751
[52] => $this->gdimg_source is still empty in file “phpthumb.class.php” on line 3803
[53] => ImageMagickThumbnailToGD() failed in file “phpthumb.class.php” on line 3805
[54] => phpThumb() v1.7.14-201608101311
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 4126
[55] => SourceImageToGD() failed in file “phpthumb.class.php” on line 374
)

1 Like

addendum:

the normal dashboard isn’t showing up at login either (blank page on the right site). I recapitulated what I did in the manager the last two months - it’s only modifications in content, nothing else. No new extra, no change in code of any extra or template, nor any change to the database…

1 Like

External changes might also be the cause of your issue:

  • Software changes on the server (updated database server, updated php version etc)?
  • Do you have enough disk space available?
  • Are there any errors in the PHP log?
  • Does it help if you update to the most recent version of MODX (2.7.2)? Don’t forget to create a backup before updating.
1 Like

I was thinking that the hoster possibly updated php…

hm, it’s php 5.6 as before.

@joshualuckers

  • Software changes… at least nothing our hoster mentioned.

  • Disk space: yep, plenty of, shouldn’t be a problem (about 100 GB)

  • will try to update early in 2020 (no time right now) and will report here if it’s successfull.

Thank’s all for your advices and food for thought!

1 Like

Late tot he game I know, but thought I’d spitball this because I have encountered this by design and want to hide the “uncategorized”

In my case, the “Uncategorized” template variable tab is appearing because I have a TV assigned to the template, saved with NO category assigned.

I have also set this TV to be hidden from the manager (Hide Field from Manager: on TV Input Options tab)

Like I said - this was by design. I am using the TV to store a Fred Content block, so I need it to exist, yet I DON’T want it to be displayed in the manager.

The end result is the TV is indeed hidden from the manager… but I have an ugly empty “Uncategorized” tab there now. So… might solve your question, but not mine :slight_smile: