Links to real estate listings are no longer working with X theme but do work if I use Worprses

Hi,
On the site https://donahoeadvantage.com, there are real estate listings just under the main slider.
If you click on one of those, it will open a new tab, but the listing does not load.
Example:
https://donahoeadvantage.com/property/485900-5-bedroom-3-bathroom-2-storey-family-home-with-3549-sq-ft-of-living-space-at-2056-melrose-rd/
I have tried resaving the permalinks but that did not work.
The real estate listings come from a plugin called Estatik.
They looked at the problem and said the issue is with the theme because they substituted in one of the standard Wordpress themes and it works okay with that. Seems like a theme/plugin incompaibility.
Can you help please.

Hello @dtourcreative,

Thanks for writing in! I have tested the links and it actually works. The only problem is that there is a FATAL error which is why it is displaying a white screen.

We need to find out what is this error all about and what is causing the fatal error. Can you please enable the debug mode? You can do this by opening wp-config.php and adding

define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

When you revisit those listing pages, you should have some error output describing the issue in more detail. Meanwhile, please make sure that everything is up to date. Most of the time, outdated plugin may cause some issues.

Kindly let us know how it goes.

Hi,
Okay. This was helpful. Thank you. I think the support people at Estatik misled me. When I disable the plugin Gravity Forms, the error goes away. GF and all the plugins, theme, Wordpress and PHP are up to date. So I think this is a fundamental conflict between GF and the Estatik real estate plugin. I have put a ticket in with Gravity Forms and will reply to my open ticket with Estatik.
Thank you for your help.
Glenn

Gravity Forms had the following to say:

Karl replied

Hi Glenn,

That would be the error logging I’m looking for. However the stack trace is not mentioning any official Gravity Forms code, according to that stack trace the error is originating from some sort of Gravity Forms related library bundled with your theme (based on the directory structure, it looks like the parent theme).

Does the same error occur if you activate a default theme such as Twenty Twenty, Twenty Nineteen, etc? If it does, you will want to contact the theme developer for further assistance.

So the problem DOES NOT occur using Twenty Twenty theme.
Here is the output diagnostic:
Fatal error : Uncaught Error: Call to undefined function CS() in /home/dtourcreative/public_html/wp-content/themes/x/framework/functions/plugins/gravity-forms.php:47 Stack trace: #0 /home/dtourcreative/public_html/wp-includes/class-wp-hook.php(289): x_gravity_forms_checker(‘renew’) #1 /home/dtourcreative/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(’’, Array) #2 /home/dtourcreative/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/dtourcreative/public_html/wp-content/themes/x/framework/functions/frontend/styles.php(43): do_action(‘x_enqueue_style…’, ‘renew’, ‘’) #4 /home/dtourcreative/public_html/wp-includes/class-wp-hook.php(287): x_enqueue_site_styles(’’) #5 /home/dtourcreative/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/dtourcreative/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /home/dtourcreative/public_html/wp-includes/script-loader.php(2294): do_action(‘wp_enqueue_scri…’) #8 /home/dtourcre in /home/dtourcreative/public_html/wp-content/themes/x/framework/functions/plugins/gravity-forms.php on line 47

There has been a critical error on your website.

Hi @dtourcreative,

What’s on our theme is simply an integration to make sure Gravity Form works, here is the code

add_action('x_enqueue_styles', 'x_gravity_forms_checker', -1);

function x_gravity_forms_checker () {

    if ( is_plugin_active('gravityforms/gravityforms.php') ) {
      
      //Enqueue it globally but only when element or shortcode is present
      //The hook gform_enqueue_scripts is late binded, it appears after other enqueue or in the footer if it's called within the content.
      $checker = CS()->component('Shortcode_Finder');
      $shortcode = 'gravityform';

      global $post;

      if ( is_a( $post, 'WP_POST' ) ) { 

The error says it’s caused by CS() and undefined. But it isn’t, the CS() is part of cornerstone. I’m not sure what’s causing this on your site, but it shouldn’t trigger that error unless something is affecting it. Does it only happen when Estatik plugin is active?

Would you mind providing your admin login credentials so I can confirm these? And please make sure WP_DEBUG is set to true so we can see the errors while troubleshooting.

Thanks!

Hi. The real estate listing is produced by the Estatik plugin, so the only way there is a link to click on is because that plugin is enabled. Otherwise we will have no listing to click.
I am happy for you to have a look. How do I give you log in credentials? Via the “share” link button? I presume that is private. Is that correct?

Hello @dtourcreative,

You can create a secure note and insert your login details. To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thanks.

Secure note added above. Thank you.

Hello @dtourcreative,

I have managed to login to your site. I found out that single estate listing, Estatik Pro plugin immediately disable or deactivates all the other plugins. Can you please contact the creators of Estatik Pro why the plugins were deactivated when viewing the single estate listing? They should be able to help you with this issue. We are not familiar of this plugin. It is best that we ask some help from them.

Thank you for your understanding.

Hi,
I’m okay going back to Estatik but I have two problems:

  1. I don’t understand what you are telling me. Gravity Forms was disabled manually by me, because if it is enabled the listings don’t work. It’s more important (at the moment) to have the listing click through and work versus have the form working, until this problem is resolved. So when you say the Estatik plugin disables or deactivates ALL the other plugins…how is it you see that? When I look on the plugins tab there are SOME plugins disabled intentionally but not all of them are getting disabled that I know of. So can you help me to better understand what you are saying please?
  2. Estatik says that if they switch the theme to Twenty Twenty, the listings work. So that does imply an issue with the theme (I think). So I am caught in a finger pointing exercise between you the theme developer, and Estatik the listings plugin …and Gravity forms in the mix as well.

Hello @dtourcreative,

1.) The Gravity Form error occurred and displays this message:

Fatal error : Uncaught Error: Call to undefined function CS() in /home/dtourcreative/public_html/wp-content/themes/x/framework/functions/plugins/gravity-forms.php....

This is because the theme itself is trying to load the gravity form integration. There is a fatal error because the Cornerstone plugin were deactivated. The deactivation of the plugin only happens on the single real estate listing. We can always detect when Cornerstone is active or not because it will appear in the page source.

Homepage and Cornerstone is active:


Gravity Form plugin was temporarily deactivated so that the Single Real Estate Listing page will load.

Single Real Estate Listing page and Cornerstone were deactivated:
0Zt_5cGtQpmpzkkTl8625w

2.) The issue here is not with the theme. The theme actually works with the Estatik Pro well enough. The issue here is that why Estatik Pro plugin will deactivate Cornerstone, which is essential in displaying all the features and functions of the X theme, in a single real estate listing. While Gravity Form is being deactivated, you can see that the single real listing will display with some conflict. It is evident when you check the footer of the single real estate listing. This is because some of the stylings which should have come from Cornerstone plugin were missing.

Hope this makes sense.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.