1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Very Weird PHP Error

Discussion in 'PHP' started by theblurr5495, Dec 19, 2009.

  1. #1
    Half the time when you go to webjourney.me/blog it displays fine. However, other times this error code appears:

    Web Journey — Making Your Blog or Website Successful

    .addtoany_share_save img{border:0;}

    function votecomment( commentID, vote )
    {
    var mysack = new sack( “/wp-content/plugins/commentsvote/commentsvote_ajax.php” );

    mysack.method = ‘POST’;

    mysack.setVar( ‘vc_comment’, commentID );
    mysack.setVar( ‘vc_vote’, vote );

    mysack.onError = function() { alert( ‘Voting error.’ ) };
    mysack.onCompletion = function() { finishVote( commentID, eval( ‘(‘ + this.response + ‘)’ )); }

    mysack.runAJAX();
    }

    function finishVote( commentID, response )
    {
    var currentVote = response.votes;

    var [...]

    Do you know how to correct this?
     
    theblurr5495, Dec 19, 2009 IP
  2. KEEP IT REAL

    KEEP IT REAL Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try putting your javascript into
    <![CDATA[
    JS Code here
    ]]>
    Maybe it will help
     
    KEEP IT REAL, Dec 19, 2009 IP
  3. theblurr5495

    theblurr5495 Active Member

    Messages:
    436
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I don't think there is any JavaScript?
     
    theblurr5495, Dec 19, 2009 IP
  4. KEEP IT REAL

    KEEP IT REAL Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Whats that above then? MySQL code))
     
    KEEP IT REAL, Dec 19, 2009 IP
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #5
    .addtoany_share_save img{border:0;}
    this is CSS code.

    the rest is javascript and its in the first 20-40 lines of your webpage. so KEEP IT REAL's advice is good. use comments so it doesn't display.
     
    shallowink, Dec 19, 2009 IP
  6. ghprod

    ghprod Active Member

    Messages:
    1,010
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #6
    try to replace qwith jquery instead of sack :)

    regards
     
    ghprod, Dec 20, 2009 IP
  7. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #7
    I wouldn't be worried about that just yet, have you looked at your site via Internet Explorer ?
     
    MyVodaFone, Dec 20, 2009 IP