Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1327589
    soundview
    Participant

    After updating X theme (skipping several versions), I get this PHP error on certain pages, preventing content from displaying:
    /wp-content/themes/x-child/framework/views/renew/_landmark-header.php on line 25

    The line in question (_landmark-header.php line 25) reads:
    <?php if(x_is_service_area()) : ?>

    The updated (broken) version is a local dev site. The live, functional site can be inspected; I can provide PHP call stacks and code from the dev version, or whatever else you need.

    Please advise.

    #1327741
    Jade
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1327860
    soundview
    Participant

    New question:
    I fixed the problem by commenting out some PHP referring to breadcrumbs, in _landmark-header.php. Did the way breadcrumbs are implemented change?

    If I want to re-implement breadcrumbs, how can I modify/replace this code to do so?

    <?php if ($breadcrumbs == '1') : ?>
    	<?php if (!is_front_page() && !x_is_portfolio() && !x_is_faq()) : ?>
    		<div class="x-breadcrumbs-wrap">
    			<?php x_breadcrumbs(); ?>
    		</div>
    	<?php endif; ?>
    <?php endif; ?> 

    and

    <?php if (x_is_faq()) : ?>
    	<div class="x-breadcrumbs-wrap">
    		<?php x_breadcrumbs(); ?>
    	</div>
    <?php endif; ?>
    #1327909
    soundview
    Participant

    P.S.
    This is the code I commented-out in order to resolve the problem I described initially.

    #1328265
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! There is a fatal error in your site. It is not because of the breadcrumbs. It maybe because of your certain conditions. Please keep in mind that there is NO functions that you can use as a condition like this x_is_faq() or x_is_service_area(). Unless you have created this function then it should work. Can you please enable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', true);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page, you should have some error output describing the issue in more detail.

    Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-1327589 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>