форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.6.x > vBulletin [3.6] Troubleshooting and Problems
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
KAS
Продвинутый
Exclamation Переход на PHP 5.3.6
0

Приветствую. В общем такая проблема. Форум установлен на сервере где стоит PHP 4.4.6 я сделал полный дамп всего и теперь пытаюсь завести форум на PHP 5.3.6 и он соответственно не работает.
Что нужно поменять в файлах движка, чтобы он нормально заработал?
Движок версии 3.6.7.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Centurion
Эксперт
vBSSecurity
 
Centurion's Avatar
Default
0

обновить до 3.8.5~7
 
 
KAS
Продвинутый
Default
0

Quote:
Originally Posted by Centurion View Post
обновить до 3.8.5~7
А без обновления никак? У меня много модулей которые просто не пойдут на линейке 3,8
 
 
Luvilla
Гость
Default

Quote:
Originally Posted by KAS View Post
У меня много модулей которые просто не пойдут на линейке 3,8
на самом деле таких модулей не так уж и много. Подавляющее большинство написанного под 3.6 продолжает летать на 3.8
кое-что придётся допилить

Quote:
Originally Posted by KAS View Post
и он соответственно не работает.
"не работает" - это слишком широко
что говорит?
 
 
KAS
Продвинутый
Default
0

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 46
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 94
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 98
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 106
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 117
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:&v\www\forum\includes\init.php on line 121
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 129
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&v\www\forum\includes\init.php on line 198
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\init.php on line 411
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\&\www\forum\includes\class_core.php on line 4757
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&\www\forum\global.php' ) ..\index.php:53
3 0.0164 897736 require_once( 'C:\&\www\forum\includes\init.php' ) ..\global.php:18

( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\&\www\forum\includes\class_core.php on line 3071
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:&\VertrigoServ\www\forum\global.php' ) ..\index.php:53
3 0.0164 897736 require_once( 'C:\&\www\forum\includes\init.php' ) ..\global.php:18
4 0.0386 1573328 vB_Registry->vB_Registry( ) ..\init.php:46
5 0.0386 1574016 vB_Input_Cleaner->vB_Input_Cleaner( ) ..\class_core.php:4757

Warning: require_once(/home/blogs/plugins/init_startup.php) [function.require-once]: failed to open stream: No such file or directory in \includes\init.php(326) : eval()'d code on line 35

( ! ) Fatal error: require_once() [function.require]: Failed opening required '/home/blogs/plugins/init_startup.php' (include_path='.;C:\&\Smarty') in C:&\www\forum\includes\init.php(326) : eval()'d code on line 35
Call Stack
# Time Memory Function Location
1 0.0053 494504 {main}( ) ..\index.php:0
2 0.0108 761000 require_once( 'C:\&v\www\forum\global.php' ) ..\index.php:53
3 0.0164 897736 require_once( 'C:\&rv\www\forum\includes\init.php' ) ..\global.php:18
4 0.1355 4780232 eval( ''\r\n//////////////////////////////////////////////////////////\r\n// Friends and/or Buddies in Profile\r\n//////////////////////////////////////////////////////////\r\n\r\n// usage of phrases in phrasegroups does only \r\n// work with this hook here\r\n\r\nif (THIS_SCRIPT == "member") {\r\n\tglobal $phrasegroups;\r\n\t\r\n\t$phrasegroups =\r\n\t\tarray_merge(\r\n\t\t\t$phrasegroups,\r\n\t\t\tarray(\r\n\t\t\t\t\'fnb_profile\'\r\n\t\t\t)\r\n\t\t);\r\n}\r\n\t\t\t\r\n// PhotoPlog\r\nif (is_array($phrasegroups) && !in_array(\'photoplog\',$phrasegroups))\r\n{\r\n\t$phrasegroups = array_merge($phrasegroups, array(\r\n\t\t\'photoplog\'\r\n\t));\r\n}\r\n// PhotoPlog\r\nif (!file_exists(DIR . \'/includes/vblogetin_config.php\'))\r\n{\r\n\ttrigger_error(\'vBlogetin Configuration Not Found\', E_USER_WARNING);\r\n}\r\n\r\ninclude(DIR . \'/includes/vblogetin_config.php\');\r\nrequire_once(BLOG_PLUGINS . \'/init_startup.php\');\r\n'' ) ..\init.php:326
 
 
Luvilla
Гость
Default

KAS, ну, я так и предполагала)
поскольку откат пхп Вас не устраивает, остаётся два варианта решения:
- включить подавление ошибок
- править файлы воблы. То есть, открываете файл init.php, находите в указанных строках =& new и меняете на = new
и так - по всем файлам, в которых есть =& new

и кстати, если бы Вы скормили эту ошибку с Deprecated поиску, ответ бы нашёлся сразу) эти штатные девять ошибок из инита и одна из класс_коре тут постоянно выплывают... + что-то от хаков

что там с Warning и Fatal error - надо смотреть подробно, этот пост поможет http://vbsupport.ru/forum/showpost.p...35&postcount=6
 
 
KAS
Продвинутый
Default
1

Quote:
Originally Posted by Luvilla View Post
KAS, ну, я так и предполагала)
поскольку откат пхп Вас не устраивает, остаётся два варианта решения:
- включить подавление ошибок
- править файлы воблы. То есть, открываете файл init.php, находите в указанных строках =& new и меняете на = new
и так - по всем файлам, в которых есть =& new

и кстати, если бы Вы скормили эту ошибку с Deprecated поиску, ответ бы нашёлся сразу) эти штатные девять ошибок из инита и одна из класс_коре тут постоянно выплывают... + что-то от хаков

что там с Warning и Fatal error - надо смотреть подробно, этот пост поможет http://vbsupport.ru/forum/showpost.p...35&postcount=6
В поиске конкретного ответа для форума не было.
error_reporting = E_NONE

Вот что осталось. Заменил во всех файлах как и говорила
http://34-rus.ru/forum/index.php вот собственно страница

! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\№\class_core.php on line 3071
Call Stack
# Time Memory Function Location
1 0.0023 495976 {main}( ) ..\index.php:0
2 0.0051 762472 require_once( 'C:№\www\forum\global.php' ) ..\index.php:53
3 0.0070 899104 require_once( 'C:\№\www\forum\includes\init.php' ) ..\global.php:18
4 0.0139 1575704 vB_Registry->vB_Registry( ) ..\init.php:46
5 0.0140 1576392 vB_Input_Cleaner->vB_Input_Cleaner( ) ..\class_core.php:4757

Warning: require_once(/home/blogs/plugins/init_startup.php) [function.require-once]: failed to open stream: No such file or directory in \includes\init.php(326) : eval()'d code on line 35

( ! ) Fatal error: require_once() [function.require]: Failed opening required '/home/blogs/plugins/init_startup.php' (include_path='.;C:\№\Smarty') in C:\Program Files (x86)\VertrigoServ\www\forum\includes\init.php(326) : eval()'d code on line 35
Call Stack
# Time Memory Function Location
1 0.0023 495976 {main}( ) ..\index.php:0
2 0.0051 762472 require_once( 'C:№\www\forum\global.php' ) ..\index.php:53
3 0.0070 899104 require_once( 'C:\№\www\forum\includes\init.php' ) ..\global.php:18
4 0.0455 4782696 eval( ''\r\n//////////////////////////////////////////////////////////\r\n// Friends and/or Buddies in Profile\r\n//////////////////////////////////////////////////////////\r\n\r\n// usage of phrases in phrasegroups does only \r\n// work with this hook here\r\n\r\nif (THIS_SCRIPT == "member") {\r\n\tglobal $phrasegroups;\r\n\t\r\n\t$phrasegroups =\r\n\t\tarray_merge(\r\n\t\t\t$phrasegroups,\r\n\t\t\tarray(\r\n\t\t\t\t\'fnb_profile\'\r\n\t\t\t)\r\n\t\t);\r\n}\r\n\t\t\t\r\n// PhotoPlog\r\nif (is_array($phrasegroups) && !in_array(\'photoplog\',$phrasegroups))\r\n{\r\n\t$phrasegroups = array_merge($phrasegroups, array(\r\n\t\t\'photoplog\'\r\n\t));\r\n}\r\n// PhotoPlog\r\nif (!file_exists(DIR . \'/includes/vblogetin_config.php\'))\r\n{\r\n\ttrigger_error(\'vBlogetin Configuration Not Found\', E_USER_WARNING);\r\n}\r\n\r\ninclude(DIR . \'/includes/vblogetin_config.php\');\r\nrequire_once(BLOG_PLUGINS . \'/init_startup.php\');\r\n'' ) ..\init.php:326

KAS добавил 23.12.2011 в 12:47
Всё решилось. Как я не хотел но пришлось обновляться. Но после этого появились кракозяблы. Их исправил с помощью init.php из папки includes
PHP Code:

vbulletin_demo_init_db(); 

После него
PHP Code:
mysql_query ("set character_set_client='cp1251'"); 
mysql_query ("set character_set_results='cp1251'"); 
mysql_query ("set collation_connection='cp1251_general_ci'"); 
И заработало.
Правда модули все полетели.

Last edited by KAS : 12-23-2011 at 01:49 PM. Reason: Добавлено сообщение
 
 
lexx
Простоузер
Default
0

Quote:
Originally Posted by Centurion View Post
обновить до 3.8.5~7
На старом хостинге стоял PHP Version 5.2.9. Версия форума 3.8.4.
Переехал на новый сервер. PHP Version 5.3.3-7+squeeze3
поправил файлы инит и класс_коре на предмет deprecated. вроде как все работает - но вот фото в альбомы пользователей не загружаются. страница после выбора файла для загрузки и подтверждения вылетает в ошибку, номер ошибки не ясен, на странице только "Страница, которую вы пытаетесь просмотреть, не может быть показана, так как она использует неверную или неподдерживаемую форму компрессии." в логах сервера тоже ошибки нет. обновился до 3.8.7, поправил init и class_core - проблема не решилась.
куда копать, кто подскажет ?
 
 
kerk
k0t
 
kerk's Avatar
Default
1

Quote:
Originally Posted by lexx View Post
не может быть показана, так как она использует неверную или неподдерживаемую форму компрессии.
в настройках воблы есть пункт - компрессия страниц, поставь там 0 (ноль)
 
 
lexx
Простоузер
Default
0

Quote:
Originally Posted by kerk View Post
настройках воблы есть пункт - компрессия страниц
это имеется ввиду степень сжатия GZIP, используемую для вывода HTML ? ставил 0, не помогло.
если не то, объясните плиз где именно этот пункт, обыскался уже.

lexx добавил 15.01.2012 в 04:14
проблема решена.
1. поставил уровень компрессии gzip 0
2. отключил вывод в формате GZIP HTML
появилась ошибка permission denied
3. поправил права на директории albums с рекурсией на 777
4. включил компрессию обратно
все работает. kerk спасибо ! 4 часа убил на это, а ларчик-то просто открывался... ))

lexx добавил 15.01.2012 в 21:52
с альбомами разобрались ))
теперь вылезла проблема аттачей. в постах миниатюры вложений не показываются, только ссылки. при открытии ссылок вижу ошибку - "изображение не может быть показано, т.к. содержит ошибки".
как для старых вложений, так и при добавлении новых. права на директории attach и всех поддиректорий выставил 777. куда копать ?

Last edited by lexx : 01-15-2012 at 10:52 PM. Reason: Добавлено сообщение
 


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 03:06 PM.


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