Is This a Php version issue?

Discussion in 'HTML & Website Design' started by LazyMom, Jun 4, 2007.

  1. #1
    Hi DPer's,

    I'm having an issue with a site that I moved to a new host. The site is not showing correctly, and I have no idea how to fix it. I have a feeling it is a php version issue but I thought I'd ask the experts first! :)

    I re uploaded the site on a temporary subdomain at my original hosting and it works fine:

    http://seniorfitness.bjohnsonco.com This has php version 4.4.4

    This address is on the new host and isn't loading properly (only the home page) http://www.seniorfitnessfacts.com and has php version 5.2.0

    I would appreciate any expert advice or opinions! Thanks. :)

    Denise
     
    LazyMom, Jun 4, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Sorry, can you be more specific as to what the problem is?

    By the way, I don't know much about the AdSense rules but I don't think those image ad pairs are allowed as there is clear intent to pair them up with only a fairly pale border between.
     
    krt, Jun 4, 2007 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    They both look the same to me, unless you've solved the problem already.
     
    Kerosene, Jun 5, 2007 IP
  4. LazyMom

    LazyMom Banned

    Messages:
    271
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, I know about the adsense. Thank you. :)

    Try this: The site that works http://sitetest1.bjohnsonco.com old host
    The site with the error http://www.seniorfitnessfacts.com new host

    The error is at the bottom and says: XML error: Invalid character at line 218

    Please for give me, I'm a idiot when it comes to php, and css.

    Denise
     
    LazyMom, Jun 5, 2007 IP
  5. cckid

    cckid Peon

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    could you post lines 217 through 219 so that we can see what's happening?
    you could be using a deprecated command of some sort.
     
    cckid, Jun 5, 2007 IP
  6. LazyMom

    LazyMom Banned

    Messages:
    271
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not sure what page/file is creating the error. :(
     
    LazyMom, Jun 5, 2007 IP
  7. cckid

    cckid Peon

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    looks like the error in on a file called pngfix.js on its line #28. I'm not a javascripter, so can't really help you there. I think that's the problem, but not 100% sure.
     
    cckid, Jun 6, 2007 IP
  8. iGenius

    iGenius Banned

    Messages:
    506
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I've php 5 on my host (DreamHost.Com) & it is incompatible with many scripts.
     
    iGenius, Jun 6, 2007 IP
  9. LazyMom

    LazyMom Banned

    Messages:
    271
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Here is the pngfix.js : I highlighted line 28. Once again, thank you to everyone who is trying to help. :)

    // Global PNG transparency fix for Internet Explorer up to version 6 - Combined by Fotis Evangelou, http://www.webpr.gr/joomla

    // The inline PNG fix, courtesy of Bob Osola, http://homepage.ntlworld.com/bobosola/
    function correctPNG()
    {
    for(var i=0; i<document.images.length; i++)
    {
    var img = document.images
    var imgName = img.src.toUpperCase()
    if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
    {
    var imgID = (img.id) ? "id='" + img.id + "' " : ""
    var imgClass = (img.className) ? "class='" + img.className + "' " : ""
    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
    var imgStyle = "display:inline-block;" + img.style.cssText
    if (img.align == "left") imgStyle = "float:left;" + imgStyle
    if (img.align == "right") imgStyle = "float:right;" + imgStyle
    if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
    + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
    img.outerHTML = strNewHTML
    i = i-1
    }
    }
    }
    window.attachEvent("onload", correctPNG);

    // The background PNG fix, courtesy of Youngpup (http://www.youngpup.net) and Drew McLellan (http://www.allinthehead.com)
    if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
    window.attachEvent("onload", alphaBackgrounds);
    }


    function alphaBackgrounds(){
    var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
    var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
    for (i=0; i<document.all.length; i++){
    var bg = document.all.currentStyle.backgroundImage;
    if (itsAllGood && bg){
    if (bg.match(/\.png/i) != null){
    var mypng = bg.substring(5,bg.length-2);
    document.all.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='scale')";
    document.all.style.backgroundImage = "url('/mambots/system/bot_ultimatepngfix/x.gif')";
    }
    }
    }
    }
     
    LazyMom, Jun 6, 2007 IP
  10. cckid

    cckid Peon

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Sorry for the delay in response - I hope your problems are resolved! I'm not much of a javascripter so I can't help you with this one.
     
    cckid, Jun 15, 2007 IP