Tagged: x
-
AuthorPosts
-
January 12, 2017 at 1:11 pm #1327589
soundviewParticipantAfter 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 25The 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.
January 12, 2017 at 3:12 pm #1327741
JadeModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
January 12, 2017 at 4:49 pm #1327860
soundviewParticipantNew 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; ?>January 12, 2017 at 5:55 pm #1327909
soundviewParticipantP.S.
This is the code I commented-out in order to resolve the problem I described initially.January 12, 2017 at 10:29 pm #1328265
Rue NelModeratorHello 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()orx_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 openingwp-config.phpand 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1327589 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
