PHP Fatal error:

Hello. Tell me what’s the matter. modx revo 3.0.1-pl. The last thing I did: updating packages, deleting those. What I don’t use

21-Oct-2022 10:32:44 Europe/Moscow] PHP Fatal error:  Uncaught Error: Call to a member function make() on null in //public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php:588
Stack trace:
#0 //public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php(324): phpThumbOn->makeDir('/home/n/noreplz...')
#1 //public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php(284): phpThumbOn->makeCacheDir()
#2 //public_html/core/cache/includes/elements/modx/revolution/modsnippet/25.include.cache.php(24): phpThumbOn->run(Array)
#3 //public_html/core/src/Revolution/modScript.php(88): include('/home/n/noreplz...')
#4 //public_html/core/src/Revolution/modX.php(1923): MODX\Revolution\modScript->process(NULL)
#5 //public_html/core/src/Revolution/Filters/modOutputFilter.php(754): MODX\Revolution\modX->runSnippet('phpthumbon', Array)
#6 //public_html/core/src/Revolution/modTag.php(354): MODX\Revolution\Filters\modOutputFilter->filter(Object(ModxPro\PdoTools\Parsing\Tag))
#7 //public_html/core/components/pdotools/src/Parsing/Tag.php(32): MODX\Revolution\modTag->filterOutput()
#8 //public_html/core/components/pdotools/src/Parsing/Parser.php(264): ModxPro\PdoTools\Parsing\Tag->process()
#9 //public_html/core/src/Revolution/modParser.php(218): ModxPro\PdoTools\Parsing\Parser->processTag(Array, false)
#10 //public_html/core/components/pdotools/src/Parsing/Parser.php(73): MODX\Revolution\modParser->processElementTags('[[$shop-block?a...', '<div class="col...', false, false, '[[', ']]', Array, 9)
#11 //public_html/core/src/Revolution/modChunk.php(126): ModxPro\PdoTools\Parsing\Parser->processElementTags('[[$shop-block?a...', '<div class="col...', false, false, '[[', ']]', Array, 10)
#12 //public_html/core/components/pdotools/src/CoreTools.php(438): MODX\Revolution\modChunk->process(Array, '<div class="col...')
#13 //public_html/core/components/pdotools/src/Fetch.php(170): ModxPro\PdoTools\CoreTools->getChunk('shop-block', Array, false)
#14 //public_html/core/cache/includes/elements/modx/revolution/modsnippet/4.include.cache.php(37): ModxPro\PdoTools\Fetch->run()
#15 //public_html/core/src/Revolution/modScript.php(88): include('/home/n/noreplz...')
#16 //public_html/core/src/Revolution/modParser.php(505): MODX\Revolution\modScript->process(Array)
#17 //public_html/core/components/pdotools/src/Parsing/Parser.php(276): MODX\Revolution\modParser->processTag(Array, false)
#18 //public_html/core/src/Revolution/modParser.php(218): ModxPro\PdoTools\Parsing\Parser->processTag(Array, false)
#19 //public_html/core/components/pdotools/src/Parsing/Parser.php(73): MODX\Revolution\modParser->processElementTags('[[87acabe94296c...', '<!DOCTYPE html>...', false, false, '[[', ']]', Array, 9)
#20 //public_html/core/src/Revolution/modTemplate.php(147): ModxPro\PdoTools\Parsing\Parser->processElementTags('[[87acabe94296c...', '<!DOCTYPE html>...', false, false, '[[', ']]', Array, 10)
#21 //public_html/core/src/Revolution/modResource.php(485): MODX\Revolution\modTemplate->process()
#22 //public_html/core/src/Revolution/modResource.php(465): MODX\Revolution\modResource->process()
#23 //public_html/core/src/Revolution/modResponse.php(72): MODX\Revolution\modResource->prepare()
#24 //public_html/core/src/Revolution/modRequest.php(154): MODX\Revolution\modResponse->outputContent(Array)
#25 //public_html/core/src/Revolution/modRequest.php(138): MODX\Revolution\modRequest->prepareResponse()
#26 //public_html/core/src/Revolution/modX.php(1495): MODX\Revolution\modRequest->handleRequest()
#27 //public_html/index.php(63): MODX\Revolution\modX->handleRequest()
#28 {main}
  thrown in //public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php on line 588

This error is caused by the extra phpThumbOn.
Do you use the current version 1.3.5-beta2 ?

Hello. It costs 1.3.1-pl

The version on modx.com isn’t up to date.

Add modstore.pro as a new provider and load the package from there.

Instructions are here:

Hello. Completed.
Error 500 when trying to log in to the page. Now I have written to the hosting to see what the errors are

[21-Oct-2022 15:29:17 Europe/Moscow] PHP Fatal error:  Uncaught Error: Call to a member function make() on null in /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php:653
Stack trace:
#0 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php(337): phpThumbOn->makeDir('/home/n/noreplz...')
#1 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php(300): phpThumbOn->makeCacheDir()
#2 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/cache/includes/elements/modx/revolution/modsnippet/25.include.cache.php(24): phpThumbOn->run(Array)
#3 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modScript.php(88): include('/home/n/noreplz...')
#4 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modX.php(1923): MODX\Revolution\modScript->process(NULL)
#5 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/Filters/modOutputFilter.php(754): MODX\Revolution\modX->runSnippet('phpthumbon', Array)
#6 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modTag.php(354): MODX\Revolution\Filters\modOutputFilter->filter(Object(ModxPro\PdoTools\Parsing\Tag))
#7 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Parsing/Tag.php(32): MODX\Revolution\modTag->filterOutput()
#8 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Parsing/Parser.php(264): ModxPro\PdoTools\Parsing\Tag->process()
#9 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modParser.php(218): ModxPro\PdoTools\Parsing\Parser->processTag(Array, false)
#10 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Parsing/Parser.php(73): MODX\Revolution\modParser->processElementTags('[[$shop-block-p...', '<div class="col...', false, false, '[[', ']]', Array, 9)
#11 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modChunk.php(126): ModxPro\PdoTools\Parsing\Parser->processElementTags('[[$shop-block-p...', '<div class="col...', false, false, '[[', ']]', Array, 10)
#12 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/CoreTools.php(438): MODX\Revolution\modChunk->process(Array, '<div class="col...')
#13 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Fetch.php(170): ModxPro\PdoTools\CoreTools->getChunk('shop-block-page', Array, false)
#14 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/cache/includes/elements/modx/revolution/modsnippet/4.include.cache.php(37): ModxPro\PdoTools\Fetch->run()
#15 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modScript.php(88): include('/home/n/noreplz...')
#16 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/CoreTools.php(386): MODX\Revolution\modScript->process(Array)
#17 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/cache/includes/elements/modx/revolution/modsnippet/10.include.cache.php(141): ModxPro\PdoTools\CoreTools->runSnippet('!pdoResources', Array)
#18 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modScript.php(88): include('/home/n/noreplz...')
#19 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modParser.php(505): MODX\Revolution\modScript->process(Array)
#20 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Parsing/Parser.php(276): MODX\Revolution\modParser->processTag(Array, true)
#21 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modParser.php(218): ModxPro\PdoTools\Parsing\Parser->processTag(Array, true)
#22 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/pdotools/src/Parsing/Parser.php(73): MODX\Revolution\modParser->processElementTags('', '<!DOCTYPE html>...', true, false, '[[', ']]', Array, 9)
#23 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modResource.php(521): ModxPro\PdoTools\Parsing\Parser->processElementTags('', '<!DOCTYPE html>...', true, false, '[[', ']]', Array, 10)
#24 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modResource.php(469): MODX\Revolution\modResource->parseContent()
#25 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modResponse.php(72): MODX\Revolution\modResource->prepare()
#26 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modRequest.php(154): MODX\Revolution\modResponse->outputContent(Array)
#27 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modRequest.php(138): MODX\Revolution\modRequest->prepareResponse()
#28 /home/n/noreplzh/noreplzh.beget.tech/public_html/core/src/Revolution/modX.php(1495): MODX\Revolution\modRequest->handleRequest()
#29 /home/n/noreplzh/noreplzh.beget.tech/public_html/index.php(63): MODX\Revolution\modX->handleRequest()
#30 {main}
  thrown in /home/n/noreplzh/noreplzh.beget.tech/public_html/core/components/phpthumbon/model/phpt

phpThumbOn doesn’t seem to be compatible with MODX 3.

I think the error happens on these lines:

You could try replacing modFileHandler with \MODX\Revolution\File\modFileHandler and modDirectory with MODX\Revolution\File\modDirectory and test if that solves the problem.

And maybe open an issue on github.


If you can’t make it work, then change to another extra to create the thumbnails like for example pThumb.

Hello. It didn’t help. I’ll try thumb. Thanks