• Resolved mepusica

    (@mepusica)


    Hi

    I have now figured out what is wrong with my blog. Apparently there is a problem with my archive.php file according to the following error message:

    Parse error: syntax error, unexpected T_ELSE in /customers/pokerbankrollblog.com/pokerbankrollblog.com/httpd.www/wp-content/themes/delight/archive.php on line 53

    Does anybody know how to solve the problem as I am a complete idiot when it comes to programming.

    Best Regards

    Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • Usually that error means something miss coded in a theme’s template file.

    If necessary, download and install a clean copy of your theme (see Using Themes for instruction on installing new themes).

    Thread Starter mepusica

    (@mepusica)

    Hi Michael

    Problem is the archive.php file has been custom made, so it won’t be restored by installing a clean copy of the theme.
    Do you know how to fix the code in a php file?

    Then paste a copy of that template at a pastebin and report the link back here so maybe someone can see the problem…

    Thread Starter mepusica

    (@mepusica)

    Hi

    Here’s a link to my archive.php at pastebin:

    https://pastebin.com/d260de02a

    As mentioned ealier the error seems to be in line 53 according to the error message I get:

    Parse error: syntax error, unexpected T_ELSE in /customers/pokerbankrollblog.com/pokerbankrollblog.com/httpd.www/wp-content/themes/delight/archive.php on line 53

    Likely need this:

    <?php if (have_posts()) : ?>

    after this line:

    <div id="content-left">

    Look at the wp-content/themes/default/archive.php for examples.

    Thread Starter mepusica

    (@mepusica)

    SWEEEET, it worked!!!

    Thanks a lot Michael….you have saved my day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problems with archive.php file’ is closed to new replies.