Errors in my admin and index
I am near completion but something I have done has caused multiple errors on my index page. One I know of is on line 41, but I can't find it. (Parse error: syntax error, unexpected '<' in /home/pet5079/public_html/oddsnsods/admin/index.php on line 41) This particular error is stopping me accessing my admin page. But there are others because my home/index page is no longer showing up. I have run checks on the page and looked through it myself, but I don't know enough about coding to pick the errors up myself. Kobra has been helping me with some error issues and I thank him greatly; but, I am hoping someone may have a fresh perspective on what may be going wrong. I have customers emailing me wanting to place orders and I am afraid I may lose them if I don't get my website back up and running asap. :ohmy:
Please help if you can. My code for the file admin/index.php is as follows:
PHP Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | [URL="http://www.zen-cart.com/index.php"][B]http://www.zen-cart.com/index.php[/B][/URL] |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | [URL="http://www.zen-cart.com/license/2_0.txt"][B]http://www.zen-cart.com/license/2_0.txt[/B][/URL]. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license AT zen-cart DOT com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: index.php 2539 2005-12-11 05:17:05Z ajeh $
//
$version_check_index=true;
require('includes/application_top.php');
$languages = zen_get_languages();
$languages_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$languages_array[] = array('id' => $languages[$i]['code'],
'text' => $languages[$i]['name']);
if ($languages[$i]['directory'] == $language) {
$languages_selected = $languages[$i]['code'];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"][B]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/B][/URL]">
<html xmlns="[URL="http://www.w3.org/1999/xhtml"][B]http://www.w3.org/1999/xhtml[/B][/URL]" <?php echo HTML_PARAMS; ?>>
<?php // ====> BOF: INFO AT-A-GLANCE <==== ?>
<script language="javascript" src="includes/javascript/overlib_mini.js"><!-- overLIB (c) Erik Bosrup --></script>
<?php // ====> EOF: INFO AT-A-GLANCE <==== >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<script language="JavaScript" src="includes/menu.js" type="text/JavaScript"></script>
<link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS" />
Re: Errors in my admin and index
It seems that the info-at-a-glance addon that you've installed may have a problem.
If you upload the original /admin/index.php that came with your Zen Cart version, the problem should go away.
Re: Errors in my admin and index
You are truly a genius - why I hadn't thought of that I don't know. Thankyou. Sometimes the simplest and most obvious answer eludes us....I have spent days on this. Thankyou, thankyou....
Re: Errors in my admin and index
HOWEVER....now that I have my admin panel back; I have discovered that my website is still down. The site comes up as a HTTP 500 Internal Server Error. Fingers crossed that I can get my site back up. Here is my error log...it is all gibberish to me I'm afraid. The only pages that I am concerned with at the moment relate to oddsnsods; not petbreedersonline. Oddsnsods is an addon domain (has worked fine for over a year as an addon). Petbreedersonline is a work in progress that I will worry about once oddsnsods is completed. Oddsnsods is under the username pet5079.
[Fri Jul 18 21:40:23 2008] [error] [client 81.184.1.20] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 21:40:23 2008] [error] [client 81.184.1.20] File does not exist: /home/pet5079/public_html/favicon.ico
[Fri Jul 18 21:37:23 2008] [crit] [client 203.36.59.242] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 21:37:23 2008] [error] [client 203.36.59.242] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 21:37:23 2008] [error] [client 203.36.59.242] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 21:37:23 2008] [error] [client 203.36.59.242] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 21:37:22 2008] [error] [client 203.36.59.242] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 21:37:22 2008] [error] [client 203.36.59.242] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 21:26:51 2008] [error] [client 122.109.118.90] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 21:26:51 2008] [error] [client 122.109.118.90] File does not exist: /home/pet5079/public_html
[Fri Jul 18 21:26:51 2008] [error] Incorrect permissions on webroot "/home/pet5079/public_html/_vti_pvt" and webroot's _vti_pvt directory in FrontPageAlias().
[Fri Jul 18 21:26:51 2008] [error] Incorrect permissions on webroot "/home/pet5079/public_html/_vti_pvt" and webroot's _vti_pvt directory in FrontPageAlias().
[Fri Jul 18 21:26:51 2008] [error] [client 122.109.118.90] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 21:26:51 2008] [error] [client 122.109.118.90] File does not exist: /home/pet5079/public_html
[Fri Jul 18 21:26:51 2008] [error] Incorrect permissions on webroot "/home/pet5079/public_html/_vti_pvt" and webroot's _vti_pvt directory in FrontPageAlias().
[Fri Jul 18 21:26:51 2008] [error] Incorrect permissions on webroot "/home/pet5079/public_html/_vti_pvt" and webroot's _vti_pvt directory in FrontPageAlias().
[Fri Jul 18 21:11:25 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://petbreedersonline.com.au/
[Fri Jul 18 21:11:25 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/yabb, referer: http://petbreedersonline.com.au/
[Fri Jul 18 21:11:24 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 21:11:24 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/yabb, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 21:11:23 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 21:11:23 2008] [error] [client 91.200.139.237] File does not exist: /home/pet5079/public_html/yabb, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 21:10:17 2008] [error] [client 130.194.11.59] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 21:10:17 2008] [error] [client 130.194.11.59] File does not exist: /home/pet5079/public_html/yabb, referer: http://petbreedersonline.com.au/yabb...1194763002/0#0
[Fri Jul 18 20:48:24 2008] [error] [client 203.36.59.242] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 20:48:24 2008] [error] [client 203.36.59.242] File does not exist: /home/pet5079/public_html/oddsnsods/robots.txt
[Fri Jul 18 20:40:18 2008] [crit] [client 61.68.137.221] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.petbreedersonline.com.au/data/
[Fri Jul 18 20:40:18 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/, referer: http://www.petbreedersonline.com.au/data/
[Fri Jul 18 20:40:18 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_txt/, referer: http://www.petbreedersonline.com.au/data/
[Fri Jul 18 20:40:18 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_log/, referer: http://www.petbreedersonline.com.au/data/
[Fri Jul 18 20:38:00 2008] [crit] [client 61.68.137.221] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://au.search.yahoo.com/search;_y...iscqry=&fr=sfp
[Fri Jul 18 20:38:00 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/, referer: http://au.search.yahoo.com/search;_y...iscqry=&fr=sfp
[Fri Jul 18 20:38:00 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_txt/, referer: http://au.search.yahoo.com/search;_y...iscqry=&fr=sfp
[Fri Jul 18 20:38:00 2008] [error] [client 61.68.137.221] client denied by server configuration: /home/pet5079/public_html/_vti_log/, referer: http://au.search.yahoo.com/search;_y...iscqry=&fr=sfp
[Fri Jul 18 20:31:46 2008] [error] [client 203.7.207.213] File does not exist: /home/pet5079/public_html/403.shtml, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:31:46 2008] [error] [client 203.7.207.213] attempt to invoke directory as script: /home/pet5079/public_html/cgi-bin/, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:28:42 2008] [crit] [client 203.7.207.213] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 20:28:42 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 20:28:42 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 20:28:42 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 20:28:27 2008] [crit] [client 203.7.207.213] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:28:27 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:28:27 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_txt/, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:28:27 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_log/, referer: http://www.petbreedersonline.com.au/
[Fri Jul 18 20:28:12 2008] [crit] [client 203.7.207.213] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 20:28:12 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 20:28:12 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 20:28:12 2008] [error] [client 203.7.207.213] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 20:28:12 2008] [error] [client 203.7.207.213] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 20:28:12 2008] [error] [client 203.7.207.213] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 20:10:38 2008] [error] [client 66.249.73.179] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 20:10:38 2008] [error] [client 66.249.73.179] File does not exist: /home/pet5079/public_html/oddsnsods/robots.txt
[Fri Jul 18 19:49:42 2008] [error] [client 65.55.211.40] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 19:49:42 2008] [error] [client 65.55.211.40] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 19:48:02 2008] [error] [client 86.217.80.174] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 19:48:02 2008] [error] [client 86.217.80.174] File does not exist: /home/pet5079/public_html/html/leftorange.jpg, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 19:42:10 2008] [error] [client 65.55.211.20] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 19:42:10 2008] [error] [client 65.55.211.20] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 19:32:22 2008] [error] [client 74.6.18.253] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 19:32:22 2008] [error] [client 74.6.18.253] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 18:56:22 2008] [error] [client 217.160.214.102] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 18:56:22 2008] [error] [client 217.160.214.102] File does not exist: /home/pet5079/public_html/index.php
[Fri Jul 18 18:32:29 2008] [error] [client 85.23.35.191] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 18:32:29 2008] [error] [client 85.23.35.191] File does not exist: /home/pet5079/public_html/html/leftorange.jpg, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 18:32:25 2008] [error] [client 85.23.35.191] File does not exist: /home/pet5079/public_html/404.shtml, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 18:32:25 2008] [error] [client 85.23.35.191] File does not exist: /home/pet5079/public_html/html/leftorange.jpg, referer: http://www.petbreedersonline.com.au/html/colourin.htm
[Fri Jul 18 17:12:51 2008] [crit] [client 67.195.37.116] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 17:12:51 2008] [error] [client 67.195.37.116] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 17:12:51 2008] [error] [client 67.195.37.116] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 17:12:51 2008] [error] [client 67.195.37.116] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 16:59:49 2008] [error] [client 74.6.8.88] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 16:59:49 2008] [error] [client 74.6.8.88] File does not exist: /home/pet5079/public_html/oddsnsods/robots.txt
[Fri Jul 18 16:11:18 2008] [error] [client 67.195.37.116] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 16:11:18 2008] [error] [client 67.195.37.116] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 15:24:36 2008] [crit] [client 203.28.51.141] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 15:24:36 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 15:24:36 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 15:24:36 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 15:21:54 2008] [crit] [client 203.28.51.141] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Jul 18 15:21:54 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Fri Jul 18 15:21:54 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Fri Jul 18 15:21:54 2008] [error] [client 203.28.51.141] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Fri Jul 18 11:48:03 2008] [error] [client 74.6.18.224] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 11:48:03 2008] [error] [client 74.6.18.224] File does not exist: /home/pet5079/public_html/oddsnsods/robots.txt
[Fri Jul 18 07:10:42 2008] [error] [client 66.249.73.179] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 07:10:42 2008] [error] [client 66.249.73.179] File does not exist: /home/pet5079/public_html/oddsnsods/robots.txt
[Fri Jul 18 06:40:51 2008] [error] [client 65.55.211.23] File does not exist: /home/pet5079/public_html/404.shtml
[Fri Jul 18 06:40:51 2008] [error] [client 65.55.211.23] File does not exist: /home/pet5079/public_html/robots.txt
[Fri Jul 18 05:20:09 2008] [error] [client 67.190.168.62] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 05:20:09 2008] [error] [client 67.190.168.62] File does not exist: /home/pet5079/public_html/oddsnsods/favicon.ico
[Fri Jul 18 03:26:39 2008] [error] [client 70.249.146.159] File does not exist: /home/pet5079/public_html/oddsnsods/404.shtml
[Fri Jul 18 03:26:39 2008] [error] [client 70.249.146.159] File does not exist: /home/pet5079/public_html/oddsnsods/favicon.ico
[Thu Jul 17 23:28:27 2008] [crit] [client 67.202.34.106] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Thu Jul 17 23:28:27 2008] [error] [client 67.202.34.106] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Thu Jul 17 23:28:27 2008] [error] [client 67.202.34.106] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Thu Jul 17 23:28:27 2008] [error] [client 67.202.34.106] client denied by server configuration: /home/pet5079/public_html/_vti_log/
[Thu Jul 17 20:19:49 2008] [error] [client 74.6.8.97] File does not exist: /home/pet5079/public_html/404.shtml
[Thu Jul 17 20:19:49 2008] [error] [client 74.6.8.97] File does not exist: /home/pet5079/public_html/webcalendar
[Thu Jul 17 18:51:25 2008] [crit] [client 74.6.8.97] (13)Permission denied: /home/pet5079/public_html/_vti_pvt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Thu Jul 17 18:51:25 2008] [error] [client 74.6.8.97] client denied by server configuration: /home/pet5079/public_html/_vti_cnf/
[Thu Jul 17 18:51:25 2008] [error] [client 74.6.8.97] client denied by server configuration: /home/pet5079/public_html/_vti_txt/
[Thu Jul 17 18:51:25 2008] [error] [client 74.6.8.97] client denied by server configuration: /home/pet5079/public_html/_vti_log/
Re: Errors in my admin and index
Sorry - I went in to edit what i said and the page froze....pet5079 is for both webs, please excuse this and look only for oddsnsods...thanks everyone for putting up with my rantings..LOL
Re: Errors in my admin and index
I don't see anything in the portion of your error log that you posted which would indicate why you're getting 500 errors on your store.
Most of what's there is search engines wanting to do indexing and rogue visitors looking for security holes (which since they're in the logs, are blocked).
Re: Errors in my admin and index
What version of Zen Cart?
What addons do you have installed?
What version of PHP?
What's in the .htaccess file for the site that's giving you problems?
Re: Errors in my admin and index
I have 1.3.8a, but have installed 1.3.8 overit as I saw this worked for one person in another post.
I have phpMyAdmin 2.11.7.1 UTF-8.
The addons are numerous: Printable pricelist, skype support, super orders, info at a glance, personalised my account, add customers from admin, automaticlogin, cross sell advanced, edit orders, paypal verified logo, add customers from admin, ebay exporter, emptycart manager, group pricing per item and supertracker.
I have just disabled my .htaccess files. ( I believe I got them all) and now I have my site back - only the page is completely blank. At least it is a step in the right direction.... Any suggestions?
Re: Errors in my admin and index
Quote:
Originally Posted by
raquelann
I have phpMyAdmin 2.11.7.1 UTF-8.
phpMyAdmin is a database- management tool
PHP is the language engine running on your webserver.
What version of PHP are you using? Go to Admin->Tools->Server Info
Quote:
Originally Posted by
raquelann
I have 1.3.8a, but have installed 1.3.8 overit as I saw this worked for one person in another post.
Dangerous. I hope you did a full backup of everything before you did that.
Zen Cart v1.3.8a is newer than 1.3.8, and contains some bugfixes missing from 1.3.8. You want 1.3.8a instead of 1.3.8.
Re: Errors in my admin and index
Quote:
Originally Posted by
raquelann
The addons are numerous: Printable pricelist, skype support, super orders, info at a glance, personalised my account, add customers from admin, automaticlogin, cross sell advanced, edit orders, paypal verified logo, add customers from admin, ebay exporter, emptycart manager, group pricing per item and supertracker.
That's quite a list. If you're installing 1.3.8 overtop of 1.3.8a, how do you know you haven't also just busted a bunch of those addons by replacing core files altered by them?
Quote:
Originally Posted by
raquelann
now I have my site back - only the page is completely blank. At least it is a step in the right direction.... Any suggestions?
The FAQ area has an article on dealing with blank pages: https://www.zen-cart.com/tutorials/index.php?article=82