• Resolved spgass

    (@spgass)


    When clicking on any of the page links, the following error appears:

    Parse error: syntax error, unexpected T_IF in /home/spgass/lowtechtimes.com/wp/wp-content/themes/veryplaintxt/page.php on line 19

    Any fixes?

    Thanks,
    S.P. Gass
    http://lowtechtimes.com

Viewing 9 replies - 1 through 9 (of 9 total)
  • Please upload your page.php file here http://uploading.com/ then provide us the link to download your page.php file.

    Like that I will be able to see what’s wrong at line 19.

    I think this it miss a ‘IF‘ statement or there is an extra ‘IF‘ statement somewhere. Or a missing semicolon.

    Double check your file at line 19, then check before and after this line.

    As long as you didn’t modify anything, line 19 is

    <?php if ( get_post_custom_values('comments') ) comments_template() // Add a key/value of "comments" to load comments on a page ?>

    Ummmmm…
    If think it miss a semicolon here just after “comments_template()”, try to replace the line 19 with this below :

    <?php if ( get_post_custom_values('comments') ) comments_template(); // Add a key/value of "comments" to load comments on a page ?>

    How long do you meet this error ?
    Since you have installed this theme ?

    From what I know about php, that semicolon isn’t required

    And lloking at that theme, the closing semi colon isn’t used at all, anywhere in the code.

    I personally always use one, but not required

    OK…

    And try to replace with this below (without “comments”) :

    <?php if ( get_post_custom_values('comments') ) comments_template(); // Add a key/value of comments to load comments on a page ?>

    Thread Starter spgass

    (@spgass)

    Thank you! Replacing the line of code with the semicolon line worked! I left the quotes around “comments” so that wasn’t the issue.

    http://lowtechtimes.com/about/

    I’d been using the theme for quite some time with pages working, but a reader let me know about the issue only recently. Maybe it was related to a recent WP upgrade…? I don’t remember editing page.php previously…

    Have a great weekend!

    I downloaded the latest release of your theme from http://wordpress.org/extend/themes/veryplaintxt and I saw the issue in page.php ! It’s still there.

    Thread Starter spgass

    (@spgass)

    I think the theme author has moved on to other projects… hopefully anyone else with the same issue will find your solution. Thanks again!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘veryplaintxt pages not working’ is closed to new replies.