cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined variable: websiteIds in Store/Switcher.php on line 77

Undefined variable: websiteIds in Store/Switcher.php on line 77

Can anyone help me with this problem, when i click edit button in product it'll show 

 

Notice: Undefined variable: websiteIds in Store/Switcher.php on line 77

 

if(is_array($prowebsites) && count($prowebsites)){
if(!in_array(0,$websitesIds)){
$websiteIds = array_unique(array_intersect($websiteIds,$prowebsites)); <---------- Line 77
} else {
$websiteIds = $prowebsites;
}  

 

This the code

1 REPLY

Re: Undefined variable: websiteIds in Store/Switcher.php on line 77

The problem is that for whatever reason you $websiteIds is undeclared .. look for "$websiteIds =" line before that; perhaps it's inside a condition block or there's a typo.

Tanel Raja