WordPress.org

Forums

Adventure Journal
[resolved] Error page.php on line 36 (11 posts)

  1. RachaelButts
    Member
    Posted 2 years ago #

    Hi there-

    I am getting an error on the page.php on line 36 on random pages. Right now it is appearing on http://ropetekwraptor.com/ropetek-wraptor/instructions/

    I have already tried deactivating the plugins and didn't fix it.

    I also switched to the 2011 theme and the page worked fine, so just seeing it as a theme error.

    Let me know what I can do to get it up and running.

    Thanks!
    Rachael

  2. Andrew
    Forum moderator
    Posted 2 years ago #

    Can you reinstall your theme?

  3. noahjonah
    Member
    Posted 2 years ago #

    What is on line #36 in your file?

  4. RachaelButts
    Member
    Posted 2 years ago #

    this is my exact error:

    Parse error: syntax error, unexpected $end in /home/ropetek/public_html/wp-content/themes/adventure-journal/page.php on line 36

  5. Andrew
    Forum moderator
    Posted 2 years ago #

    Noahjonah was querying the code that error is referring to.
    Can you ask one of your WordPress developers or Consultants to resolve this for you?

  6. RachaelButts
    Member
    Posted 2 years ago #

    lol, I am the developer.

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    Can you drop a copy of page.php into a pastebin for us to have a look at?

  8. RachaelButts
    Member
    Posted 2 years ago #

    <?php
    /**
     * @package WordPress
     * @subpackage Adventure_Journal
     */
    global $multipage;
    get_header();
    ?>
    <div class="content" <?php ctx_aj_getlayout(); ?>>
        <div id="col-main" style="<?php echo ctx_aj_customwidth('content'); ?>">
          <div id="main-content" <?php //ctx_aj_crinkled_paper(); ?>>
          <!-- BEGIN Main Content-->
    		 <?php
    		//Start the Loop
    		if (have_posts()) : while (have_posts()) : the_post(); ?>
    
                        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                        <?php echo sprintf('<h1 class="storytitle">%s</h1>',get_the_title());?>
    
                        <?php
                            if(!function_exists('is_admin_bar_showing')){
                                edit_post_link(__('Edit Page', 'adventurejournal'));
                            } else if ( !is_admin_bar_showing() ){
                                edit_post_link(__('Edit Page', 'adventurejournal'));
                            }
                        ?>
    
                        <div class="storycontent">
                            <?php the_content(__('(more...)')); ?>
                        </div>
    
    	<?php get_sidebar(); ?>
         <div class="clear"></div>
    </div>
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    You seem to be missing the closing <?php endwhile; endif;?> statements for your Loop.

  10. RachaelButts
    Member
    Posted 2 years ago #

    Thanks! That is odd I never touched that page.

    Resolved, thanks for the quick response :)

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    No problem :-)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.