VBsupport перешел с домена .ORG на родной .RU
Ура!
Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей
Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже: Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота. Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
Location: Кинешма (Волжский город Ивановской области), Россия )
Posts: 311
Версия vB: 3.8.x
Пол:
Reputation:
Опытный 93
Репутация в разделе: 57
Проектные инструменты на новом пыхе - кто переведёт?
0
Сегодня переделывал, но ставить надо под 5.6, иначе крашнется. Вот ошибка:
Code:
ParseError: syntax error, unexpected 'new' (T_NEW) in ....\admincp\plugin.php(2001) : eval()'d code on line 450
Trace Data:
#1 : vbstop() called in ....\includes\class_core.php on line 3834
#2 : vbulletin_exception_handler() called in on line
Var Type:
[ NULL ]
Var Data:
null
На 7.2-7.4 поганится админка, белая страница и Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP)
Кто поправит и переведёт?
Ах да, гзип обязательно отрубить!
Last edited by QuQunta : 03-29-2024 at 06:39 PM.
Reason: Добавлено сообщение
Location: Кинешма (Волжский город Ивановской области), Россия )
Posts: 311
Версия vB: 3.8.x
Пол:
Reputation:
Опытный 93
Репутация в разделе: 57
0
ВотЪ
@Лис
Эксперт
Join Date: Sep 2017
Location: Питер, Россия
Posts: 1,821
Версия vB: 3.8.4
Пол:
Reputation:
Expert 1376
Репутация в разделе: 314
0
Quote:
Originally Posted by QuQunta
\admincp\plugin.php(2001) : eval()'d code on line 450
Уже написал тебе, по этой строке убери амперсанд, и смотри что там.
@QuQunta
Продвинутый
Join Date: Jul 2023
Location: Кинешма (Волжский город Ивановской области), Россия )
Posts: 311
Версия vB: 3.8.x
Пол:
Reputation:
Опытный 93
Репутация в разделе: 57
0
Quote:
Originally Posted by Лис
убери амперсанд
прикол в том, что амперсанда там... нет. Вообще нет
На 450
PHP Code:
$plugin = array('executionorder' => 5);
На 2001 попадает этот кусок:
PHP Code:
if (isset($arr['codes']['code']) AND is_array($arr['codes']['code'])) { $codes =& $arr['codes']['code']; if (!isset($codes[0])) { $codes = array($codes); }
// run each of the codes foreach ($codes AS $code) { // Run if: code version is * (meaning always run), no version // previously installed, or if the code is for a newer version // than is currently installed if ($code['version'] == '*' OR $installed_version === null OR is_newer_version($code['version'], $installed_version)) { eval($code['installcode']); } } }
@QuQunta
Продвинутый
Join Date: Jul 2023
Location: Кинешма (Волжский город Ивановской области), Россия )
Location: Кинешма (Волжский город Ивановской области), Россия )
Posts: 311
Версия vB: 3.8.x
Пол:
Reputation:
Опытный 93
Репутация в разделе: 57
0
@Лис, поставился, прада и без этого. А вот то, что админка исчезает -- это плохо
@Лис
Эксперт
Join Date: Sep 2017
Location: Питер, Россия
Posts: 1,821
Версия vB: 3.8.4
Пол:
Reputation:
Expert 1376
Репутация в разделе: 314
0
Quote:
Originally Posted by QuQunta
А вот то, что админка исчезает -- это плохо
Ну ошибки решать надо.
В логах обычно все пути есть.
Quote:
Originally Posted by QuQunta
Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP)
Обычно указывает лог где искать и исправлять такие ошибки.
Ничего сложного.
Идешь по указке и ставишь THIS_SCRIPT с одинарные кавычки.
Сохраняешь. Радуешься.
@QuQunta
Продвинутый
Join Date: Jul 2023
Location: Кинешма (Волжский город Ивановской области), Россия )
Posts: 311
Версия vB: 3.8.x
Пол:
Reputation:
Опытный 93
Репутация в разделе: 57
0
Самое интересное, логи пустые. Только вот этот варн. Да и вообще, оно отдаёт всё нормально. Но не отображается
QuQunta добавил 29.03.2024 в 20:35
Все логи. [29-Mar-2024 20:33:00 Europe/Moscow] PHP Warning: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in W:\domains\vbtesting.org\includes\init.php(322) : eval()'d code on line 1
Что за хрень...
При сём страница отдаётся, но не отображается.
HTML Code:
<br /><b>Warning</b>: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in <b>W:\domains\vbtesting.org\includes\init.php(322) : eval()'d code</b> on line <b>1</b><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru"><head><script type="text/javascript"><!--
// get out of any containing frameset
if (self.parent.frames.length != 0)
{
self.parent.location.replace(document.location.href);
}
// --></script><title>Forums Панель администратора</title></head><body><frameset cols="195,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0"><frame src="index.php?do=nav" name="nav" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0" border="no" /><frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0"><frame src="index.php?do=head" name="head" scrolling="no" noresize="noresize" frameborder="0" marginwidth="10" marginheight="0" border="no" /><frame src="index.php?do=home" name="main" scrolling="yes" frameborder="0" marginwidth="10" marginheight="10" border="no" /></frameset></frameset></body></html>
Last edited by QuQunta : 03-29-2024 at 09:35 PM.
Reason: Добавлено сообщение
@Лис
Эксперт
Join Date: Sep 2017
Location: Питер, Россия
Posts: 1,821
Версия vB: 3.8.4
Пол:
Reputation:
Expert 1376
Репутация в разделе: 314
1
Quote:
Originally Posted by QuQunta
При сём страница отдаётся, но не отображается.
Она не отображает фрейм. Исправь все косяки с http.