PHP error breaking permalink

Discussion in 'PHP' started by Marketing91, May 21, 2011.

  1. #1
    Dear all,
    i am facing a huge problem on my blog because of PHP permalink structure due to which google webmaster is showin 500 NOT FOUND URLS. i desperately need help in this. Heres the error.
    http://www.marketing91.com/marketing-mix-tata-motors/<?php%20the_permalink()%20?%3E

    I guess this <?php%20the_permalink()%20?%3E is being added because of some wrong coding, Can u tell me what i have done wrong. i m just at amateur level in php. but i do know wordpress quite well. I have tried updating the permalink structure, But still will like ur input.

    Thanks
     
    Marketing91, May 21, 2011 IP
  2. echipvina

    echipvina Active Member

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    view your permalink
    <?php
        echo  the_permalink();
    ?>
    Code (markup):
    and
    
    http://www.marketing91.com/marketing-mix-tata-motors/<?=the_permalink()?>
    
    Code (markup):
     
    echipvina, May 22, 2011 IP
  3. Marketing91

    Marketing91 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hii. where do i find this correction. i have tried looking in the wordpress header as well as the index but nowhere is it shown as php the_permalink. I am absolutely not understanding what mistake i have done. I am also ready to pay someone to look at my wordpress code and fix it
     
    Marketing91, May 26, 2011 IP
  4. friendlymentor

    friendlymentor Peon

    Messages:
    177
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, I seem to be able to navigate to your posts without any issues.
    What exactly is causing the problem here?
     
    friendlymentor, May 26, 2011 IP
  5. Marketing91

    Marketing91 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When i click on the not found URLs they are being referred by my own website.
    Like if the not found URL is http://www.marketing91.com/swot-monginis/<?php%20the_permalink()%20?%3E
    Its being referred by 2 URL's
    http://www.marketing91.com/swot-monginis/
    http://www.marketing91.com/swot-monginis/<?php%20the_permalink()%20?%3E

    WEBMASTER is showing 500 such not found URLS. and all of them are referred by my own website :( :( And not found urls will definitely affect my rankings in google. any idea why this is happening?
     
    Marketing91, May 26, 2011 IP