Jump to content

Warning: Invalid argument supplied for foreach() in public_html/classes/AddressFormat.php on line 44


Recommended Posts

I upgrade from v1.4.3 to 1.4.4.1. In 1.4.3 everything is ok but after i upgrade it an error occur when i login to my webpage to make purchases. When i try to click to "add a new address" button an error occur. It gives a message

Warning: Invalid argument supplied for foreach() in public_html/classes/AddressFormat.php on line 448.

 

I had try to reupload the file but it didn't seem working. How to resolve it?

Link to comment
Share on other sites

on line 448 following code is there

	  foreach($keyList as $word_item)
		$out[] = trim($word_item);

 

 

replace it with

 

if(is_array($keyList)) {
	  foreach($keyList as $word_item)
		$out[] = trim($word_item);
	}

 

Thanks

Delonix

 

After using your code the error message didn't occur already but after i click add new address then add information on it then click save then it came out fatal error which above the url is mydomain.com/address.php.

 

Besides, when i click add new address button, a form will come out for me to fill up the information. Under the form, only additonal information, home phone, mobile phone and assingn an address title for future reference for me to fill it up. It didn't have the address box for me to fill up my address. Is this correct? Or is it once i click save button it will redirect me to address.php to fill up my address?

 

About the fatal error message, it occur before and after i use you code. Is it there is an error in address.php file?

Link to comment
Share on other sites

  • 4 weeks later...

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
×
×
  • Create New...