Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AntonFix opened this issue Jun 20, 2022 · 8 comments
Closed

Comments

@AntonFix
Copy link

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
Copy link

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
Copy link

garryn commented Jan 24, 2023

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
Copy link
Owner

Bruno17 commented Jan 25, 2023

duplicate of #387 and allready fixed

@Bruno17 Bruno17 closed this as completed Jan 25, 2023
@garryn
Copy link

garryn commented Jan 26, 2023

Can we expect a new Alpha release with this fix?

@Bruno17
Copy link
Owner

Bruno17 commented Jan 26, 2023

@valokammi
Copy link

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
Copy link
Owner

Bruno17 commented Aug 15, 2023

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

@valokammi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants