Это мой первый пост на Stackoverflow, но я давно за вами наблюдаю. Спасибо.
Мой вопрос прост. Возможно перенаправление на мой старый сайт после фатальной ошибки в Joomla 4.2.5. Вот файл system/fatal.php. Интересно, в следующих строках кода добавлено ли где-нибудь условие:
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright (C) 2020 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
/**
* Note: This file is only used when unrecoverable errors happen,
* normally at boot up stages, and therefore it cannot be assumed
* that any part of Joomla is available (Eg: a Factory or application)
*
* For "normal" error handling, use error.php not this file.
*
* @var HtmlErrorRenderer $this object containing charset
* @var string $statusText exception error message
* @var string $statusCode exception error code
*/
// Fallback template
$template = '{{statusCode_statusText}}';
// Joomla supplied fatal error page
if (file_exists(__DIR__ . '/fatal-error.html')) {
$template = file_get_contents(__DIR__ . '/fatal-error.html');
**BY ADDIND A CONDITION HERE BUT I'M NOT SO SURE IF THIS WILL CONFLICTING WITH SOMETHING ELSE**
}
/**
* User supplied fatal error page.
*
* Allow overriding Joomla supplied page to prevent changes being wiped on Joomla upgrade.
* We allow it to be a PHP file so that any post-processing, alerting etc can happen.
*/
if (file_exists(__DIR__ . '/fatal-error.custom.php')) {
require __DIR__ . '/fatal-error.custom.php';
return;
}
I could redirect people to my old site?
Thank's reading me!
echo str_replace(
['{{statusCode_statusText}}', '{{statusCode}}', '{{statusText}}'],
[$statusCode . ' - ' . $statusText, $statusCode, $statusText],
$template
);
Подробнее здесь: https://stackoverflow.com/questions/744 ... ld-website
Фатальная ошибка Joomla 4 — перенаправление на мой старый сайт? ⇐ Php
Кемеровские программисты php общаются здесь
-
Anonymous
1728529652
Anonymous
Это мой первый пост на Stackoverflow, но я давно за вами наблюдаю. Спасибо.
Мой вопрос прост. Возможно перенаправление на мой старый сайт после фатальной ошибки в Joomla 4.2.5. Вот файл system/fatal.php. Интересно, в следующих строках кода добавлено ли где-нибудь условие:
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright (C) 2020 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
/**
* Note: This file is only used when unrecoverable errors happen,
* normally at boot up stages, and therefore it cannot be assumed
* that any part of Joomla is available (Eg: a Factory or application)
*
* For "normal" error handling, use error.php not this file.
*
* @var HtmlErrorRenderer $this object containing charset
* @var string $statusText exception error message
* @var string $statusCode exception error code
*/
// Fallback template
$template = '{{statusCode_statusText}}';
// Joomla supplied fatal error page
if (file_exists(__DIR__ . '/fatal-error.html')) {
$template = file_get_contents(__DIR__ . '/fatal-error.html');
**BY ADDIND A CONDITION HERE BUT I'M NOT SO SURE IF THIS WILL CONFLICTING WITH SOMETHING ELSE**
}
/**
* User supplied fatal error page.
*
* Allow overriding Joomla supplied page to prevent changes being wiped on Joomla upgrade.
* We allow it to be a PHP file so that any post-processing, alerting etc can happen.
*/
if (file_exists(__DIR__ . '/fatal-error.custom.php')) {
require __DIR__ . '/fatal-error.custom.php';
return;
}
I could redirect people to my old site?
Thank's reading me!
echo str_replace(
['{{statusCode_statusText}}', '{{statusCode}}', '{{statusText}}'],
[$statusCode . ' - ' . $statusText, $statusCode, $statusText],
$template
);
Подробнее здесь: [url]https://stackoverflow.com/questions/74406783/joomla4-fatal-error-redirection-to-my-old-website[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия