• Resolved RachaelButts

    (@rachaelbutts)


    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you reinstall your theme?

    What is on line #36 in your file?

    Thread Starter RachaelButts

    (@rachaelbutts)

    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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter RachaelButts

    (@rachaelbutts)

    lol, I am the developer.

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

    Thread Starter RachaelButts

    (@rachaelbutts)

    <?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.]

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

    Thread Starter RachaelButts

    (@rachaelbutts)

    Thanks! That is odd I never touched that page.

    Resolved, thanks for the quick response 🙂

    No problem 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error page.php on line 36’ is closed to new replies.