Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Убираем ошибку foreach() при обновлении

Recommended Posts

Иногда при обновлении может выползти ошибка:


invalid argument supplied for foreach() 



для того что бы продолжить обновление

скачиваем и открываем файл Upgrade.php

перед строкой: foreach ( $settings as $k => $v )

вставляем код: if ( $settings == NULL ) return;


сохраням перезаливаем

продолжаем обновление

Share this post

Link to post
Share on other sites

Сомнительное решение.

Настройка upload_settings должна быть json строкой. Если она пустая правильнее было бы выполнить sql запрос, иначе функция не отработает правильно


UPDATE core_sys_conf_settings SET conf_value='{"filestorage__core_Advertisements":"1","filestorage__core_Attachment":"1","filestorage__core_Emoticons":"1","filestorage__core_Profile":"1","filestorage__core_ProfileField":"1","filestorage__core_Theme":"1","filestorage__forums_Icons":"1","filestorage__cms_Media":"1","filestorage__cms_Pages":"1","filestorage__cms_Records":"1","filestorage__downloads_FileField":"1","filestorage__downloads_Files":"1","filestorage__downloads_Screenshots":"1","filestorage__nexus_Ads":1,"filestorage__nexus_Customer":1,"filestorage__nexus_PackageGroups":1,"filestorage__nexus_Products":1,"filestorage__nexus_PurchaseFields":1,"filestorage__nexus_ReferralBanners":1,"filestorage__nexus_Support":1}' WHERE conf_key='upload_settings'

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...