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.

PHP error.......how do i fix??

Discussion in 'PHP' started by tonyfloyd, Jul 5, 2007.

  1. #1
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/tonykana/public_html/bloids/wp-content/themes/super-adsense/page.php on line 32


    this is error i am getting...any idea how to fix/what is causing this?

    thnks
    tony
     
    tonyfloyd, Jul 5, 2007 IP
  2. xxKillswitch

    xxKillswitch Peon

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you provide a snip of the code around that line? The error says there is a problem with a constant in your code there.
     
    xxKillswitch, Jul 5, 2007 IP
  3. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #3
    there was no other error message.....when i loaded a new page into my wordpress theme and clicked "view"...this is what i got,,,,
     
    tonyfloyd, Jul 5, 2007 IP
  4. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #4
    He means show us the code on line 32 of /home/tonykana/public_html/bloids/wp-content/themes/super-adsense/page.php
     
    klown, Jul 5, 2007 IP
  5. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi tonyfloyd..

    What we need to do is get a look at your "page.php".. That is where the error is and if you show us the code we may be able to help..
     
    uglyboy, Jul 5, 2007 IP
  6. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry for the repeat... i was a bit slow @ posting
     
    uglyboy, Jul 5, 2007 IP
  7. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #7
    aahhhh.....ok....

    </div>



    <!--

    <?php trackback_rdf(); ?>

    -->

    </div>

    <?php comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>

    <p>

    <?php _e('ܺg?arad? kriterlere uygun bir yaz?namad??>

    </p>

    <?php endif; ?>

    <p>

    <?php posts_nav_link('', ('Sonraki Yaz?amp;raquo;'), ('&laquo; Ö®ceki Yaz?); ?>

    </p>

    </div>

    <?php get_flickrRSS(18, "public", "celebrities"); ?>

    <?php get_l_sidebar(); ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>
     
    tonyfloyd, Jul 5, 2007 IP
  8. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #8
    <?php posts_nav_link('', ('Sonraki Yaz?amp;raquo;'), ('&laquo; Ö®ceki Yaz?); ?>

    this is line 32
     
    tonyfloyd, Jul 5, 2007 IP
  9. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #9
    <?php _e('ܺg?arad? kriterlere uygun bir yaz?namad??>

    doesnt look good for starters

    try

    <?php _e('ܺg?arad? kriterlere uygun bir yaz?namad); ?>



    whats with all the ????
     
    uglyboy, Jul 5, 2007 IP
  10. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #10
    it looks likes another language.. try popping an echo before and after the line "<?php _e('ܺg?arad? kriterlere uygun bir yaz?namad); ?>"

    if the echo is successful before and not after you know the problem is with that line.
     
    klown, Jul 5, 2007 IP
  11. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #11
    In fact scrap that.. i cant get my head round this at all (5.50 am)
     
    uglyboy, Jul 5, 2007 IP
  12. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #12
    ???....what should i do??
     
    tonyfloyd, Jul 5, 2007 IP
  13. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Oops, here is a simpler version

    replace <?php _e('ܺg?arad? kriterlere uygun bir yaz?namad); ?>" with

    <?php
    echo "before arad line\n\n";
    _e('ܺg?arad? kriterlere uygun bir yaz?namad);
    echo "after arad line\n\n";

    ?>

    Run the program and tell us where the program stops.
     
    klown, Jul 5, 2007 IP
  14. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #14
    This is the original code yes

    <?php
    get_header();
    ?>

    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="entry">
    <h1 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
    <?php the_title(); ?>
    </a> </h1>
    <div class="entrymeta-single">
    <?php
    edit_post_link(__('<strong>Edit This Page</strong>'));?>
    </div>
    <div class="entrybody">
    <?php the_content(__('Read more &raquo;'));?>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endwhile; else: ?>
    <p>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    </p>
    <?php endif; ?>
    <p>
    <?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
    </p>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
     
    uglyboy, Jul 5, 2007 IP
  15. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #15
    If you compare the two you should be able to fond the errors....
     
    uglyboy, Jul 5, 2007 IP
  16. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #16
    soo...what do i do?....this is all greek to me!!...lolo....and i am greek!!....this theme was customized......all was fine until 20 minutes ago....if i make any of these changes...will this screw up my entire site?
     
    tonyfloyd, Jul 5, 2007 IP
  17. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #17
    do i just cut and paste the code in its entirety?...replace the existing page.php file with the one above?
     
    tonyfloyd, Jul 5, 2007 IP
  18. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #18
    This is why you should always keep a back up copy of files you edit...

    Me personally i would replace page.php with the original super-adsense page.php and see if that sorts my problem out... If that didnt work i would start over.. after all its only a few text files... sorry i cant be any better help....
     
    uglyboy, Jul 5, 2007 IP
  19. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #19
    Parse error: syntax error, unexpected ';' in /home/tonykana/public_html/bloids/wp-content/themes/super-adsense/page.php on line 32

    this is the error i get now....i edited the funny looking other language code with the original page.php u provided above....what is this error?
     
    tonyfloyd, Jul 5, 2007 IP
  20. tonyfloyd

    tonyfloyd Well-Known Member

    Messages:
    1,230
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #20
    i got it!!!!....thanks!!!!
     
    tonyfloyd, Jul 5, 2007 IP