Modx ошибка 500 при редактировании ресурса

Решив обновить MODX Revolution 2.3.5-pl  на MODX Revolution 2.5.2 я столкнулся с проблемой. При создании нового ресурса или при редактировании старого, браузер выдает ошибку 500. Другие же страницы работают нормально. Логи системы указывали на то, что виновато было расширение TinyMCE. Данное расширение давно не поддерживается (с 2012 года), и давно нуждается в патче обновлений. Проблема решается:

  • Установкой другого визуального редактора, например TinyMCE Rich Text Editor.
  • или перейдите к исходному коду компонента «core/components/tinymce/tinymce.class.php», и закомментируйте 231 строку $this->config[‘resource’] = $this->config[‘resource’]->toArray();

I’m running MODx Revolution 2.0.8-pl (traditional) and get a blank page (500 Server Error) when trying to edit most resources in the Manager. The frontend and other Manager functions are all working fine.

I first noticed the issue after adding ~600 new resources to the site. (Unfortunately, I get the error on both new and old resources)

pnuts's user avatar

pnuts

58.4k11 gold badges87 silver badges140 bronze badges

asked Mar 7, 2011 at 15:30

Chris Voth's user avatar

You should really just post this on the MODX forum… I bet there’s more people with knowledge there, lol.

Server 500 errors are often caused by wrong permissions, for example files that are set to 777 while your server set up only allows 755.

answered Mar 7, 2011 at 18:07

Mark Hamstra's user avatar

Just faced this same issue and it ended up being that I uninstalled TinyMCE but the plugin file was still enabled.

answered Apr 1, 2011 at 19:48

Roger's user avatar

RogerRoger

111 bronze badge

I had to re-install TinyMCE in the most recent version after my MODX upgrade.

answered Mar 17, 2017 at 22:11

Matthias Wuttke's user avatar

Matthias WuttkeMatthias Wuttke

1,9822 gold badges21 silver badges38 bronze badges

I increased the PHP memory limit to 64MB and the problem disappeared.

answered Mar 7, 2011 at 17:31

Chris Voth's user avatar

Chris VothChris Voth

8535 gold badges13 silver badges22 bronze badges

In my case, my MODX website works but /manager throws a 500 error.

It happened after I’ve removed /www/core/cache/*

First of all, I check logs:
sudo tail -100 /var/log/apache2/error.log

I see this error:
Smarty: unable to create directory /var/www/html/core/cache/mgr/smarty/default

So to fix this I added permissions:
sudo chown -R www-data:www-data /var/www/*

answered Jan 27, 2021 at 22:06

Dmitry Grinko's user avatar

Dmitry GrinkoDmitry Grinko

13.9k14 gold badges63 silver badges87 bronze badges

  • Главная/
  • Вопрос — ответ

Версия MODX: Revolution

Добрый день, коллеги. Столкнулся с ситуацией, когда MODX при попытке создать ресурс в админке выдает ошибку 500. Редактирование ранее созданных ресурсов-проблем нет. Быстро создать ресурс-тоже ок, сохраняет, редактирует и прочее. А именно просто создать ресурс не дает. лог при этом чист.
Пробовал искать решение в сети, но все не то. Кто-то сталкивался с этим?

  • Теги:
  • ошибка 500


Дима

Комментарии (6)

  1. Алексей Либер 26.11.2018 07:27 #

    После чего такое произошло? Плагин поставили, версию пыхи подняли, еще что?


    1. Дима 26.11.2018 13:22 #

      В том и дело, что все работало нормально. Единственное, что брал плагин отсюда, для удаления index из URL вложенных в index страниц в дереве ресурсов. Но вот он что-то не заработал. Я его потом удалил, а с проблемой 500-й ошибки столкнулся вот на днях только. Но сказать точно была ли такая проблема уже до плагина сложно. Попробовал снова его добавить, но проблема не решилась. Странная штука, конечно.


  2. Олег 26.11.2018 10:37 #

    Лог ошибок на сервере смотрите, там должна быть информация.


    1. Дима 26.11.2018 13:23 #

      Включил логи, но пока они пустые. Хостинг Beget. Ну либо я что-то не так делаю. Выбрал соответствующий домен, включил журнал логов ошибок и сохранил. Попробовал сформировать лог от 01.11.2018 числа, но он пуст.

      Комментарий был изменён 26.11.2018 в 13:24


      1. Олег 26.11.2018 13:26 #

        Техподдержке задайте вопрос, как логи посмотреть, помогут


        1. Дима 26.11.2018 13:53 #

          Удалось получить лог. Выдает такое содержимое:

          [26-Nov-2018 14:59:09 Europe/Moscow] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /home/i/***.ru/core/cache/includes/elements/modplugin/18.include.cache.php:19
          Stack trace:
          #0 /home/i/***.ru/core/model/modx/modscript.class.php(70): include()
          #1 /home/i/***.ru/core/model/modx/modx.class.php(1608): modScript->process(NULL)
          #2 /home/i/***.ru/public_html/fqfLcICOAiAJvTYg1lPrtBthiPVYKS/controllers/default/resource/resource.class.php(160): modX->invokeEvent('OnDocFormPreren...', Array)
          #3 /home/i/***.ru/core/model/modx/modmanagercontroller.class.php(158): ResourceManagerController->firePreRenderEvents()
          #4 /home/i/***.ru/core/model/modx/modmanagerresponse.class.php(74): modManagerController->render()
          #5 /home/i/***.ru/core/model/modx/modmanagerrequest.class.php(183): modManagerResponse->outputContent(Array)
          #6 /home/i/***.ru/core/model/modx/modmanagerrequest.class.php(131): modManagerRequest->prepareResponse()
          #7 /home/i/***.ru/public_html/fqfLcICOAiAJvTYg1lPrtBthiPVYKS/index.php(58): modManagerRequest->handleRequest()
          #8 {main}
            thrown in /home/i/***.ru/core/cache/includes/elements/modplugin/18.include.cache.php on line 19

Зачастую при необдуманном выборе хостинг-провайдера, в последующем, при возникновении каких-то ограничений или дискомфорта в использовании хостинга – многие решаются перенести свой сайт в другую хостинг-компанию, например, в 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» на правильную.

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

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

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 out of
5

based on
21 ratings.

 

Понравилась статья? Поделить с друзьями:
  • Modx ошибка 403 доступ запрещен
  • Mk10 ошибка при запуске приложения 0xc0000906
  • Modx вывод ошибок php
  • Modx ticket ошибка
  • Modx revolution ошибка 500