форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Reriter
Простоузер
Default Ошибка при обновлении 3.8.11 > 3.8.12
0

Приветствую.
Перенес форум с phpBb на vB 3.8.10 через Impex, счетчики обновил.
Обновляю форум до версии 3.8.12, на последнем шаге кликаю кнопку "продолжить", страница перезагружается и всё, дальше не идёт.
Php 5.6, посмотрел лог ошибок, там ничего нет.
Сменил на 7.2, появилась ошибка в браузере:

PHP Code:
Warningsizeof(): Parameter must be an array or an object that implements Countable in /var/www/user/data/www/site.info/for/install/upgradecore.php on line 459 
В логе:
PHP Code:
PHP Warning:  sizeof(): Parameter must be an array or an object that implements Countable in /var/www/user/data/www/site.info/for/install/upgradecore.php on line 459" while reading response header from upstream 
В файле на 459 строке:
PHP Code:
$numsteps sizeof($steptitles); 
Помогите пожалуйста исправить
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
0

а выше по коду переменная $steptitles где то встречается?
какое значение имеет?
 
 
hoo
Гуру
 
hoo's Avatar
Default
0

Там полностью кусок такой:
PHP Code:
// starts gzip encoding and echoes out the <html> page header
function print_upgrade_header($steptitle '')
{
    global 
$vbulletin$steptitles$numsteps$stylevar$upgradecore_phrases;

    if (
defined('DONE_HEADER'))
    {
        return;
    }

    if (
$vbulletin->options['gzipoutput'] and !headers_sent() and function_exists('ob_start') and function_exists('crc32') and function_exists('gzcompress') and !$vbulletin->nozip)
    {
        
ob_start();
    }

    
$numsteps sizeof($steptitles);
    if (
$steptitle)
    {
        
$stepstring sprintf($upgradecore_phrases['step_x_of_y'], $vbulletin->GPC['step'], $numsteps);
    } 
 
 
Reriter
Простоузер
Default
0

Quote:
Originally Posted by kerk View Post
а выше по коду переменная $steptitles где то встречается?
какое значение имеет?
Да
Выше 459 строчки:
PHP Code:
global $vbulletin$steptitles$numsteps$stylevar$upgradecore_phrases
Ниже:
PHP Code:
$stepstring sprintf($upgradecore_phrases['step_x_of_y'], $vbulletin->GPC['step'], $numsteps); 
PHP Code:
global $vbulletin$numsteps$upgradecore_phrases$vbphrase
PHP Code:
else if ($vbulletin->GPC['step'] >= $numsteps)
    {
        
$formaction 'upgrade.php';
        
$buttonvalue ' ' $vbphrase['proceed'] . ' ';
        
$buttontitle '';

        if (!empty(
$vbulletin->config['Misc']['upgrade_autoproceed']) AND $vbulletin->config['Misc']['upgrade_autoproceed'] == 'full' AND $vbulletin->debug)
        {
            
print_cp_redirect('upgrade.php'0.5);
        }
    } 
PHP Code:
$buttonvalue sprintf($upgradecore_phrases['next_step'], $nextstep$numsteps); 
 
 
gap
Знаток
 
gap's Avatar
Default
2

Quote:
Originally Posted by Reriter View Post
В файле на 459 строке:
PHP Code:
$numsteps sizeof($steptitles); 
Помогите пожалуйста исправить
Нужно заменить на
PHP Code:
$numsteps is_array($steptitles) ? sizeof($steptitles) : 1
 


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:10 AM.


Powered by vBulletin® Version 3.0.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.