Havouza Posted May 4, 2019 Share Posted May 4, 2019 I get this error from the apache log. Gives a 500 error. I suspect that a cache somewhere store the path to the old shop and that is why. I have seen it before but that cache file is gone. I emptied the cache on the prestanda page but are there more places i should empty before i move the site? This is the eventlog *ERROR* 2019/05/04 - 15:55:25: Shop not found at line 416 in file classes/shop/Shop.php [Sat May 04 15:46:19.725174 2019] [proxy_fcgi:error] [pid 11908] [client 139.162.116.133:51954] AH01071: Got error 'PHP message: PHP Warning: Invalid argument supplied for foreach() in /home/jv74/public_html/classes/shop/Shop.php on line 349\n' This is the lines in shop.php $through = false; foreach ($result as $row) { // An URL matching current shop was found if (preg_match('#^'.preg_quote($row['uri'], '#').'#i', $requestUri)) { $through = true; $idShop = $row['id_shop']; $foundUri = $row['uri']; if ($row['main']) { $isMainUri = true; } break; } Link to comment Share on other sites More sharing options...
Havouza Posted May 4, 2019 Author Share Posted May 4, 2019 Solved Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now