Adam Tappert Posted November 23, 2015 Share Posted November 23, 2015 I get the following error message when attempting to upgrade Invalid argument supplied for foreach() /usr/share/nginx/html/applications/core/setup/upg_101016/upgrade.php::51 Link to comment Share on other sites More sharing options...
Adlago Posted November 23, 2015 Share Posted November 23, 2015 Try before upgrade -> clear cache (System - Support - Something isn't working correctly) Link to comment Share on other sites More sharing options...
media Posted November 23, 2015 Share Posted November 23, 2015 https://community.invisionpower.com/topic/423295-414-is-out/?do=findComment&comment=2598465 https://community.invisionpower.com/4bugtrack/active-reports/414-upgrade-problem-invalid-argument-supplied-for-foreach-r9211/ Link to comment Share on other sites More sharing options...
Adlago Posted November 23, 2015 Share Posted November 23, 2015 9 minutes ago, media said: https://community.invisionpower.com/4bugtrack/active-reports/414-upgrade-problem-invalid-argument-supplied-for-foreach-r9211/ This error is when checking cacheThis is all code if ( $row['row_perm_cache'] != '*' ) { $perms = json_decode( $row['row_perm_cache'], TRUE ); $applications = array(); foreach ( $perms['applications'] as $k => $app ) { $applications[ $app ] = $perms['modules']; } $perms['applications'] = $applications; unset( $perms['modules'] ); \IPS\Db::i()->update( 'core_admin_permission_rows', array( 'row_perm_cache' => json_encode( $perms ) ), array( 'row_id=? AND row_id_type=?', $row['row_id'], $row['row_id_type'] ) ); } Link to comment Share on other sites More sharing options...
media Posted November 23, 2015 Share Posted November 23, 2015 exactly where do you clear cache? (path to cache in ACP) Because I do not use any caching Caching Method Required - No caching - Link to comment Share on other sites More sharing options...
Adlago Posted November 23, 2015 Share Posted November 23, 2015 I assume that before the upgrade in cash has accumulated error records. I therefore suggest that before upgrading to remove the cache. Link to comment Share on other sites More sharing options...
Adlago Posted November 23, 2015 Share Posted November 23, 2015 38 minutes ago, media said: Caching Method Required - No caching - Quote The caching method is used by various systems for temporary data storage and data caching. All options apart from Memcached use server memory and using any of these will increase performance over not caching. Memcached is a distributed memory object caching system and provides the best performance. This means that you do not use another method for caching. Use what the developer is built into ips4. To remove the cache do this Link to comment Share on other sites More sharing options...
media Posted November 23, 2015 Share Posted November 23, 2015 Just now, Adlago said: This means that you do not use another method for caching. Use what the developer is built into ips4. To remove the cache do this That's built in ticket system.... Link to comment Share on other sites More sharing options...
Adlago Posted November 23, 2015 Share Posted November 23, 2015 1 minute ago, media said: That's built in ticket system.... No, this is for use by admin After the first click system eliminates cash Link to comment Share on other sites More sharing options...
media Posted November 23, 2015 Share Posted November 23, 2015 1 minute ago, Adlago said: No, this is for use by admin I see... I thought that's a built in ticket system.... I will try to use it Thanks Link to comment Share on other sites More sharing options...
Igor Denisov Posted November 24, 2015 Share Posted November 24, 2015 Another problem Link to comment Share on other sites More sharing options...
Andrew Bell Posted November 24, 2015 Share Posted November 24, 2015 Hi guy's Was trying to do the same and this is what I got ( ! ) Fatal error: Undefined constant 'IPS\TEST_DELTA_ZIP' in C:\wamp\www\website\applications\core\modules\admin\system\upgrade.php on line 99 Call Stack # Time Memory Function Location 1 0.0010 246856 {main}( ) ..\index.php:0 2 0.2770 11504888 IPS\_Dispatcher->run( ) ..\index.php:13 3 0.2900 12701816 IPS\Dispatcher\_Standard->finish( ) ..\Dispatcher.php:131 4 0.2930 12703736 IPS\_Dispatcher->finish( ) ..\Standard.php:101 5 0.2930 12704432 globalTemplate ( ) ..\Dispatcher.php:149 6 0.2930 12704928 IPS\Theme\_SandboxedTemplate->__call( ) ..\Dispatcher.php:149 7 0.2930 12705344 call_user_func_array:{C:\wamp\www\website\system\Theme\SandboxedTemplate.php:57} ( ) ..\SandboxedTemplate.php:57 8 0.2940 12710112 IPS\Theme\class_core_admin_global->globalTemplate( ) ..\SandboxedTemplate.php:57 9 0.3050 12759832 IPS\Helpers\_Wizard->__toString( ) ..\SandboxedTemplate.php:1552 10 0.3050 12761040 call_user_func:{C:\wamp\www\website\system\Helpers\Wizard\Wizard.php:156} ( ) ..\Wizard.php:156 11 0.3050 12761520 IPS\core\modules\admin\system\_upgrade->_selectVersion( ) ..\Wizard.php:156 Link to comment Share on other sites More sharing options...
Igor Denisov Posted November 24, 2015 Share Posted November 24, 2015 We have restored an older version of the file. but it does not work properly .. It is very bad. Link to comment Share on other sites More sharing options...
Andrew Bell Posted November 24, 2015 Share Posted November 24, 2015 Not only that, but when I try to add in new forums I get this as well after I make one EX1054 Something went wrong. Please try again. Something is not right here. Link to comment Share on other sites More sharing options...
Igor Denisov Posted November 24, 2015 Share Posted November 24, 2015 There are some problems with your database. Normally it is safe to try to fix these problems automatically however if your community is large, you may want to run the necessary queries manually. If so, the queries to run are: UPDATE `core_pfields_data` SET `pf_search_type`='loose' WHERE `pf_search_type` IS NULL; ALTER TABLE `core_pfields_data` CHANGE COLUMN `pf_search_type` `pf_search_type` VARCHAR (5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'loose' COMMENT ''; ALTER TABLE `forums_posts` DROP INDEX `topic_id`, ADD KEY `topic_id` (`topic_id`,`queued`,`post_date`); ALTER TABLE `blog_blogs` ADD COLUMN `blog_groupblog` INT (1) NOT NULL DEFAULT 0 COMMENT '', ADD COLUMN `blog_owner_only` INT (1) NOT NULL DEFAULT 0 COMMENT '', ADD COLUMN `blog_authorized_users` VARCHAR (255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '', ADD KEY `blog_groupblog` (`blog_groupblog`), ADD KEY `auth_user` (`blog_owner_only`,`blog_authorized_users`(190)); Link to comment Share on other sites More sharing options...
Marc Posted November 24, 2015 Share Posted November 24, 2015 Please could you ensure that you post in tickets for these issues if you are still experiencing them? For this one Fatal error: Undefined constant 'IPS\TEST_DELTA_ZIP' in C:\wamp\www\website\applications\core\modules\admin\system\upgrade.php on line 99 Please reupload the files. It seems you are missing the latest init.php ------------------------ For this one Invalid argument supplied for foreach() /usr/share/nginx/html/applications/core/setup/upg_101016/upgrade.php::51 The installer has been fixed, please reupload all files ----------------------- For this one 1050 Table 'nexus_package_base_prices_new' already exists Please see the following kb article Link to comment Share on other sites More sharing options...
media Posted November 24, 2015 Share Posted November 24, 2015 15 hours ago, Adam Tappert said: I get the following error message when attempting to upgrade Invalid argument supplied for foreach() /usr/share/nginx/html/applications/core/setup/upg_101016/upgrade.php::51 They told me this has been resolved... We have to redownload the package and continue where we left of... Link to comment Share on other sites More sharing options...
craigf136 Posted November 24, 2015 Share Posted November 24, 2015 I was advised the upgrade error issue was resolved and downloaded the full package from client area, unfortunately it didn't resolve my issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.