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

Multiple processors not found after installing MODX 3 #14639

Open
Ruslan-Aleev opened this issue Jul 9, 2019 · 26 comments

Comments

@Ruslan-Aleev
Copy link
Contributor

commented Jul 9, 2019

Bug report

Summary

  1. When I go to the "Elements" tab in the tree, an error pops up "Processor not found: element/getnodes"

elements_bug

  1. If I clearing the cache from the "Manage -> Clear Cache" pops up "Processor /public_html/core/src/Revolution/Processors/system/clearcache.php does not exist ..."

cache_bug

  1. If I go to the section "Manage -> Reports -> Error Log" then the page freezes.

logs_bug

  1. In the "Contexts" section, the processor is also not found.

contexts_bug

  1. Also missing trash icon.

How I installed MODX3

I used the hosting web-console:

Then the normal installation started through setup/

p.s. Perhaps these errors have already been described earlier, but I did not see.

Environment

MODX 3

Server information:
Ubuntu
Apache: 2.4.10
MySQL: 5.7.21-20-beget
Nginx: 1.13.4
Perl: 5.26.1
PHP: 5.2 5.3 5.6 7.0 7.1 7.2 7.3
Python: 2.7

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Jul 20, 2019

I'm unable to reproduce any of these errors. Is this still an issue with the latest changes from 3.x?

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 20, 2019

Unfortunately, I can not check yet. As soon as I check the new changes, I’ll let you know.

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 24, 2019

@JoshuaLuckers Unfortunately, there are errors even with the latest changes.
I added the server information to the description.

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 27, 2019

Probably related with #14634

@JoshuaLuckers JoshuaLuckers self-assigned this Jul 27, 2019

@Ibochkarev

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2019

The error does not reproduce.

@meshkov

This comment has been minimized.

Copy link

commented Jul 28, 2019

i can confirm this errors.
in log with 1 error:

[2019-07-28 21:39:22] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/element/getnodes.php does not exist; Array
(
    [action] => element/getnodes
)

Error 2 does not have logs.
In log with error 3 (buttons does not work too):

[2019-07-28 21:40:48] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/system/errorlog/get.php does not exist; Array
(
    [action] => system/errorlog/get
)

[2019-07-28 21:40:50] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/system/errorlog/clear.php does not exist; Array
(
    [action] => system/errorlog/clear
)

Error 4 logs:

[2019-07-28 21:56:58] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/context/getlist.php does not exist; Array
(
    [action] => context/getlist
)

Error 5:
image

And also missing icons in Media Browser:
image

Environment
MODX 3 with last comment installation with composer
php 7.2

@meshkov

This comment has been minimized.

Copy link

commented Jul 28, 2019

And in log i have all time this error:

[2019-07-28 21:55:12] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/resource/gettoolbar.php does not exist; Array
(
    [action] => resource/gettoolbar
)
@Ibochkarev

This comment has been minimized.

Copy link
Contributor

commented Jul 31, 2019

The problem occurs if you install the command with the version of composer-php7.1 install. If without it composer install then everything is ok!

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 31, 2019

Unfortunately not. If you just start composer install the hosting console immediately shows that the php version does not fit and asks to run through composer-php7.1 install.
Perhaps the problem is that in the hosting console version of php is old, I try to change it (but it is not so easy).

@Ibochkarev

This comment has been minimized.

Copy link
Contributor

commented Jul 31, 2019

@Ruslan-Aleev I have 7.1.2 by default just worth

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Aug 1, 2019

i can confirm this errors.
Environment
MODX 3 with last comment installation with composer
php 7.2

Even with the latest changes? Can you also provide a step for step guide so we can try and see if we can reproduce this error?

@meshkov

This comment has been minimized.

Copy link

commented Aug 1, 2019

@JoshuaLuckers I use command composer-php7.2 install, because i have problems with composer install on my hosting like @Ruslan-Aleev
Problem with composer install on my hosting:
This package requires php >=7.0 but your PHP version (5.6.38) does not satisfy that requirement.

@meshkov

This comment has been minimized.

Copy link

commented Aug 1, 2019

Now i tried to use this commands:

composer config platform.php 7.2
composer install

They didn't help either

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 1, 2019

Those hosting support advised me:

  • In the console, write the path to the desired php version alias php=/usr/local/bin/php7.2
  • Or create a .bashrc file and register alias php=/usr/local/bin/php7.2

And I also noticed an error in the console:
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.

But it also did not help.
Hosting beget https://beget.com/en

@Jako

This comment has been minimized.

Copy link
Collaborator

commented Aug 2, 2019

I am quite sure, that the alias is not the right way to set the path to the php application for other processes. The alias is set for the current shell and with .bashrc for new created shells.

Maybe this answer helps: https://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 2, 2019

Here is the answer from the hosting support:
Errors:

[2019-08-02 18:55:32] (ERROR @ /home/a/aleeviz8/m3/public_html/core/src/Revolution/modX.php : 1793) Processor /home/a/aleeviz8/m3/public_html/core/src/Revolution/Processors/element/getnodes.php does not exist; Array
(
    [action] => element/getnodes
)

No such file exists:
/home/a/aleeviz8/m3/public_html/core/src/Revolution/Processors/element/getnodes.php

But such a file exists:
/home/a/aleeviz8/m3/public_html/core/src/Revolution/Processors/Element/GetNodes.php

Since the OS is case sensitive, this error occurs.

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Aug 2, 2019

does it help if your recompile the JS files or disable the JS cache?

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 2, 2019

@JoshuaLuckers No, it doesn’t help, the first thing I looked at was these settings.

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 2, 2019

I will try later the option proposed by @Jako and write about the result.

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Aug 3, 2019

I have tried to reproduce this, a clean install and clean database but everything seems to work fine for me. Are you able to open "Manage --> Reports --> System Info"?

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 3, 2019

Yes, the section Manage --> Reports --> System Info" opens. But if i click on "phpinfo () -> View", i get an error:
{"success":false,"message":"Processor not found: system\/phpinfo","total":0,"data":[],"object":[]}

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Aug 10, 2019

We found the cause: case sensitive filesystem. Actions have to be renamed to match the CamelCase pattern.

bezumkin added a commit to bezumkin/revolution that referenced this issue Aug 13, 2019

@meshkov

This comment has been minimized.

Copy link

commented Aug 15, 2019

I checked #14662 and bugs are gone, but 1 stayed: go to the "Elements" tab in the tree, an error pops up "Processor not found: element/getnodes".
Error log:

[2019-08-15 11:06:40] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/resource/gettoolbar.php does not exist; Array
(
    [action] => resource/gettoolbar
)

[2019-08-15 11:07:05] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1793) Processor /home/site/public_html/core/src/Revolution/Processors/element/getnodes.php does not exist; Array
(
    [action] => element/getnodes
)

@JoshuaLuckers

This comment has been minimized.

Copy link
Collaborator

commented Aug 17, 2019

@meshkov disable the JS cache in system settings or rebuild it

@meshkov

This comment has been minimized.

Copy link

commented Aug 19, 2019

@JoshuaLuckers this did not help, I also tried on a clean install with composer with last comments. @Ruslan-Aleev do you have this bug with "Elements" tab?

@Ruslan-Aleev

This comment has been minimized.

Copy link
Contributor Author

commented Aug 19, 2019

@meshkov Try disabling js compression in the admin panel and clean cache.
I have no more errors, I tested a clean install #14662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.