D
D
dvakarandasha2016-10-17 15:38:37
PHP
dvakarandasha, 2016-10-17 15:38:37

How to fix ModX Revo admin panel after transfer?

Friends, hello. I'm transferring ModX Revo to another hosting - the site is ok, it works. No admin:
sem38mc5.beget.tech/manager

Writes this:
Warning: include_once(/home/s/sem38mc5/sem38mc5.beget.tech/public_html-stage/core/model/modx/modx.class.php): failed to open stream: No such file or directory in /home/s/sem38mc5/sem38mc5.beget.tech/public_html/manager/index.php on line 52

Warning: include_once(): Failed opening '/home/s/sem38mc5/sem38mc5.beget .tech/public_html-stage/core/model/modx/modx.class.php' for inclusion (include_path='.:/usr/share/php') in /home/s/sem38mc5/sem38mc5.beget.tech/public_html /manager/index.php on line 52

Warning: include(/home/s/sem38mc5/sem38mc5.beget.tech/public_html-stage/core/error/unavailable.include.php): failed to open stream: No such file or directory in /home/s/sem38mc5/ sem38mc5.beget.tech/public_html/manager/index.php on line 53

Warning: include(/home/s/sem38mc5/sem38mc5.beget.tech/public_html-stage/core/error/unavailable.include.php): failed to open stream: No such file or directory in /home/s/sem38mc5/sem38mc5.beget.tech/public_html/manager/index.php on line 53

Warning: include(): Failed opening '/home/s/sem38mc5/sem38mc5. beget.tech/public_html-stage/core/error/unavailable.include.php' for inclusion (include_path='.:/usr/share/php') in /home/s/sem38mc5/sem38mc5.beget.tech/public_html/ manager/index.php on line 53 Site temporarily unavailable!

The directories changed everything by mass replacement, so there can be no errors, no extra spaces, etc.
How to be, where to dig?


* lines 49 to 54, where the snag is:

/* include the modX class */
if (!(include_once MODX_CORE_PATH . 'model/modx/modx.class.php')) {
    include MODX_CORE_PATH . 'error/unavailable.include.php';
    die('Site temporarily unavailable!');
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-10-18
@dvakarandasha

You have different paths:
for the executable file /home/s/sem38mc5/sem38mc5.beget.tech/public_html/manager/index.php for the included file
/home/s/sem38mc5/sem38mc5.beget.tech/public_html-stage/core/error /unavailable.include.php
The value of MODX_CORE_PATH is obviously wrong (should be /home/s/sem38mc5/sem38mc5.beget.tech/public_html/core )
Look at config.core.php, it should be there

<?php                                                          
define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
define('MODX_CONFIG_KEY', 'config');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question