форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Вопросы по vBulletin 4.2.x
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Zero Cool
Продвинутый
Default Ошибка после обновления PHP с 7.0 на 7.4
0

Здравствуйте. Уважаемые подскажите как исправить ситуацию. Обновил на сервере 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.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
2

во всех шаблонах воблы и доп стилей (а так же всех шаблонов от сторонних хаков), нужно найти массивы с ключами, которые там без одинарных кавычек, но только в шаблонных условиях
пример (тройка)
правильно
Code:
<if condition="$array['var']">code</if>
нЕ правильно
Code:
<if condition="$array[var]">code</if>
ключ var в массиве $array должен быть в одинарных кавычках

все остальные переменные, которые встречаются в шаблонах не трогать
это, к примеру, касается URL
правильно
HTML Code:
<a href="showthread.php?t=$thread[threadid]">$thread[title]</a>
нЕ правильно
HTML Code:
<a href="showthread.php?t=$thread['threadid']">$thread['title']</a>
 
 
kerk
k0t
 
kerk's Avatar
Default
2

поиск в шаблонах можно делать примерно так
в поле поиска вбить [nomisc] (с квадратными скобками, но без кавычек) => искать во всех шаблонах
вобла должна найти все шаблоны с этим вхождением
затем, поиск по странице и править по примеру из поста выше
как только все поправлено в шаблоне, переходить к след. ошибке
и так далее, пока они не исчезнут на страницах на форуме
 
 
Zero Cool
Продвинутый
Default
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
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
Подскажите пожалуйста где ещё покопать.
в модулях
post_thanks, например
ставьте "поиск в модулях" и ищите
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Luvilla View Post
ставьте "поиск в модулях" и ищите
не совсем понятно как искать в модулях, не могу найти данную возможность
 
 
Elsa
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
не совсем понятно как искать в модулях
Вот так:

Quote:
Originally Posted by Luvilla View Post
ставьте "поиск в модулях" и ищите
Здесь он:
https://vbsupport.ru/forum/showthread.php?t=35347
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Elsa View Post
спс, но что-то не помогает. Не находит без апострофов переменных в квадратных скобках... всё таки мне нужна помощь.

Last edited by Zero Cool : 11-22-2020 at 03:13 PM.
 
 
Luvilla
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
всё таки мне нужна помощь
какой post_thanks установлен?
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Luvilla View Post
какой post_thanks установлен?
Post Thank You Hack 7.88 Post Thank You Hack
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 08:13 AM.


Powered by vBulletin® Version 3.0.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...