AbbyShotDev Posted June 13, 2011 Share Posted June 13, 2011 Ok, Anyone else see this? Just look at http://www.abbyshot.com In IE it looks like crap, in Firefox it looks fine,t he way it is supposed to.. Internet Explorer View 9.0 ---- Destroyed, moved down a frame, please help Firefox ---- Perfect, everything working great Please help, do you guys see my page is so far down? Is it the overflow??? Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 my http://www.abbyshot.com/firefly-browncoat.php pages are uneffected by this error, it is just the index page Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted June 13, 2011 Share Posted June 13, 2011 The html for that page generates 53 errors and 37 warnings. It doesn't even have a valid doctype declaration. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.abbyshot.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.2 Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 not trying to be saucy, but , so what? I have no way of getting these 54 errors out? the page works? arn't these just php errors? So so what if the page has these errors? There is no way to get rid of them that I know of? So if they are causing problems, how do I clear these problems? The site is old and decriptibe but they still want to use it and not change to a new website system. Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 Honestly, I dont know why all those things are showing up as errors, because they arn't errors. those "errors" are all working code and javascript.. there is soemthing wrong with w3validator, not our website.. our websites javascripts work fine Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 for instance: Info Line 8, Column 50: entity was defined here …/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime=' Warning Line 8, Column 72: cannot generate system identifier for general entity "utmxtime" …/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime=' ✉ An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". Entity references start with an ampersand (&) and end with a semicolon (. If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters. If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem. Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. both of those are correctly placed codes Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 on the top of my index.php page we have: <script> function utmx_section(){}function utmx(){} (function(){var k='1464327358',d=document,l=d.location,c=d.cookie;function f(n){ if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n. length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash; d.write('<sc'+'ript src="'+ 'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com' +'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime=' +new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"></sc'+'ript>')})(); </script><script>utmx("url",'A/B');</script> <?php $HOMEPICSDIR="furniture/homepics"; require_once ("path.php"); require_once( PATH_INCLUDE . 'currsession.php' ); function getJPEGsFromDirectory ($dir) {//return an array of all JPEGS in the passed directory $pics = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && substr($file,-4)==".jpg") { $pics[] = $file; } } closedir($handle); } return $pics; } $main_abby_images = getJPEGsFromDirectory ($HOMEPICSDIR); function shortdesc($string, $length) { // By default, an ellipsis will be appended to the end of the text. $suffix = '...'; // Convert 'smart' punctuation to 'dumb' punctuation, strip the HTML tags, // and convert all tabs and line-break characters to single spaces. $short_desc = trim(str_replace(array("\r","\n", "\t"), ' ', strip_tags($string))); // Cut the string to the requested length, and strip any extraneous spaces // from the beginning and end. $desc = trim(substr($short_desc, 0, $length)); // Find out what the last displayed character is in the shortened string $lastchar = substr($desc, -1, 1); // If the last character is a period, an exclamation point, or a question // mark, clear out the appended text. if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix=''; // Append the text. $desc .= $suffix; // Send the new description back to the page. return $desc; } function microtime_float() { if (version_compare(phpversion(), '5.0.0', '>=')) { return microtime(true); } else { list($usec, $sec) = explode(' ', microtime()); return ((float) $usec + (float) $sec); } } $start = microtime_float(); include('SimplePie/simplepie.inc'); // Parse it $feed = new SimplePie(); $feed->set_feed_url('http://abbyshot.blogspot.com/feeds/posts/default?alt=rss'); $feed->set_item_limit(5); $feed->init(); $feed->handle_content_type(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> should we have all that below the DOCTYPE? i dont understand why validator dont like my php page, its just code above the doctype its not liking Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 <head> <meta name="keywords" content="movie clothing, cosplay, anime clothing, trench coat, custom fitted, silent bob coat, matrix coat, matrix trench coat, matrix style trench coats, matrix costumes, mens winter wool coats, wool cassock trench coat, custom clothing"> <meta name="description" content="Producers of the finest quality movie clothing and Cosplay costumes available."> <link ref="stylesheet" rel="stylesheet" href="highslide.css" type="text/css"> <title>AbbyShot Clothiers - Movie Clothing | Cosplay Costumes</title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- imageInt = 05; <? echo ("gNumberOfImages =".count($main_abby_images).";"); ?> homeImages = new Array(gNumberOfImages); <? for ($i=0;$i<count($main_abby_images);$i++) { echo "homeImages[$i]='$HOMEPICSDIR/".$main_abby_images[$i]."';\n"; } ?> function canManipulateImages() { if (document.images) { return true; } else { return false; } } function loadSlide(imageURL) { if (gImageCapableBrowser) { document.getElementById("mainContent").style.backgroundImage="url("+imageURL+")"; return false; } else { return true; } } function nextSlide() { gCurrentImage = (gCurrentImage + 1) % gNumberOfImages; loadSlide(homeImages[gCurrentImage]); } gImageCapableBrowser = canManipulateImages(); gCurrentImage = 0; setInterval("nextSlide()",imageInt * 1000); // --> </SCRIPT> <script type="text/javascript" src="highslide/highslide-full.packed.js"></script> <script src = "global.js" type="text/javascript"></script> <script src = "customSwap.js" type="text/javascript"></script> <!--[if lt IE 7]> <style type="text/css"> .promo { /* float:left; border:1px solid black; width:242px; margin-right:0px; 8 margin-left:0px; 4 margin:0; padding:0; */ } </style> <![endif]--> <script type="text/javascript"> // remove the registerOverlay call to disable the controlbar hs.registerOverlay( { thumbnailId: null, overlayId: 'controlbar', position: 'top right', hideOnMouseOut: true } ); hs.graphicsDir = 'highslide/graphics/'; hs.outlineType = 'outer-glow'; hs.captionEval = 'this.thumb.title'; hs.align = 'center'; hs.showCredits = false; hs.dimmingOpacity = 0.75; </script> <style type="text/css"> .highslide img { border:0; } .highslide:hover img { border:0; } </style> <link ref="stylesheet" rel="stylesheet" href="styles.css" type="text/css"> <? // Libraries. require_once( PATH_INCLUDE . 'tilde.php' ); // Functionality require_once( PATH_INCLUDE . 'dbconnect.php' ); // $images = array(); // $sql= "SELECT name FROM `as_mainHomePageImages` WHERE 1"; // $result = mysql_query($sql);//or die (mysql_error()); // while ($row=mysql_fetch_array($result)) { // extract ($row); // $images[]="furniture/homepics/$name"; // } srand(time()); $random = (rand()% sizeof($main_abby_images)); $theImage = $main_abby_images[$random]; ?> <style type="text/css"> #mainContent { background-image:url(<?=$HOMEPICSDIR."/".$theImage?>); } </style> </head> <body bgcolor="#000000"> <div> is this too much in the header or something? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted June 13, 2011 Share Posted June 13, 2011 LOL, your doctype is on line 13. You need to produce a valid, error free, HTML document, before you can even worry about how it looks in different browsers. Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 13, 2011 Share Posted June 13, 2011 not trying to be saucy, but , so what? I have no way of getting these 54 errors out? the page works? arn't these just php errors? So so what if the page has these errors? There is no way to get rid of them that I know of? So if they are causing problems, how do I clear these problems? Are you serious? You have 54 errors and you are saying 'so what'? We are not here to clean up your garbage. Besides that the validator tells you precisely what is wrong and what might cause it. So it should be easy to clean it up. Apart from that you are showing us which is a server side script, and the fun thing about this forum is that it requires client side code. Besides that, You may want to spent the whole day reading about using a valid doctype and how to use one. I can already see that is 1 problem next to the 54 mark up errors. Also you may want to spend some time in reading the sticky which says "read before posting" And i have a feeling that last thing is said earlier... So unless someone is willing to clear up al those errors i would if i were you in the meanwhile clean up those errors. -edit: PFMaBiSmAd is a faster typer -edit:2 I just read your wondering why the validator does not like you php. I already gave a hint above. -edit 3: Are you serious? you still have a topic out there with the exact same stuff. And weird enough your response there is exactly the same: "whatever man" Not even is it rude to not respond to people offering there help/time, but you also completely ignore what they say. You really have no idea. I hope you do what is recommend above... Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 dudes, its giving me problems like the & ampersand is wrong in <script> function utmx_section(){}function utmx(){} (function(){var k='1464327358',d=document,l=d.location,c=d.cookie;function f(n){ if©{var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n. length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash; d.write('<sc'+'ript src="'+ 'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com' +'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime=' +new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"></sc'+'ript>')})(); </script><script>utmx("url",'A/B');</script> but that is a google code we were given to use, and that code should be fine. ? Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 So i put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> On TOP of my index.php and it makes 90 errors now\ and screws the whole page up.. you guys use php? then how the hell do you manage to not get errors with w3validator.. i use php and have many codes everywhere, codes with = in it and & in it.. vaidtors says & ampersand and = are not allowed, but they are in php Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 Hm, very itneresting. when i put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> ON TOP of the whole index.php page it actually FIXED the IE issue.. but it messes it up with firefoxx yeah... this website is a mess Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 ok so I updated my index.php file so that my scripts are within headers and my html open is at the top of the page.. it made one of my menu bars mess up in firefox. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta name="keywords" content="movie clothing, cosplay, anime clothing, trench coat, custom fitted, silent bob coat, matrix coat, matrix trench coat, matrix style trench coats, matrix costumes, mens winter wool coats, wool cassock trench coat, custom clothing"> <meta name="description" content="Producers of the finest quality movie clothing and Cosplay costumes available."> <link ref="stylesheet" rel="stylesheet" href="styles.css" type="text/css"> <link ref="stylesheet" rel="stylesheet" href="highslide.css" type="text/css"> <title>AbbyShot Clothiers - Movie Clothing | Cosplay Costumes</title> <script> function utmx_section(){}function utmx(){} (function(){var k='1464327358',d=document,l=d.location,c=d.cookie;function f(n){ if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n. length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash; d.write('<sc'+'ript src="'+ 'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com' +'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime=' +new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"></sc'+'ript>')})(); </script> <script>utmx("url",'A/B');</script> <?php $HOMEPICSDIR="furniture/homepics"; require_once ("path.php"); require_once( PATH_INCLUDE . 'currsession.php' ); function getJPEGsFromDirectory ($dir) {//return an array of all JPEGS in the passed directory $pics = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && substr($file,-4)==".jpg") { $pics[] = $file; } } closedir($handle); } return $pics; } $main_abby_images = getJPEGsFromDirectory ($HOMEPICSDIR); function shortdesc($string, $length) { // By default, an ellipsis will be appended to the end of the text. $suffix = '...'; // Convert 'smart' punctuation to 'dumb' punctuation, strip the HTML tags, // and convert all tabs and line-break characters to single spaces. $short_desc = trim(str_replace(array("\r","\n", "\t"), ' ', strip_tags($string))); // Cut the string to the requested length, and strip any extraneous spaces // from the beginning and end. $desc = trim(substr($short_desc, 0, $length)); // Find out what the last displayed character is in the shortened string $lastchar = substr($desc, -1, 1); // If the last character is a period, an exclamation point, or a question // mark, clear out the appended text. if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix=''; // Append the text. $desc .= $suffix; // Send the new description back to the page. return $desc; } function microtime_float() { if (version_compare(phpversion(), '5.0.0', '>=')) { return microtime(true); } else { list($usec, $sec) = explode(' ', microtime()); return ((float) $usec + (float) $sec); } } $start = microtime_float(); include('SimplePie/simplepie.inc'); // Parse it $feed = new SimplePie(); $feed->set_feed_url('http://abbyshot.blogspot.com/feeds/posts/default?alt=rss'); $feed->set_item_limit(5); $feed->init(); $feed->handle_content_type(); ?> </head> Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 13, 2011 Share Posted June 13, 2011 Hm, very itneresting. when i put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> ON TOP of the whole index.php page it actually FIXED the IE issue.. but it messes it up with firefoxx yeah... this website is a mess That is not interesting that is how it works. But for some reason people fail in reading the sticky and comments made in other posts. Also you did not spot the hint given, why the validator is not accepting your php. If i say that it tests the code that is shown in your browser does that ring a bell? Spend some time on this stuff yourself you have crap loads to clean up and i repeat we are not here to clean up garbage. We are happy to help, but if you want things to look similar crossbrowser the first thing you need to do besides reading the sticky is to remove all errors Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 Hm, very itneresting. when i put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> ON TOP of the whole index.php page it actually FIXED the IE issue.. but it messes it up with firefoxx yeah... this website is a mess That is not interesting that is how it works. But for some reason people fail in reading the sticky and comments made in other posts. Also you did not spot the hint given, why the validator is not accepting your php. If i say that it tests the code that is shown in your browser does that ring a bell? Spend some time on this stuff yourself you have crap loads to clean up and i repeat we are not here to clean up garbage. Nope , I still dont get why its showing so many errors for a php page.. You mean to say that it is only showing the output from the php? It isn't downloading the actualy .php files and processing them.. its just the client side stuff?? so these errors arn't really errors then, i was right Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 and honestly, I dont see anything wrong with: Info Line 5, Column 2: start tag was here <meta name="description" content="Producers of the finest quality movie clothi… Error Line 6, Column 12: there is no attribute "ref" <link ref="stylesheet" rel="stylesheet" href="styles.css" type="text/css"> why does validator gotta say thats wrong.. tell me one reason Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 13, 2011 Share Posted June 13, 2011 yeah it's hard to spot but this might give a hint Error Line 6, Column 12: there is no attribute "ref" PLease spent some time on this, don't bombard the forum,or even the same topic with all these snippets. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted June 13, 2011 Share Posted June 13, 2011 Hm, very itneresting. when i put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> ON TOP of the whole index.php page it actually FIXED the IE issue.. but it messes it up with firefoxx yeah... this website is a mess That is not interesting that is how it works. But for some reason people fail in reading the sticky and comments made in other posts. Also you did not spot the hint given, why the validator is not accepting your php. If i say that it tests the code that is shown in your browser does that ring a bell? Spend some time on this stuff yourself you have crap loads to clean up and i repeat we are not here to clean up garbage. Nope , I still dont get why its showing so many errors for a php page.. You mean to say that it is only showing the output from the php? It isn't downloading the actualy .php files and processing them.. its just the client side stuff?? so these errors arn't really errors then, i was right No, they are errors. They are HTML validation errors and if they weren't relevant to the problem, I wouldn't have wasted my time posting the link to the validator. The HTML code that is sent to the browser must be valid markup or, as you may have noticed already, things have the potential to be all screwed up. Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 13, 2011 Share Posted June 13, 2011 oops an insert comment went wrong Quote Link to comment Share on other sites More sharing options...
Maq Posted June 13, 2011 Share Posted June 13, 2011 You mean to say that it is only showing the output from the php? It isn't downloading the actualy .php files and processing them.. I don't think you understand what exactly is going on. In layman's terms, PHP ultimately generates HTML and serves it to your browser and then the validator checks against that. Quote Link to comment Share on other sites More sharing options...
Philip Posted June 13, 2011 Share Posted June 13, 2011 It worries me that you are trying to put on GWO code.... when you can't get the basics down first. Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 You mean to say that it is only showing the output from the php? It isn't downloading the actualy .php files and processing them.. I don't think you understand what exactly is going on. In layman's terms, PHP ultimately generates HTML and serves it to your browser and then the validator checks against that. I do understand this now. v3validator just valiadtes my HTML output.. --- moving on --- it says I have an errror with " <script>" and another error " " when those arn't errors. Quote Link to comment Share on other sites More sharing options...
AbbyShotDev Posted June 13, 2011 Author Share Posted June 13, 2011 It worries me that you are trying to put on GWO code.... when you can't get the basics down first. i do have the basics down.. it isn't my fault this page has "errors" it was coded 8 years ago, and they arn't even really erorrs, the codes are fine.. I am just wondering why IE is so screwy now Quote Link to comment Share on other sites More sharing options...
.josh Posted June 13, 2011 Share Posted June 13, 2011 Nope , I still dont get why its showing so many errors for a php page.. You mean to say that it is only showing the output from the php? It isn't downloading the actualy .php files and processing them.. its just the client side stuff?? so these errors arn't really errors then, i was right Are you seriously the web dev for a company? That's the impression I'm getting from your previous posts...and yet you say this?? Good lord, people will hire anybody these days. Also, considering you are failing to even grasp fundamental principles of how web pages and code work...I would not be so quick to judge whether or not something is an error. I mean seriously, how can you sit there and say whether or not something is an error when you clearly have no idea what any of the stuff is for or how it works or what it is doing? I think maybe if you weren't so quick to dismiss what people are telling you, people around here might be a little more willing to help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.