Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

MODX Revo 3.0.1-pl, Could not load class: modFileHandler from modfilehandler #398

Closed AntonFix closed 1 year ago

AntonFix commented 2 years ago

Hello, MODX Revolution 3.0.1-pl MIGX 3.0.0-alpha5

Have an error message: Error

Full message: `

[2022-06-20 16:39:20] (ERROR @ /home/celestia/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 666)
Could not load class: modFileHandler from modfilehandler

[2022-06-20 16:39:20] (ERROR @ /home/celestia/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1267)
Problem getting service fileHandler, instance of class modFileHandler, from path 
` I've tried (this solution)[https://community.modx.com/t/modx-3-0-1-only-migx-template-variables-appearing-in-resources/5357]: reinstall MODX Revo, CacheClear, have checked path /core/src/Revolution/Processors/ Any ide how to solve it?
shonnarenae commented 1 year ago

This won't necessarily solve this error, but I encountered it while trying to get MigxDB set up on a MODX 3.0.1 site. I found a comment from Bruno elsewhere that said MigxDB would work if the initial files were generated in MODX 2. I tested this by setting up a working MigxDB table in MODX 2.8.3, then I upgraded to MODX 3.0.1 and it still worked, no errors. I was able to copy over the MODX 2 file structure of /core/components/mypackagename/ into my initial MODX 3.0.1 site and got it working.

garryn commented 1 year ago

In case it helps, I've tested this on a MODX 3.0.3 site and the following will fix the errors. Find the $modx->getService() line for modFileHandler in the following files:

core/components/migx/elements/tv/input/migx.php
core/components/migx/model/migx/migxinputrender.class.php
core/components/migx/model/migx/migx.class.php

Update the line to:

$this->modx->getService('fileHandler', '\MODX\Revolution\File\modFileHandler', '', array('context' => $this->modx->context->get('key')));
Bruno17 commented 1 year ago

duplicate of #387 and allready fixed

garryn commented 1 year ago

Can we expect a new Alpha release with this fix?

Bruno17 commented 1 year ago

here it is for testing: https://github.com/Bruno17/MIGX/blob/master/_packages/migx-3.0.0-beta1.transport.zip

valokammi commented 10 months ago

In my Laragon dev enviroment got these errors in modx 3.0.3 and Migx 3.0.0-alpha5. Migx config (MIGX photo album) was imported from Modx 2.8.5. Just copied 2.8.5 Migx config and paste it to 3.0.3 Migx. Everything works fine in 3.0.3 except those two errors. @garryn fixes worked, no more errors.

Bruno17 commented 10 months ago

try the newest, currently 3.0.1-beta2, from here: https://github.com/Bruno17/MIGX/tree/master/_packages

valokammi commented 10 months ago

Installed 3.0.1.beta2. Seems to work as it should.