• Resolved Maverick

    (@falcon2045)


    There seems to be a syntax error in the attachment.php in the latest version. If you are getting an PHP Error when clicking on Attachment pages, or directly linking to them, change the following line:

    Go to: /wordpress/wp-content/themes/nirvana/attachment.php

    In Line 68, change this:

    <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute() ); ?>" rel="attachment"><?php

    to this:

    <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php

    Note the missing additional “)” (closing bracket) after the_title_attribute().

    You can edit the file using the WordPress internal editor (Can be found under “Themes” => “Editor”) or you can directly edit the file via a FTP Client and an editor like Notepad++.

    I hope this will be officially fixed by Cryout Creations in the next release ??

    • This topic was modified 8 years, 3 months ago by Maverick.
  • The topic ‘Solution for PHP Syntax Error in latest version on Attachment Pages’ is closed to new replies.