Ajax loading error выдает при обновлении joomla

Okay, tried that and it didn't work - but now every time I try to bring up my website it tries to bring up a document that says:

Okay, tried that and it didn’t work — but now every time I try to bring up my website it tries to bring up a document that says:

<?php
/**
* @package Joomla.Site
*
* @copyright Copyright (C) 2005 — 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

/**
* Define the application’s minimum supported PHP version as a constant so it can be referenced within the application.
*/
define(‘JOOMLA_MINIMUM_PHP’, ‘5.3.10’);

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, ‘<‘))
{
die(‘Your host needs to use PHP ‘ . JOOMLA_MINIMUM_PHP . ‘ or higher to run this version of Joomla!’);
}

// Saves the start time and memory usage.
$startTime = microtime(1);
$startMem = memory_get_usage();

/**
* Constant that is checked in included files to prevent direct access.
* define() is used in the installation folder rather than «const» to not error for PHP 5.2 and lower
*/
define(‘_JEXEC’, 1);

if (file_exists(__DIR__ . ‘/defines.php’))
{
include_once __DIR__ . ‘/defines.php’;
}

if (!defined(‘_JDEFINES’))
{
define(‘JPATH_BASE’, __DIR__);
require_once JPATH_BASE . ‘/includes/defines.php’;
}

require_once JPATH_BASE . ‘/includes/framework.php’;

// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? JProfiler::getInstance(‘Application’)->setStart($startTime, $startMem)->mark(‘afterLoad’) : null;

// Instantiate the application.
$app = JFactory::getApplication(‘site’);

// Execute the application.
$app->execute();

unless I put index.php at the end of the website — so now I have two problems — I can’t update and can’t pull up the website either.

Help!

0 Пользователей и 1 Гость просматривают эту тему.

  • 9 Ответов
  • 1447 Просмотров

Друзья, столкнулся с проблемой обновления Joomla.
На сайте поставил версию 3.9.6 и после того как поработал с сайтом, добавив материалы не смог обновиться до следующей.
Стандартная ошибка ERROR:  AJAX Loading Error: Forbidden
Думал что проблема с сервером, на локальном сайте обновления ставились без проблем. Но на деле оказалось совсем не так.
Перенеся сайт с сервера на локалку — ошибка повторилась. Обновить не выходит.
Пробовал обновить вручную, но что-то делаю не так. Заменой папок из архива — сайт банально убивается.
Подскажите решение вопроса.

Стандартная ошибка ERROR:  AJAX Loading Error: Forbidden

Akeeba включить все плагины или отключи всё в менеджере расширений с Akeeba  .

Отключил везде — всё равно так.

«Отличная» новость… Тоже уже начал подозревать…
Есть ли советы по тому как их вычислить?

Раздел безопасность форума

Переименуйте .htaccess на время обновления

Записан

Оказываю услуги по Joomla | Миграция на Joomla 3.x | Сопровождение | IT-аутсорсинг | Недорогие домены и хостинг

Тогда ищите вирус/шелл .

По каким признакам можно определить что сайт заражен?

По каким признакам можно определить что сайт заражен?

Вы написали в первом посте, что версия Joomla 3.9.6. Это уже является признаком. Ибо актуальная на данный момент 3.9.12. На вопрос «как найти» ответить можно вопросом «а вы знаете, что искать»? Можете проверить сайт этим.

Записан

Оказываю услуги по Joomla | Миграция на Joomla 3.x | Сопровождение | IT-аутсорсинг | Недорогие домены и хостинг

По каким признакам можно определить что сайт заражен?

Не работает стандартный функционал .
Включите отображение ошибок на максимум в админке Joomla.

The above answers pretty much cover what’s going on, but I hope I have something to add.

When you click the ‘Install the Update’ button in the Joomla Update component, the browser requests a URL based on the configuration variable JConfig::live_site, eg https://www.sitea.com. However, if you have a 301 redirect in your htaccess, you will be load the update page, but from the URL specified in the rewrite, eg https://www.siteb.com.

The update page makes an AJAX request to get components/com_joomlaupdate/restore.php, but it also uses JConfig::live_site as the base of this request, which in this example would be to https://www.sitea.com.

This means you have the update page loading from www.siteb.com, trying to make an AJAX request to www.sitea.com. Most browsers will block this request because of Cross Origin Resource Sharing rules.

The above will even come into play if the update page is non-www and the AJAX is trying to load from a www version of the same domain.

One way to spot whether this is a problem is to look at the URL in the browser when you get onto the page which pops the JavaScript Alert error. If this URL doesn’t match what you have in your configuration.php’s live_site variable, then you need to either modify the htaccess rewrite or modify the live_site URL.

26 апреля 2017 года разработчики популярной CMS Joomla порадовали нас новой версией системы управления контентом 3.7. Многие, в том числе и я поспешили обновить движок Joomla, дабы проверить наличие долгожданных пользовательских полей. Именно процессу обновления и будет посвящен данный урок, а так же выявлению и устранению ошибок возникающих в процессе обновления.

Как обновить CMS Joomla

Обновить Joomla можно несколькими способами – обновиться через панель управления либо записать файлы новой версии напрямую на сервер. Рассмотрим все способы по порядку.

Автоматическое обновление Joomla через панель управления

Когда выходит новая версия Joomla в панели управления мы сразу же получаем об этом уведомление:

Обновление Joomla до новой версии 3.7.4 через панель управления

Нажимаем на кнопку «Обновить сейчас» и попадаем на страницу «Обновление Joomla!» с двумя вкладками «Автоматическое обновление» и «Загрузка и обновление». Кроме того нас настоятельно рекомендуют проверить что установленные расширения совместимы с новой версией Joomla. А я в свою очередь хочу отметить, что если вы работаете со стандартным шаблоном Joomla и вносили в него изменения, то советую сохранить все изменения, иначе после обновления вы их потеряете.

Существуют и другие способы попасть на страницу «Обновление Joomla!»:

  • Перейти в раздел «Система» -> «Панель управления» и в левой нижней части страницы найти надпись «Обслуживание», под которой будут ссылки на новые версии движка и расширений
  • Перейти в раздел «Компоненты» -> «Обновление Joomla!»

Не важно, какой из способов вы выбрали, вы попадете на следующую страницу:

Автоматическое обновление Joomla с версии 3.6.5 до версии 3.7.4

Для автоматического обновления Joomla остается только нажать на кнопку «Установить обновление» (смотрите скриншот выше) и если не возникнет никаких проблем, то движок Joomla будет обновлен.

Альтернативный способ обновления Joomla через панель управления

Если по каким либо причинам автоматическое обновление не доступно, в панели управления Joomla предусмотрен другой вариант, при помощи которого так же можно обновить CMS.

На той же странице «Обновление Joomla!» переходим во вторую вкладку «Загрузка и обновление» и наблюдаем примерно следующую картину: 

Альтернативный способ обновить Joomla через панель управления

Данный способ хорош в том случае, если по каким либо причинам не удается связаться с сервером обновлений Jommla, а причин этому может быть множество.
Все что нам потребуется это выбрать предварительно скаченный файл пакета со своего компьютера и нажать на кнопку «Загрузить и установить». После этого можно наслаждаться новой версией любимой CMS.

Обновление Joomla путем копирования новых файлов прямо на сервер

Последний способ, при помощи которого можно обносить Joomla, это записать файлы новой версии прямо на сервер. Не скажу что данный способ предпочтительный, но иногда бывают ситуации, когда обновить CMS можно только с помощью данного метода.

Для того чтобы обновить Joomla данным способом во избежание непредвиденных ситуаций стоит выполнить ряд действий:

Отключить кэширование (если включено)
Очистить и удалить устаревший кэш (если имеется)
Создать резервные копии файлов и базы данных

После этого скачиваем пакет обновлений (они обычно в формате ZIP) и распаковываем его в корневой каталог сайта.

Когда архив распакуется, заходим в панель управления и наблюдаем следующее — версия Joomla обновилась (о чем свидетельствует номер версии в правом нижнем углу), но система выдает нам неизвестную ошибку:

Ошибка после ручного обновления Joomla до версии 3.7.4

Что делать в данной ситуации? Главное не паниковать, все поправимо. Дело в том, что после записи новых файлов база данных осталась в устаревшем состоянии и это надо исправить.

Исправлять базу данных вручную не потребуется, в Joomla уже все предусмотрено. Переходим в раздел «Расширения» -> «Менеджер расширений» -> «Базы данных» и попадаем на страницу «Менеджер расширений: Проверка базы данных»:

Исправление ошибок базы данных после ручного обновления Joomla до версии 3.7.4

Как и предполагалось, ошибки связаны с базой данных, после такой процедуры обновления она естественно не обновилась. Для того чтобы привести базу данных в актуальное состояние жмем на кнопку «Исправить».

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

В данной ситуации на помощь придет поиск загруженных, но не установленных расширений. Переходим в раздел «Расширения» -> «Менеджер расширений» -> «Найти» и попадаем на страницу «Менеджер расширений: Поиск» на которой представлен список не активных расширений:

Список расширений которые необходимо установить после ручного обновления Joomla до версии 3.7.4

Теперь если перейти на страницу обновлений, то можно заметить, что у нас установлена самая новая версия Joomla.

Но не всегда, я бы даже сказал очень часто, в процессе обновления Joomla возникают ошибки, основные из них мы сейчас и рассмотрим.

Достаточно часто возникают ситуации, когда автоматическое обновление Joomla отказывается работать. Появляются различного рода ошибки, которые не всегда удается победить с первого раза. Конечно, всегда можно воспользоваться последним способом обновления – записать файлы напрямую на сервер, но данный процесс не всегда хорош.

Давайте посмотрим, какие ошибки могут возникнуть в процессе обновления и как от них избавиться.

Ошибка AJAX Loading Error: Not Found

Одна из коварных ошибок, которая возникает в процессе обновления, звучит так AJAX Loading Error: Not Found:

Ошибка при обновлении Joomla "AJAX Loading Error: Not Found" и как от неё избавиться

Не буду вдаваться в подробности, как я нашел причину возникновения данной ошибки, скажу прямо – все дело в конфигурации файла htaccess.

Если вы редактировали данный файл и настроили блокировку прямого доступа к ядру, то данная ошибка появится обязательно. Решений как всегда несколько:

  • временно переименовать файл .htaccess
  • Найти в нем строки кода блокирующие доступ к ядру и закомментировать их.

Первый способ самый простой – переименовываем файл «.htaccess» например, в файл «.htaccess_» и повторяем процесс обновления. Автоматическое обновление должно запуститься без проблем.

Во втором варианте открываем файл .htaccess для редактирования и ищем приблизительно следующие строки (в моем случае это строки с 86 по 98):

Комментируем строки кода в файле .htaccess, которые мешают обновлению Joomla

Комментируем каждую строку при помощи символа #, переходим в панель управления и запускаем автоматическое обновление. После успешного обновления не забудьте вернуть файл .htaccess в исходное состояние.

На этом данный урок подошел к концу, мы рассмотрели три варианта обновления CMS Joomla 3, а так же выявили и победили возможные ошибки, которые могут помешать обновлению Joomla.

Содержание

  1. The Joomla! Forum™
  2. ERROR: AJAX Loading Error trying to update Topic is solved
  3. ERROR: AJAX Loading Error trying to update
  4. Re: ERROR: AJAX Loading Error trying to update
  5. Re: ERROR: AJAX Loading Error trying to update
  6. Re: ERROR: AJAX Loading Error trying to update
  7. Re: ERROR: AJAX Loading Error trying to update
  8. Re: ERROR: AJAX Loading Error trying to update
  9. Can’t update to latest Joomla update
  10. Re: Can’t update to latest Joomla update
  11. Re: Can’t update to latest Joomla update
  12. Re: Can’t update to latest Joomla update
  13. Re: Can’t update to latest Joomla update
  14. Re: Can’t update to latest Joomla update
  15. Re: Can’t update to latest Joomla update
  16. Re: Can’t update to latest Joomla update

The Joomla! Forum™

ERROR: AJAX Loading Error trying to update Topic is solved

ERROR: AJAX Loading Error trying to update

Post by L00ncan » Mon Jun 07, 2021 4:46 pm

Re: ERROR: AJAX Loading Error trying to update

Post by Per Yngve Berg » Mon Jun 07, 2021 7:19 pm

Re: ERROR: AJAX Loading Error trying to update

Post by sozzled » Mon Jun 07, 2021 9:07 pm

I wonder who were the «people» who told you to do that? @Per is right: Max. Execution Time is a PHP setting.

There may be other environmental factors that cause the error(s) you’re having.

You may be interested in using the Forum Post Assistant diagnostic tool and posting the information generated by that tool here, on this forum. Have you considered doing that?

Re: ERROR: AJAX Loading Error trying to update

Post by L00ncan » Mon Jun 07, 2021 9:43 pm

Re: ERROR: AJAX Loading Error trying to update

Post by AMurray » Mon Jun 07, 2021 9:51 pm

The FPA tool will help us help you solve the problem. It’s not something you install. It’s one file, you upload to your server (into the folder containing JOomla) and run the script. it will take you through the steps to generate a report, and the output report will be formatted for this forum.

The diagnostic tool does not identify personal information — only technical information about your joomla install and the hosting environment.

The script will delete itself within a few days after use.

If you can’t locate a php.ini file in the root folder of your hosting (or in the folder joomla installed, then please check with your web host about changing such settings).

It might be something you cannot change yourself, and the web host will need to do so. Ask them to change the setting max_execution_time and set it to say 60 or 120.

For the purpose of answering the question, I am posting Blue Host’s documentation concerning PHP settings: https://www.bluehost.com/help/article/c . th-php-ini

Re: ERROR: AJAX Loading Error trying to update

Post by L00ncan » Tue Jun 08, 2021 1:33 pm

Fell alseep i’m awake now.

alright there’s my fpa report and bluehost have changed the control panel since the update of html5, bluehosts cpanel looks all different now and the PHP Config tool is gone so i can’t use it cause its no longer there

noboss module is also present i made some complaints about this module on the joomla forums i can’t get rid of it no matter what i try

btw:- while we’re on the subject of diagnostic, the only error i can see is with my module mod_raxo_allmode_k2 — i have been having some issues with it and cant figure out what it is, is it related to my php config problem you reckon?

Can’t update to latest Joomla update

Post by L00ncan » Thu Jun 10, 2021 10:52 am

Having problems updating to the latest Joomla update

ERROR: AJAX Loading Error

my .php.ini file displays as follows

Re: Can’t update to latest Joomla update

Post by Webdongle » Thu Jun 10, 2021 12:00 pm

Re: Can’t update to latest Joomla update

Post by L00ncan » Thu Jun 10, 2021 1:41 pm

the error is when i try to update to Joomlas new version from the last version i get the error

ERROR: AJAX Loading Error

Re: Can’t update to latest Joomla update

Post by Webdongle » Thu Jun 10, 2021 1:51 pm

Re: Can’t update to latest Joomla update

Post by L00ncan » Thu Jun 10, 2021 2:03 pm

Re: Can’t update to latest Joomla update

Post by Webdongle » Thu Jun 10, 2021 2:51 pm

Re: Can’t update to latest Joomla update

Post by L00ncan » Thu Jun 10, 2021 2:53 pm

I provided a link to my fpa on my first post

Re: Can’t update to latest Joomla update

Post by Webdongle » Thu Jun 10, 2021 2:58 pm

Basic Environment :: wrote: Joomla! Instance :: Joomla! 3.9.26-Stable (Amani) 13-April-2021
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only ( 444 ) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: development | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.26: Yes | Database Supports J! 3.9.26: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.19.150-76.ELK.el7.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip | System TMP Writable: Yes | Free Disk Space : 681.25 GiB |

PHP Configuration :: Version: 7.4.20 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 32759 | Log Errors To: error_log | Last Known Error: 10th June 2021 08:42:49. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 512M | Max. POST Size: 516M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 256M

Database Configuration :: Version: 5.7.23-23 (Client:mysqlnd 7.4.20) | Database Size: 31.09 MiB | #of Tables with config prefix: 114 | #of other Tables: 0 | User Privileges : GRANT ALL

Detailed Environment :: wrote: PHP Extensions :: Core (7.4.20) | date (7.4.20) | libxml (7.4.20) | openssl (7.4.20) | pcre (7.4.20) | zlib (7.4.20) | filter (7.4.20) | hash (7.4.20) | pcntl (7.4.20) | readline (7.4.20) | Reflection (7.4.20) | SPL (7.4.20) | session (7.4.20) | standard (7.4.20) | cgi-fcgi (7.4.20) | bcmath (7.4.20) | bz2 (7.4.20) | calendar (7.4.20) | ctype (7.4.20) | curl (7.4.20) | dom (20031129) | mbstring (7.4.20) | fileinfo (7.4.20) | ftp (7.4.20) | gd (7.4.20) | gettext (7.4.20) | gmp (7.4.20) | iconv (7.4.20) | imap (7.4.20) | intl (7.4.20) | json (7.4.20) | exif (7.4.20) | mysqlnd (mysqlnd 7.4.20) | odbc (7.4.20) | PDO (7.4.20) | pgsql (7.4.20) | Phar (7.4.20) | posix (7.4.20) | pspell (7.4.20) | SimpleXML (7.4.20) | soap (7.4.20) | sockets (7.4.20) | sqlite3 (7.4.20) | tidy (7.4.20) | tokenizer (7.4.20) | xml (7.4.20) | xmlwriter (7.4.20) | xsl (7.4.20) | zip (1.15.6) | mysqli (7.4.20) | pdo_mysql (7.4.20) | PDO_ODBC (7.4.20) | pdo_pgsql (7.4.20) | pdo_sqlite (7.4.20) | xmlreader (7.4.20) | xmlrpc (7.4.20) | imagick (3.4.3) | SourceGuardian (12.0.0) | ionCube Loader (10.4.5) | Zend Engine (3.4.0) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Potential Ownership Issues: No

Folder Permissions :: wrote: Core Folders :: images/ (755) | components/ ( 775 ) | modules/ ( 775 ) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (—) | tmp/ (755) | administrator/components/ ( 775 ) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |

Elevated Permissions (First 10) :: administrator/components/ ( 775 ) | components/ ( 775 ) | layouts/ ( 775 ) | layouts/noboss/ ( 775 ) | libraries/ ( 775 ) | modules/ ( 775 ) | plugins/system/ ( 775 ) |

Extensions Discovered :: wrote: Components :: Site ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: Admin ::
Core :: com_contenthistory (3.2.0) 1 | com_cache (3.0.0) 1 | com_search (3.0.0) 1 | com_installer (3.0.0) 1 | com_checkin (3.0.0) 1 | com_messages (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_associations (3.7.0) 1 | com_actionlogs (3.9.0) 1 | com_plugins (3.0.0) 1 | com_privacy (3.9.0) 1 | com_banners (3.0.0) 1 | com_finder (3.0.0) 1 | com_redirect (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_login (3.0.0) 1 | com_content (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_cpanel (3.0.0) 1 | com_users (3.0.0) 1 | com_admin (3.0.0) 1 | com_config (3.0.0) 1 | com_modules (3.0.0) 1 | com_templates (3.0.0) 1 | com_menus (3.0.0) 1 | com_fields (3.7.0) 1 | com_tags (3.1.0) 1 | com_media (3.0.0) 1 | com_categories (3.0.0) 1 | com_languages (3.0.0) 1 | com_ajax (3.2.0) 1 |
3rd Party:: COM_K2 (2.10.3) 1 | System — Accordeon Menu CK (3.0.5) 1 | Accordeon Menu CK — Articles by dat (3.0.4) ? | Accordeon Menu CK — Hikashop (3.0.0) 1 | Accordeon Menu CK — Virtuemart (3.0.0) 1 | Accordeon Menu CK — K2 (3.0.0) 1 | Accordeon Menu CK — Adsmanager (3.0.0) 1 | Accordeon Menu CK — Categories (3.0.0) 1 | Accordeon Menu CK — Joomshopping (3.0.0) 1 | Accordeon Menu CK (3.0.5) 1 | ACCORDEONMENUCK (3.0.5) 1 | sh404SEF (4.23.1.4249) 1 | plg_installer_sh404sef (4.23.1.4249) 1 | sh404sef — Offline code plugin (4.23.1.4249) 1 | sh404sef — Similar urls plugin (4.23.1.4249) 1 | PLG_SH404SEFCORE_SH404SEFSOCIAL (4.23.1.4249) 1 | sh404sef — Analytics plugin (4.23.1.4249) 1 | sh404sef — Default component suppor (4.23.1.4249) ? | plg_system_shlib (0.4.0.716) 1 | sh404sef — System plugin (4.23.1.4249) 1 | sh404sef — System mobile template s (4.23.1.4249) ? | JCH Optimize (6.4.2) 1 | Akeeba ( 8.0.6) 1 | System — Mobile Menu CK (1.3.5) 1 | com_mobilemenuck (1.3.5) 1 | com_googlesearch_cse (3.0.7) 1 | Slideshow CK (2.3.0) 1 | com_slideshowck (2.3.0) 1 | COM_FAVICON (2.0.0) 1 |

Modules :: Site ::
Core :: mod_footer (3.0.0) 1 | mod_login (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_random_image (3.0.0) 1 | mod_search (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_related_items (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_tags_popular (3.1.0) 1 |
3rd Party:: K2 User (2.10.3) 1 | Module jQuery Reel (1.0.1) 1 | Slideshow CK (2.3.0) 1 | K2 Tools (2.10.3) 1 | K2 Comments (2.10.3) 1 | googleSearch (CSE) (3.0.2) 1 | RAXO Columns Module Layout (4.0) ? | RAXO Bricks Module Layout (4.0) ? | RAXO List Module Layout (4.0) ? | RAXO Default Module Layout (4.0) ? | RAXO All-mode K2 (1.10) 1 | K2 Users (2.10.3) 1 | mod_jux_megamenu (3.3.0) 1 | K2 Content (2.10.3) 1 | Accordeon Menu CK (3.0.5) 1 |

Modules :: Admin ::
Core :: mod_login (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_toolbar (3.0.0) 1 | mod_status (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_popular (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_version (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_quickicon (3.0.0) 1 |
3rd Party:: K2 Stats (admin) (2.10.3) 1 | K2 Quick Icons (admin) (2.10.3) 1 |

Libraries ::
Core ::
3rd Party:: file_fof40 (4.0.6) ? | Regular Labs Library (20.12.24168) 1 |

Plugins ::
Core :: plg_fields_text (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_pagebreak (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_content_finder (3.0.0) 0 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_webinstaller (2.1.2) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 0 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3. 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_system_sef (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_redirect (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_sessiongc (3.8.6) 1 | plg_system_logrotation (3.9.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 1 | plg_system_updatenotification (3.5.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 |
3rd Party:: AllVideos (by JoomlaWorks) (6.1.0) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | plg_installer_sh404sef (4.23.1.4249) 1 | Accordeon Menu CK — Articles by dat (3.0.4) ? | Accordeon Menu CK — Hikashop (3.0.0) 1 | Accordeon Menu CK — Virtuemart (3.0.0) 1 | Accordeon Menu CK — K2 (3.0.0) 1 | Accordeon Menu CK — Adsmanager (3.0.0) 1 | Accordeon Menu CK — Categories (3.0.0) 1 | Accordeon Menu CK — Joomshopping (3.0.0) 1 | plg_quickicon_akeebabackup ( 8.0.6) 1 | Search — K2 (2.10.3) 0 | sh404sef — Offline code plugin (4.23.1.4249) 1 | sh404sef — Similar urls plugin (4.23.1.4249) 1 | PLG_SH404SEFCORE_SH404SEFSOCIAL (4.23.1.4249) 1 | sh404sef — Analytics plugin (4.23.1.4249) 1 | PLG_EDITORS-XTD_MODULESANYWHERE (7.12.0) 1 | User — K2 (2.10.3) 1 | sh404sef — Default component suppor (4.23.1.4249) ? | sh404SEF — K2 (1.6.0) 1 | plg_system_shlib (0.4.0.716) 1 | sh404sef — System plugin (4.23.1.4249) 1 | System — Mobile Menu CK (1.3.5) 1 | Scroll To CK (1.1.11) 0 | PLG_SYSTEM_MODULESANYWHERE (7.12.0) 1 | System — K2 (2.10.3) 1 | plg_system_favicon (2.0.0) 1 | System — Accordeon Menu CK (3.0.5) 1 | PLG_SYSTEM_JCH_OPTIMIZE (6.4.2) 1 | sh404sef — System mobile template s (4.23.1.4249) ? | System — JUX Mega Menu Framework (3.3.0) 1 | PLG_SYSTEM_REGULARLABS (20.12.24168) 1 | PLG_SYSTEM_BACKUPONUPDATE ( 8.0.6) 0 | PLG_ACTIONLOG_AKEEBABACKUP (8.0.6) 0 | plg_editors_codemirror (5.60.0) 1 | plg_editors_tinymce (4.5.12) 1 | plg_finder_k2 (2.10.3) 1 |

Источник

A regular client who subcontracts work to us emailed us that he wasn’t able to update the website of one of his clients from Joomla 3.8.3 to Joomla 3.8.5. He told us that the update would fail halfway through with the following error:

AJAX Loading Error: error

Of course, the first thing that we thought was a blocked restore.php file, despite the fact that the error was a bit different. So, we checked whether there was a rule in the .htaccess file blocking direct execution of PHP files other than the index.php file, but, not only we didn’t find any blocking rule, we didn’t find any .htaccess file at all. Additionally, all the permissions on the restore.php file were correct as we were able to directly access the file from our browser by using the following URL: http://www.[ourclientjoomlawebsite].com/administrator/components/com_joomlaupdate/restore.php (it was returning the following json ###{“status”:false,”message”:”Invalid login”}###).

So, we tried to update the website ourselves (after backing up the filesystem and the database) and, at first, everything went smoothly. However, at exactly 56% of the update process, the progress stopped. About 30 seconds later, we saw the same error that our client was seeing. Not only that, we were blocked from accessing the website for about 5 minutes (we checked the website through a proxy and it was working there). Hmmm!

We were a bit suspicious of this whole 5 minute block thing, but, at first, we didn’t think of it much as we assumed it was just a coincidence. So, we did a research on the issue (yes, sometimes we rely on other people’s answers to the problem), and some were stating that the presence of a $live_site value in the configuration.php file was causing the same problem for them. So, we checked the configuration.php file under the main directory of the Joomla website, and, to our disappointment, the $live_site value was already empty. Others claimed that clearing the cache may solve the problem, so, we cleared the Joomla cache (there was about 1 GB of cached files, which was quite a lot, even more so when you take into consideration that the website was extremely simplistic), and then we tried the update again, but it didn’t work. Not only it didn’t work, but we were also blocked again. Double hmmm!

Once we were unblocked, we tried the update using Google Chrome while having the console open (you can open the console in Google Chrome by pressing F12), and we saw the following messages:

update.js?73ddd8fdd62da3333508a24283f9db89:171 XHR finished loading: POST "https://www.[ourclientjoomlawebsite].com/administrator/components/com_joomlaupdate/restore.php".
update.js?73ddd8fdd62da3333508a24283f9db89:171 POST https://www.[ourclientjoomlawebsite].com/administrator/components/com_joomlaupdate/restore.php net::ERR_CONNECTION_TIMED_OUT
update.js?73ddd8fdd62da3333508a24283f9db89:171 XHR failed loading: POST "https://www.[ourclientjoomlawebsite].com/administrator/components/com_joomlaupdate/restore.php".

Now, if you read the second line a bit more closely, you will notice that the browser is complaining about timing out while posting to the restore.php file. We immediately thought of 2 things that may have been causing the issue:

  • A small value of the max_execution_time PHP setting.
  • A weird rule triggered by an application firewall, such as ModSecurity.

We were able to immediately dismiss the first issue above as the Joomla backend was reporting 300 seconds as the value of the max_execution_time. Still, just to be 100% sure, we added a .user.ini file under the main directory of the Joomla website and then we added to that file the following line:

max_execution_time = 300

We tried the update again (just in case), and, unsurprisingly, it failed.

So that left us with the firewall theory, which made the most sense, since our IP was blocked temporarily every time we tried to update the site, which was a huge sign of a firewall’s foul play. Unfortunately, we were not able to confirm that theory because we didn’t have root access to the server, and neither did the client (and nor the client’s client, for that matter). So, we communicated our findings to the client, and asked him to route these findings to the host. The host was immediately responsive, and stated that a security module called OSSEC (which we have never heard of before) caused this issue. They then whitelisted the client’s IP and he was able to finally perform the update. Hooray!

So, our dear, dear reader, if you are seeing an AJAX Loading Error: error popup when you are trying to update your Joomla website, then check your max_execution_time value in PHP’s settings. If it’s too low, then increase it, and see if the problem is solved. If not, then clear your Joomla cache and make sure that $live_site has an empty value in the configuration.php. If that doesn’t solve the problem, then check your server for any security rules being triggered. If that also fails to solve the problem, then you can always contact us. We will fix the problem for you quickly, cleanly, and affordably!

Reason #1. Inadequate values in max_execution_time and memory_limit

You may face the «AJAX Loading Error: Not Found» error if in your php.ini the max_execution_time and memory_limit PHP parameters are too low.

Contact your web hosting team and ask them to set max_execution_time = 120 and memory_limit = 128M.


Reason #2. Missing files

One reason Joomla may give you the AJAX Loading Error is missing files or folders in the /administrator/com_joomlaupdate folder:

01

To check if this is the case:

  • Create your site backup.
  • Extract your Joomla installation pack to the root of your offending website.
  • Run the Joomla update again.

If the error still persists, read on.


Reason #3. Restrictive server

You may also bump into the AJAX Loading Error due to overly restrictive server configuration. Your server simply denies requests to the Joomla update extraction script.

Try this workaround:

  • In your site root, rename .htaccess to something like .htaccess-ORIGINAL.
  • Run the Joomla update
  • Rename the .htaccess-ORIGINAL back to .htaccess

If this doesn’t do the job, then contact your hosting support team and ask them to allow your Joomla site to work with Joomla update script.

If the error still remains, try the solution below.


Reason #4. Wrong files permissions

Another reason for the AJAX loading error is wrong permissions or/and ownership for the /administrator/com_joomlaupdate/ files and folders.

To fix this, do the following.

  • Download «Admin Tools Core» component from akeebabackup.com:

02 download admin tools core

  • Install the «Admin Tools Core» with your Joomla extension manager.
  • Go to Components >> Admin Tools:

03 components admin tools

  • You will see the «Admin Tools Core» control panel. Click on the Fix Permissions button:

04 fix permissions button

  • Now go to Components >> Joomla! Update and you should be all set to run your Joomla update.
Rate this item

  • 1
  • 2
  • 3
  • 4
  • 5

(0 votes)


Понравилась статья? Поделить с друзьями:

Читайте также:

  • After effects ошибка 127
  • After effects неизвестная ошибка рисования mac os
  • After effects код ошибки 1609629695
  • After effects как изменить цвет сплошной заливки
  • After effects как изменить цвет солида

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии