title: Prestashop Language.php appears prevents access to shop and admin
body: <p>I'm at a complete loss to resolve these issues and desperately need help.</p>
  
  <p>I was about to start upgrading my prestahsop 1.4.4 to 1.5 in a new (folder) location. I installed the new prestashop without any problems. It is in a different folder to my existing prestashop.</p>
  
  <p>But quite since that installation I cannot access my existing prestashop, either admin or store. I had no problems whatsover with it until then.</p>
  
  <p>These are the error reports:</p>
  
  <p>STORE FRONT</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach() in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php on line 554
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300
  
  Fatal error: Cannot access empty property in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/FrontController.php on line 228
  </code></pre>
  
  <p>ADMIN</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach() in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php on line 554
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 29
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 30
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 31
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 32
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300
  
  Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Tools.phpon line 104[/quote]
  </code></pre>
  
  <p>The code at Language.php l554 is </p>
  
  <pre><code> foreach ($result AS $row)
  </code></pre>
  
  <p>This is under <code>/** Load all languages in memory for caching</code></p>
  
  <p>The code at FrontController.php l228 is</p>
  
  <pre><code>if ($cart-&gt;{Configuration::get('PS_TAX_ADDRESS_TYPE')})
  </code></pre>
  
  <p>The code at Tools.php l104 is</p>
  
  <pre><code>header('Location: '.$url);
  </code></pre>
  
  <p>This is under <code>/** redirect to another admin page</code></p>
  
  <p>The code at Cookie.php l300 is </p>
  
  <pre><code>return setcookie($this-&gt;_name, $content, $time, $this-&gt;_path, $this-&gt;_domain, 0, true);
  </code></pre>
  
  <p>I hope this information is enough for someone to point me in the right direction. I need urgent assistance.</p>
  
  <p>Many thanks,</p>
  
  <p>K</p>