• Resolved Hahazz

    (@hahazz)


    Something wrong happened when i changed the page.php, in the ‘editor-sector’. Everytime i want to open a page on my website, the next error occure:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /public/sites/www.forzahhc.nl/wp-content/themes/twentyten/page.php on line 31

    Anyone who can help me? It’s very important!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Like the error says, generally this is just because of a syntax error, for example a forgotten <, ;, ), etc. If you are able to pull up page.php in the editor, can you copy and paste what line 31 is (and just to be safe the lines around line 31 as well)? Without seeing the code itself it will be difficult to determine the cause since we don’t know what it is that you changed on page.php. If you have backups, you might also consider restoring just the page.php page to get your site up and running again.

    Kevin

    Thread Starter Hahazz

    (@hahazz)

    <div class="entry-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' .  'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    						<?php edit_post_link( 'Edit', 'twentyten' ),  '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-content -->
    				</div><!-- #post-## -->

    [Please post code snippets between backticks or use the code button.]

    In this piece there’s missing __) 2 times, but i don’t remember where i changed it! I removed it, cause i hate the underline at the hyperlinks on the website. We’ve got a lot of orange text, and then the underline is always blue, so i wanted to delete that line, and then i saw the __), and i thought: ‘He, that’s a line!’ So i removed it, but don’t know where to put it back.

    Don’t edit the Twenty Ten theme. Instead create a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    In the meantime, download a fresh copy of Twenty Ten to your computer, open the archive, extract the page.php file and upload this to wp-content/themes/twentyten using FTP (or whatever file management application your host provides).

    Thread Starter Hahazz

    (@hahazz)

    @ Esmi

    If we download a new version, al things became in English. Our website is in Dutch, so that’s very annoying…

    On my site it looks like this:

    <div class="entry-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-content -->
    				</div><!-- #post-## -->

    [Please post code snippets between backticks or use the code button.]

    There are two __ in mine that is not in yours, I hope that helps! You can find that in the editor on the loop-page.php page.

    Thread Starter Hahazz

    (@hahazz)

    VERY VERY THANKS!! Problem solved!

    Thank you very much!

    al things became in English

    Do you have a language file for the theme?

    Thread Starter Hahazz

    (@hahazz)

    Do you have a language file for the theme?

    What do you mean?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page not shown’ is closed to new replies.