I installed K2 version 1.0.1beta2 about a year ago for a friend's site, it was hacked, then I tried to restore everything, but K2 never worked properly. People were complaining they couldn't submit blog posts so I tried Upgrading to the latest K2 version today, and that didn't work. Something was wrong, because the Upgrade didn't work, so all the blog posts and categories weren't visible on the Frontend. I checked the database and still see the old database tables with different names, so the content was still there.
To try and fix the site, I uploaded all the old files from the site backup. Now I can see the old categories and posts again, but I'm also seeing a ton of errors on the first page and repeated errors on internal pages; See Errors below (note "PATH_TO_ROOT" replaces the real path):
Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162
HELP PLEASE!? This is a live site, so I'm panicking. I don't know what else to do at this point. I can't Upgrade because it breaks the blog, and don't know where to begin to fix the errors... Anyone?
To try and fix the site, I uploaded all the old files from the site backup. Now I can see the old categories and posts again, but I'm also seeing a ton of errors on the first page and repeated errors on internal pages; See Errors below (note "PATH_TO_ROOT" replaces the real path):
Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 108Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 136Warning: Invalid argument supplied for foreach() in /PATH_TO_ROOT/components/com_k2/helpers/route.php on line 162
HELP PLEASE!? This is a live site, so I'm panicking. I don't know what else to do at this point. I can't Upgrade because it breaks the blog, and don't know where to begin to fix the errors... Anyone?