Guest Posted November 4, 2013 Posted November 4, 2013 Hi I am having a weird problem. When I open the admin pages in Firefox it doesn't render correctly however in ie8 its all correct. The page renders as follows, and I have now idea how to correct it or whats caused this. Anyone any thoughts. Many thanks Grandpa
♥altoid Posted November 4, 2013 Posted November 4, 2013 @@grandpaj Hi John, did you do anything with jquery lately? I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are.
Guest Posted November 4, 2013 Posted November 4, 2013 @@grandpaj Hi John, did you do anything with jquery lately? Hi No, have given up. Cheers John
♥altoid Posted November 4, 2013 Posted November 4, 2013 OK, the only other thing I can think of that may affect page display in this case would be something in admin/includes/template_top.php. I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are.
Guest Posted November 4, 2013 Posted November 4, 2013 OK, the only other thing I can think of that may affect page display in this case would be something in admin/includes/template_top.php. Hi Thanks for your reply. Tried as suggested, but didn't make any difference. Cheers
♥joli1811 Posted November 4, 2013 Posted November 4, 2013 Hi John, check that these files exist now I am using a standard 3.3.4 install you will see that they are not actually in admin but at the front side of the shop maybe just the name is wrong happens sometimes with updates and jquery that maybe you have something like jquery-ui-1.9.22.css instead of what your admin is looking for easy way to test is to view source in admin and then click on the link in the files ( they should be similar to those below) <link rel="text/css" href="http://xxxxx.com/ext/jquery/ui/redmond/jquery-ui-1.8.22.css"> <script type="http://xxxxx.com/ext/jquery/jquery-1.8.0.min.js"></script> <script type="http://xxxxx.com/ext/jquery/ui/jquery-ui-1.8.22.min.js"></script> Just check and see if the actual files are there nearly sure it is jquery problem and a file is missing or falsely named Steve is right to think the problem is at the start of admin/includes/template_top.php Regards Joli To improve is to change; to be perfect is to change often.
Guest Posted November 4, 2013 Posted November 4, 2013 Hi John, check that these files exist now I am using a standard 3.3.4 install you will see that they are not actually in admin but at the front side of the shop maybe just the name is wrong happens sometimes with updates and jquery that maybe you have something like jquery-ui-1.9.22.css instead of what your admin is looking for easy way to test is to view source in admin and then click on the link in the files ( they should be similar to those below) <link rel="text/css" href="http://xxxxx.com/ext/jquery/ui/redmond/jquery-ui-1.8.22.css"> <script type="http://xxxxx.com/ext/jquery/jquery-1.8.0.min.js"></script> <script type="http://xxxxx.com/ext/jquery/ui/jquery-ui-1.8.22.min.js"></script> Just check and see if the actual files are there nearly sure it is jquery problem and a file is missing or falsely named Steve is right to think the problem is at the start of admin/includes/template_top.php Regards Joli Hi, Have had look at the admin/includes/template_top.php and it shows the following. have V2.3.3 haven't yet updated. ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <base href="<?php echo HTTP_SERVER . DIR_WS_ADMIN; ?>" /> <!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> </head> <body> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <?php if (tep_session_is_registered('admin')) { include(DIR_WS_INCLUDES . 'column_left.php'); } else { ?> <style> #contentText { margin-left: 0; } </style> <?php } ?> <div id="contentText"> I can't spot anything. Many thanks Grandpa
♥joli1811 Posted November 5, 2013 Posted November 5, 2013 Well it is a standard admin/includes/ template_top.php with a bit of code missing do not like this at the very top ?> that is a closing tag with no opening so be good and put oscommerce back in hahah ***************************************************************** <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <base href="<?php echo HTTP_SERVER . DIR_WS_ADMIN; ?>" /> <!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> </head> <body> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <?php if (tep_session_is_registered('admin')) { include(DIR_WS_INCLUDES . 'column_left.php'); } else { ?> <style> #contentText { margin-left: 0; } </style> <?php } ?> <div id="contentText"> To improve is to change; to be perfect is to change often.
♥joli1811 Posted November 5, 2013 Posted November 5, 2013 You could also just check your version in admin download an original copy and upload to your site the 2.3 as split into three or four version just not sure if any changes were made to template_top.php so all the versions are here http://www.oscommerce.com/Products Below are normally the problem jquery files as they are regularly updated nad MUST MATCH so most times just the question of the right version <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> To improve is to change; to be perfect is to change often.
Guest Posted November 5, 2013 Posted November 5, 2013 Well it is a standard admin/includes/ template_top.php with a bit of code missing do not like this at the very top ?> that is a closing tag with no opening so be good and put oscommerce back in hahah ***************************************************************** <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <base href="<?php echo HTTP_SERVER . DIR_WS_ADMIN; ?>" /> <!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> </head> <body> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <?php if (tep_session_is_registered('admin')) { include(DIR_WS_INCLUDES . 'column_left.php'); } else { ?> <style> #contentText { margin-left: 0; } </style> <?php } ?> <div id="contentText"> Hi All the oscommerce stuff is above that tag Cheers
♥joli1811 Posted November 5, 2013 Posted November 5, 2013 Ok well if you right click on your mouse what happens with these three links???? <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> do you see the code or a page not found message?? When you are in admin To improve is to change; to be perfect is to change often.
Guest Posted November 5, 2013 Posted November 5, 2013 Ok well if you right click on your mouse what happens with these three links???? <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script> do you see the code or a page not found message?? When you are in admin Hi When I click on <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> I get the following; <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /NewGrandpas/ext/jquery/ui/redmond/jquery-ui-1.8.0.css was not found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> <hr> <address>Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 DAV/2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 Server at grandpas.co.nz Port 80</address> </body></html> The other 2 (<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.8.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.22.min.js'); ?>"></script>) have code. (Perhaps we are making progress) Cheers John
♥joli1811 Posted November 5, 2013 Posted November 5, 2013 Yes he is telling you simply that the pages can not be found this page is in the front of your shop it is a stylesheet that the admin needs to show everything properly.. so you need to get a file <link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.22.css'); ?>"> <p>The requested URL /NewGrandpas/ext/jquery/ui/redmond/jquery-ui-1.8.0.css was not found on this server.</p> so not sure why he is looking for x 2 files .css that is a bit weird anyway check that you actually have this file public_html/ext/jquery/ui/redmond/jquery-ui-1.8.22.css regards Joli To improve is to change; to be perfect is to change often.
♥altoid Posted November 5, 2013 Posted November 5, 2013 instead of what your admin is looking for easy way to test is to view source in admin and then click on the link in the files Now that's ingenious thinking.... :thumbsup: I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.