Ошибка 500 на сайте modx

Зачастую при необдуманном выборе хостинг-провайдера, в последующем, при возникновении каких-то ограничений или дискомфорта в использовании хостинга – многие решаются перенести свой сайт в другую хостинг-компанию, например, в Beget.

Но при, казалось бы, простом и успешном переносе сайта, находящегося на CMS MODX Revolution, можно столкнуться с рядом ошибок. Одна из них – «500 Error Site temporarily unavailable».

Решаем проблему «500 Error Site temporarily unavailable» на MODX Revo

Эта же ошибка возникла и у меня при переносе, и сейчас я расскажу, как быстро с ней справиться.

1. Итак, первое, что вам необходимо сделать – это подключиться к вашему сайту по FTP.

2. Затем перейдите в папку /core/ и удалите в ней папку cache.

3. Третьим шагом будет проверка корректности указанных данных для подключения к базе данных. Для этого откройте файл config.inc.php в папке /core/config/.

Здесь нас интересуют эти строки:

$database_type = 'mysql'; // Тип базы данных 
$database_server = 'localhost'; // Сервер базы данных 
$database_user = ''; // Пользователь базы данных 
$database_password = ''; // Пароль базы данных 
$dbase = ''; // Название базы данных 
$database_dsn = 'mysql:host=localhost;dbname=название базы данных;charset=utf8'; 

Тип и сервер базы данных уточните у своего хостинг-провайдера, но чаще всего они именно такие, какие по умолчанию указаны в файле.

Пользователь и название базы данных чаще всего одинаковые, но этот момент так же уточните у своего хостинг-провайдера.

Обратите внимание, что в последней строке также указывается название базы данных. В моем случае все было сделано, но именно в ней я забыл указать название базы данных и из-за этого не мог зайти в панель управления сайтом.

4. И завершающим шагом будет прописывание корректного пути к папкам от корня сервера в файлах:

config.core.php (корневая папка /);
config.inc.php (папка /core/config/);
config.core.php (папка /connectors/);
config.core.php (папка /manager/).

Во всех файлах, вы ищите что то типа:

/home/s/pandogecom/www.pandoge.com/core/

Здесь вам необходимо изменить часть «/home/s/pandogecom/www.pandoge.com» на правильную.

О том, как узнать полный путь от корня сервера, читайте в этой статье.

В некоторых файлах замену нужно произвести в нескольких местах. Не торопитесь, будьте внимательны – и все у вас получится!

0. Посмотрите логи. Возможно тут /core/cache/logs/
1. Удалите полностью всё содержимое папки /core/cache/
2. Проверьте что правильно указали подключение к бд в core/config/config.inc.php
3. Проверьте что правильно указали пути в файлах:
core/config/config.inc.php
config.core.php
connectors/config.core.php
manager/config.core.php

500 ошибка — это общая ошибка, для понимания, и тем более — исправления, необходимо посмотреть логи PHP либо веб-сервера.

Заходите в логи апача
Смотрите ошибку
Исправляйте
Вуаля работает.

Буквально сегодня решил такую же проблему у клиента. Оказалось, что на его хостинге скопилось куча писем (Руцентр, ящики были не ограничены по размеру и редко проверялись) и все свободное место было забито, из-за этого админка и не открывалась. Почистили и админка заработала. Проверьте, может у вас тоже самое.

На сайте http://labeng.ru/ выскочила ошибка. Сайт на MODX. Я просто перенёс все файлы с другого хостинга и поменял логин, пароль, и базу в config.ini.php. В чём может быть проблема? В файле .htaccess удалил строки типа
php_value name value
php_flag name on|off

Сорержание файла до редактирования. Что здесь может быть лишним?

# For full documentation and other suggested options, please see

# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions

# including for unexpected logouts in multi-server/cloud environments

# and especially for the first three commented out rules

#php_flag register_globals Off

#AddDefaultCharset utf-8

#php_value date.timezone Europe/Moscow

Options +FollowSymlinks
RewriteEngine On
RewriteBase /

# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal dummy connection.*$ [NC]
RewriteRule .* - [F,L]

# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin

#RewriteCond %{HTTP_HOST} .

#RewriteCond %{HTTP_HOST} !^www.example.com [NC]

#RewriteRule (.*) http://www.example.com/$1 [R=301,L]

# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets)/*$ - [L]
RewriteRule .(jpg|jpeg|png|gif|ico)$ - [L]

# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# Reduce server overhead by enabling output compression if supported.

#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5

задан 22 дек 2012 в 6:12

Frontender's user avatar

FrontenderFrontender

2,60523 золотых знака65 серебряных знаков115 бронзовых знаков

7

Такая проблема может быть если mysql работает в строгом режиме.
Тогда в логе установки (расположенном в директории /core/cache/logs/install.config..log) появляются ошибки вида

    INSERT INTO `modx_system_settings` (`key`, `value`, `xtype`, `namespace`, `area`) VALUES ('upload_maxsize', '104857600', 'textfield', 'core', 'system')
Array
(
    [0] => HY000
    [1] => 1364
    [2] => Field 'editedon' doesn't have a default value
).

Это означает что в таблицу «modx_system_setting» не были записаны необходимые данные и она пустая.

Для решения можно отредактировать файл /etc/mysql/my.cnf так как описано здесь
http://itif.ru/oshibka-field-xxx-doesnt-have-a-default-value/

Затем надо переустановить modx

ответ дан 26 июн 2016 в 14:14

Gallyamov's user avatar

Сниппетом msProducts выводятся товары из каталога minishop2. Скорее всего сайт перенесён с ошибками, либо что то с конфигурацией сервера.

Как переносили? Все необходимые действия выполнены?:

Должны быть исправлены пути в 4х файлах:

/core/config/config.inc.php
/config.core.php
/connectors/config.core.php
/manager/config.core.php

Проверить права на файлы и папки (644 и 755 соответственно). Проверить на всякий случай в htaccess, чтобы никаких редиректов на старый домен не было.

Удалить содержимое папки — /core/cache/

Отличается ли версия php на новом хостинге? Какая версия MODX?

Step 1 – Solve Modx Revolution Error 500

Is Modx Revolution Error 500 appearing? Would you like to safely and quickly eliminate modx revolution templates which additionally can lead to a blue screen of death?

When you manually edit your Windows Registry trying to take away the invalid modx revo 500 error keys you’re taking a authentic chance. Unless you’ve got been adequately trained and experienced you’re in danger of disabling your computer system from working at all. You could bring about irreversible injury to your whole operating system. As very little as just 1 misplaced comma can preserve your Pc from even booting every one of the way by!

Troubleshooting modx revolution templates Windows XP, Vista, 7, 8 & 10

Simply because this chance is so higher, we hugely suggest that you make use of a trusted registry cleaner plan like CCleaner (Microsoft Gold Partner Licensed). This system will scan and then fix any Modx Revolution Error 500 complications.

Registry cleaners automate the entire procedure of finding invalid registry entries and missing file references (including the Revolution error) likewise as any broken hyperlinks inside of your registry.

Issue with modx revolution templates free

Backups are made immediately prior to each and every scan providing you with the choice of undoing any changes with just one click. This protects you against doable damaging your pc. Another advantage to these registry cleaners is that repaired registry errors will strengthen the speed and performance of one’s procedure drastically.

  • http://modx.com/forums/index.php?topic=18618.0
  • http://stackoverflow.com/questions/5221508/modx-500-server-error-when-trying-to-edit-a-resource-in-manager
  • http://ru.stackoverflow.com/questions/176451/%D0%A7%D1%82%D0%BE-%D1%8D%D1%82%D0%BE-%D0%B7%D0%B0-%D0%9E%D1%88%D0%B8%D0%B1%D0%BA%D0%B0-500-internal-server-error
  • http://bobsguides.com/modx-installation-faq.html

Cautionary Note: Yet again, for those who are not an state-of-the-art consumer it’s very encouraged that you simply refrain from editing your Windows Registry manually. If you make even the smallest error within the Registry Editor it can result in you some serious issues that may even call for a brand new set up of Windows. Not all difficulties attributable to incorrect Registry Editor use are solvable.

Fixed:

Symptoms of Modx Revolution Error 500
“Modx Revolution Error 500” appears and crashes the energetic method window.
Your Personal computer routinely crashes with Modx Revolution Error 500 when running the exact same system.
“Modx Revolution Error 500” is shown.
Windows operates sluggishly and responds little by little to mouse or keyboard input.
Your computer periodically “freezes” for the number of seconds in a time.

Will cause of Modx Revolution Error 500

Corrupt obtain or incomplete set up of Windows Operating System software program.

Corruption in Windows registry from a new Windows Operating System-related application adjust (install or uninstall).

Virus or malware infection which has corrupted Windows method documents or Windows Operating System-related application data files.

Another method maliciously or mistakenly deleted Windows Operating System-related files.

Mistakes this sort of as “Modx Revolution Error 500” can be brought about by several different elements, so it really is important that you troubleshoot every of the achievable brings about to forestall it from recurring.

Simply click the beginning button.
Variety “command” inside the lookup box… Will not hit ENTER nonetheless!
Although keeping CTRL-Shift in your keyboard, hit ENTER.
You’re going to be prompted that has a authorization dialog box.
Click on Of course.
A black box will open having a blinking cursor.
Variety “regedit” and hit ENTER.
Within the Registry Editor, choose the modx revo 500 error connected key (eg. Windows Operating System) you wish to back again up.
Within the File menu, choose Export.
Inside the Preserve In list, pick out the folder in which you wish to save the Windows Operating System backup key.
Inside the File Title box, sort a reputation for the backup file, these types of as “Windows Operating System Backup”.
From the Export Vary box, ensure that “Selected branch” is selected.
Click on Help you save.
The file is then saved by using a .reg file extension.
You now use a backup within your modx revolution templates related registry entry.

Solution to your problem

There are actually some manual registry editing measures that can not be talked about in this article due to the high chance involved for your laptop or computer method. If you want to understand more then check out the links below.

Additional Measures:

One. Conduct a Thorough Malware Scan

There’s a probability the Revolution Modx 500 Error error is relevant to some variety of walware infection. These infections are malicious and ready to corrupt or damage and possibly even delete your ActiveX Control Error files. Also, it’s attainable that your Modx Revolution Error 500 is actually connected to some element of that malicious plan itself.

2. Clean Disk Cleanup

The a lot more you employ your computer the extra it accumulates junk files. This comes from surfing, downloading packages, and any sort of usual computer system use. When you don’t clean the junk out occasionally and keep your program clean, it could turn into clogged and respond slowly. That is when you can encounter an 500 error because of possible conflicts or from overloading your hard drive.

Once you clean up these types of files using Disk Cleanup it could not just remedy Modx Revolution Error 500, but could also create a dramatic change in the computer’s efficiency.

Tip: While ‘Disk Cleanup’ is definitely an excellent built-in tool, it even now will not completely clean up modx revo discovered on your PC. There are numerous programs like Chrome, Firefox, Microsoft Office and more, that cannot be cleaned with ‘Disk Cleanup’.

Since the Disk Cleanup on Windows has its shortcomings it is extremely encouraged that you use a specialized sort of challenging drive cleanup and privacy safety application like CCleaner. This system can clean up your full pc. If you run this plan after each day (it could be set up to run instantly) you are able to be assured that your Pc is generally clean, often operating speedy, and always absolutely free of any Revolution error associated with your temporary files.

How Disk Cleanup can help

1. Click your ‘Start’ Button.
2. Style ‘Command’ into your search box. (no ‘enter’ yet)
3. When holding down in your ‘CTRL-SHIFT’ important go ahead and hit ‘Enter’.
4. You will see a ‘permission dialogue’ box.
5. Click ‘Yes’
6. You will see a black box open up plus a blinking cursor.
7. Variety in ‘cleanmgr’. Hit ‘Enter’.
8. Now Disk Cleanup will start calculating the amount of occupied disk space you will be able to reclaim.
9. Now a ‘Disk Cleanup dialogue box’ seems. There will be a series of checkboxes for you personally to pick. Generally it will likely be the ‘Temporary Files’ that consider up the vast majority of your disk area.
10. Verify the boxes that you want cleaned. Click ‘OK’.

How to repair

3. System Restore can also be a worthwhile device if you ever get stuck and just desire to get back to a time when your computer system was working ideal. It will work without affecting your pics, paperwork, or other crucial information. You can discover this option with your User interface.

modx revo

Manufacturer

Device

Operating System


Modx Revolution Error 500


4.5 out of
5

based on
15 ratings.

 

Понравилась статья? Поделить с друзьями:
  • Ошибка 500 на принтере кэнон
  • Ошибка 500 на принтере canon
  • Ошибка 500 на портале госуслуг
  • Ошибка 500 на ноутбуке hp
  • Ошибка 500 на мой мир