VBsupport перешел с домена .ORG на родной .RU
Ура!
Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей
Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже: Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота. Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
Здравствуйте. Уважаемые подскажите как исправить ситуацию. Обновил на сервере PHP с версии 7.0.33 на 7.4.12 и при заходе на форум высвечиваются в шапке и футере информация:
Quote:
PHP Warning: Use of undefined constant nomisc - assumed 'nomisc' (this will throw an Error in a future version of PHP) in ..../global.php(37) : eval()'d code(16) : eval()'d code on line 1
PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(37) : eval()'d code(16) : eval()'d code on line 1
PHP Warning: Use of undefined constant nomisc - assumed 'nomisc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(139) : eval()'d code on line 1
PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(139) : eval()'d code on line 1
PHP Warning: Use of undefined constant post_thanks_show_stats_postbit - assumed 'post_thanks_show_stats_postbit' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 158
PHP Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 163
PHP Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168
PHP Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168
PHP Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 2
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 18
PHP Warning: Use of undefined constant vsatopstats_layout - assumed 'vsatopstats_layout' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 36
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 113
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 18
PHP Warning: Use of undefined constant vsatopstats_layout - assumed 'vsatopstats_layout' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 36
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 113
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179
PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333
PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333
Версия воблы 4.2.6 кодировка utf8
Выключаю продукты: VSa - Advanced Forum Statistics и Post Thank You Hack, всё без ошибок. Как модернизировать данные продукты?
Last edited by Zero Cool : 11-19-2020 at 02:56 PM.
во всех шаблонах воблы и доп стилей (а так же всех шаблонов от сторонних хаков), нужно найти массивы с ключами, которые там без одинарных кавычек, но только в шаблонных условиях
пример (тройка) правильно
Code:
<if condition="$array['var']">code</if>
нЕ правильно
Code:
<if condition="$array[var]">code</if>
ключ var в массиве $array должен быть в одинарных кавычках
все остальные переменные, которые встречаются в шаблонах не трогать
это, к примеру, касается URL правильно
поиск в шаблонах можно делать примерно так
в поле поиска вбить [nomisc] (с квадратными скобками, но без кавычек) => искать во всех шаблонах
вобла должна найти все шаблоны с этим вхождением
затем, поиск по странице и править по примеру из поста выше
как только все поправлено в шаблоне, переходить к след. ошибке
и так далее, пока они не исчезнут на страницах на форуме
@Zero Cool
Продвинутый
Join Date: May 2009
Posts: 71
Версия vB: 4.2.х
Reputation:
Опытный 10
Репутация в разделе: 1
0
Часть ошибок получилось убрать, но большое количество из них осталось.
Например по продукту спасибо:
Quote:
PHP Warning: Use of undefined constant post_thanks_show_stats_postbit - assumed 'post_thanks_show_stats_postbit' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 126
PHP Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 131
PHP Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136
PHP Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136
PHP Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136
И эти переменные я не могу найти((( Подскажите пожалуйста где ещё покопать.
Luvilla
Гость
Posts: n/a
Quote:
Originally Posted by Zero Cool
Подскажите пожалуйста где ещё покопать.
в модулях
post_thanks, например
ставьте "поиск в модулях" и ищите
@Zero Cool
Продвинутый
Join Date: May 2009
Posts: 71
Версия vB: 4.2.х
Reputation:
Опытный 10
Репутация в разделе: 1
0
Quote:
Originally Posted by Luvilla
ставьте "поиск в модулях" и ищите
не совсем понятно как искать в модулях, не могу найти данную возможность