Post by souwar » Tue Nov 06, 2018 12:42 am

Hello, I have an error when the user logged in, I'm using 2.2.00
Warning: Invalid argument supplied for foreach() in /home/cotuaot/public_html/dev/catalog/view/theme/cotuaottheme/lib/module.php on line 57


This is my line 57

Code: Select all

if ($modules) {
				foreach ($modules as $module) {
					if(isset($module['layout_id'])) {
						if (($module['layout_id'] == $layout_id || $module['layout_id'] == 99999 || $module['layout_id'] == '99999' . $this->config->get( 'config_store_id' )) && $module['position'] == $module_position && $module['status']) {
							$module_data[] = array(
								'code'       => $extension['code'],
								'setting'    => $module,
								'sort_order' => $module['sort_order']
							);				
						}
					}
				}
			}
		}
please help

New member

Posts

Joined
Tue Jul 24, 2012 9:42 pm

Post by ADD Creative » Tue Nov 06, 2018 2:01 am

That code is in your custom theme. Do you get any similar errors with the default theme?

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by thekrotek » Tue Nov 06, 2018 2:15 am

For issues with custom themes and extensions, please, contact their respective developer first.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: Boppe, masterross and 7 guests