MODX Community

Manager Modx - 500 Internal Server Error after cleaning hacked site

Hello,

I need help, since I have been cleaning my website from malicious files (hacked since July 2018), everything start to work again except the manager access. I seee only blank page:

https://circle-education.cz/manager/

I see some problem in error log, but i definetely dont know what is missing there. Of course i tried to upload setup and follow the installation process again, but that was not successfull.

Can you look on it and give me a little help where to start with repairing. It is something with Mysql syntax error, some mysql table is missing and some locale cs_cz files ? Here is my error log:

[2019-10-03 14:48:00] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:03] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:05] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42S02 executing statement: 
Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'www.circle-education.cz.tvc' doesn't exist
)

[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:20] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '2' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '2' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '2' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '1' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '1' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '1' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '1' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '1' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '2' ' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1320) Could not get table class for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/xpdo.class.php : 1289) Could not get table name for class: modTemplateVarResource
[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modTemplateVarResource` WHERE  ( `modTemplateVarResource`.`tmplvarid` = '12'' at line 1
)

[2019-10-03 14:48:21] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:22] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:23] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:24] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:24] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:25] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:28] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system
[2019-10-03 14:48:28] (ERROR @ /var/www/www.circle-education.cz/htdocs/www/core/model/modx/modx.class.php : 2490) Could not set the locale. Please check if the locale cs_CZ exists on your system

To me that looks like a few different errors affecting different TVs but I’m not sure. If you’ve recently updated Modx, maybe some TVs are using deprecated settings? This could be especially true if the site is quite old or has been previously imported from Evo. Maybe worth checking but I’m sorry I can’t be more specific.