Skip to content

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

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

 

invalid argument supplied for foreach() 

/applications/core/sources/Setup/Upgrade.php::1192

 

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

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

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

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

 

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

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

Featured Replies

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

Настройка 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'

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.