Seems to be an issue with Pro Theme and Business Directory Plugin

Hi. I have Business Directory plugin from D. Rodenbaugh. I have all the latest updates. Business Directory is breaking up and not displaying properly. I disabled all my plugins and still same issue. So instead I changed the theme to 2017 and Business Directory worked like a charm. So Business Directory is not working with Pro Theme, though it did work with X Theme when I previously had that installed. There are several Business Directory pages that are not working. examples listed below.

https://www.thosecrazyvegans.net/directory/categories/buy-sell/
https://www.thosecrazyvegans.net/directory/categories/vegan-organizations/

Here is the main url of the business directory https://www.thosecrazyvegans.net/directory

Thanks!

The author of Business Directory plugin said it is the fault of the theme I am using. They said check my theme with Theme Check plugin at https://wordpress.org/plugins/theme-check . These are the errors I got back. There were more but I couldn’t add them all here. What do you think of these reported errors and the plugin?

REQUIRED: .gallery-caption css class is needed in your theme css.
Warning: More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs.
The domains found are __x__, bbpress, cornerstone, \n, my-text-domain, __x__ , buddypress
WARNING: The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
WARNING: Found a translation function that is missing a text-domain. Function _x, with the arguments 'cs-no-subset', 'Translate to: (greek, cyrillic, vietnamese) to add an additional font subset.'
WARNING: Found a translation function that is missing a text-domain. Function _e, with the arguments '__x__'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments '__x__'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Update Plugin'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'There is a new version of %1$s available. View version %4$s details.'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'There is a new version of %1$s available. View version %4$s details. %5$s'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'There is a new version of %1$s available. View version %4$s details or update now.'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Show Title'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Show Description'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Select which form you would like to display.'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Form'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Enable AJAX'
WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'Default Template'
WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'first string', \n, 'second string'
WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'first string', \n, 'second string', "\n"
WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'first string', \n, 'second string', "\n", 'third string'
WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'first string', \n, 'second string', "\n", 'third string', 'cornerstone'
WARNING: Found ini_set in the file cornerstone/includes/classes/common/class-router.php. Themes should not change server PHP settings.

Line 205: ini_set( 'display_errors', false );

WARNING: Found base64_encode in the file cornerstone/includes/classes/elements/class-element-renderer.php. base64_encode() is not allowed.

Line 207: $markup = base64_encode( apply_filters( 'cs_render_element_zone_output', $html ) );

Line 238: $this->html_cache[$key]  = '{{base64content '' . base64_encode( $content ) . '' }}';

WARNING: Found base64_encode in the file cornerstone/includes/classes/common/class-router.php. base64_encode() is not allowed.

Line 551: $action_response_data['data'] = base64_encode( gzcompress( json_encode( $action_response_data['data'] ), 9 

WARNING: Found base64_encode in the file cornerstone/includes/classes/common/class-common.php. base64_encode() is not allowed.

Line 279: return 'data:image/svg+xml;base64,' . base64_encode( '<svg xmlns='http://www.w3.org/2000/svg' width='{$width}px' 

WARNING: Found base64_encode in the file cornerstone/includes/classes/classic/builder/class-builder-renderer.php. base64_encode() is not allowed.

Line 149: $markup = '{{base64content '' . base64_encode( $markup ) . '' }}';

WARNING: Found base64_decode in the file cornerstone/includes/classes/common/class-router.php. base64_decode() is not allowed.

Line 385: $decoded = base64_decode( $data['request'] );

WARNING: Found base64_decode in the file cornerstone/includes/classes/app/class-preview-frame-loader.php. base64_decode() is not allowed.

Line 23: $this->state = json_decode( base64_decode( $_POST['cs_preview_state'] ), true );

WARNING: Both DOS and UNIX style line endings were found in the file framework/functions/global/admin/customizer/transients.php. This causes a problem with SVN repositories and must be corrected before the theme can be accepted. Please change the file to use only one style of line endings.
WARNING: Both DOS and UNIX style line endings were found in the file framework/functions/global/admin/customizer/preloader.php. This causes a problem with SVN repositories and must be corrected before the theme can be accepted. Please change the file to use only one style of line endings.
WARNING: Both DOS and UNIX style line endings were found in the file cornerstone/assets/dist-app/js/cs-vendor.js. This causes a problem with SVN repositories and must be corrected before the theme can be accepted. Please change the file to use only one style of line endings.
WARNING: file_put_contents was found in the file framework/functions/global/admin/addons/demo/class-x-demo-import-processor.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 188: file_put_contents( $temp, file_get_contents($url) );

WARNING: file_get_contents was found in the file framework/functions/global/admin/addons/demo/class-x-demo-import-processor.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 188: file_put_contents( $temp, file_get_contents($url) );

WARNING: file_get_contents was found in the file cornerstone/includes/classes/common/class-router.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 364: $data = json_decode( file_get_contents( 'php://input' ), true );

WARNING: .ds_store Hidden Files or Folders found.
REQUIRED: You are not allowed to hide the admin bar.
REQUIRED: This theme text domain does not match the theme's slug. The text domain used: __x__, bbpress, cornerstone, \n, my-text-domain, __x__ , buddypressThis theme's correct slug and text-domain is pro.
REQUIRED: The theme uses the register_taxonomy() function, which is plugin-territory functionality.
REQUIRED: The theme uses the register_post_type() function, which is plugin-territory functionality.
REQUIRED: The theme must not used the <title> tags.
REQUIRED: The theme must not call to wp_title().
REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output
REQUIRED: No reference to add_theme_support( "title-tag" ) was found in the theme.
REQUIRED: Found a Customizer setting that did not have a sanitization callback function. Every call to the add_setting() method needs to have a sanitization callback function passed.
REQUIRED: framework/functions/global/admin/addons/setup.php. Themes should use add_theme_page() for adding admin pages.

Line 96: add_submenu_page( 'x-addons-home', 'Validation', 'Validation', 'manage_opti

REQUIRED: framework/functions/global/admin/addons/setup.php. Themes should use add_theme_page() for adding admin pages.

Line 95: add_menu_page( 'Validation', X_TITLE, 'manage_options', 'x-addons-home', 'x

REQUIRED: cornerstone/includes/classes/admin/class-admin.php. Themes should use add_theme_page() for adding admin pages.

Line 197: add_submenu_page( 'cornerstone-home', $title, csi18n('admin.dashboard-menu-

Line 209: add_submenu_page( $settings_location, $title, $settings_title, 'manage_opti

REQUIRED: cornerstone/includes/classes/admin/class-admin.php. Themes should use add_theme_page() for adding admin pages.

Line 196: add_menu_page( $title, $title, 'manage_options', 'cornerstone-home', array(

REQUIRED: STYLESHEETPATH was found in the file framework/legacy/cranium/headers/setup.php. Use get_stylesheet_directory() instead.

Line 79: if ( file_exists( STYLESHEETPATH . '/' . $template ) ) {

REQUIRED: STYLESHEETPATH was found in the file framework/legacy/cranium/footers/setup.php. Use get_stylesheet_directory() instead.

Line 74: if ( file_exists( STYLESHEETPATH . '/' . $template ) ) {

RECOMMENDED: Possible variable $text found in translation function in framework/functions/global/admin/addons/setup.php. Translation function calls must NOT contain PHP variables.

Line 44: <a class='tco-btn tco-btn-nope' href='#' data-tco-toggle='<?php echo $box_class; ?> .tco-overlay'><?php _e( $text, '__x__' ); ?></a>

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/toggle.php. Translation function calls must NOT contain PHP variables.

Line 81: 'title'      => __( $t_pre . 'Toggle', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/separator.php. Translation function calls must NOT contain PHP variables.

Line 62: 'title'      => __( $t_pre . 'Separator', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/particle.php. Translation function calls must NOT contain PHP variables.

Line 62: 'title'      => __( $t_pre . ' Particle Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/particle.php. Translation function calls must NOT contain PHP variables.

Line 156: 'title'      => __( $t_pre . 'Particle Style', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/mejs.php. Translation function calls must NOT contain PHP variables.

Line 160: 'title'      => __( $t_pre . ' Controls Colors', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/mejs.php. Translation function calls must NOT contain PHP variables.

Line 132: 'title'      => __( $t_pre . ' Controls Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 68: 't_pre'     => __( $t_pre . ' Graphic Icon', '__x__' ),

Line 75: 't_pre'     => __( $t_pre . ' Graphic Icon', '__x__' ),

Line 388: 'title'      => __( $t_pre . ' Graphic Icon', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 376: 't_pre'     => __( $t_pre . ' Graphic', '__x__' ),

Line 465: 't_pre'     => __( $t_pre . ' Graphic', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 368: 'title'      => __( $t_pre . ' Graphic Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 228: 'title'      => __( $t_pre . ' Secondary Graphic Image', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 211: 'title'      => __( $t_pre . ' Primary Graphic Image', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/graphic.php. Translation function calls must NOT contain PHP variables.

Line 182: 'title'      => __( $t_pre . ' Graphic Image', '__x__' ),

Line 427: 'title'      => __( $t_pre . ' Graphic Image', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/bg.php. Translation function calls must NOT contain PHP variables.

Line 54: 'title'      => __( $t_pre . ' Background Lower Layer', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/bg.php. Translation function calls must NOT contain PHP variables.

Line 228: 'title'      => __( $t_pre . ' Background Parallax', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/bg.php. Translation function calls must NOT contain PHP variables.

Line 141: 'title'      => __( $t_pre . ' Background Upper Layer', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 79: 't_pre'     => __( $t_pre, '__x__' ),

Line 89: 't_pre'     => __( $t_pre, '__x__' ),

Line 103: 't_pre'     => __( $t_pre, '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 604: 't_pre'     => __( $t_pre . ' Sub Indicator', '__x__' ),

Line 610: 't_pre'     => __( $t_pre . ' Sub Indicator', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 539: 'title'    => __( $t_pre . ' Sub Indicator Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 500: 't_pre'     => __( $t_pre . ' Text', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 487: 'title'      => __( $t_pre . ' Text Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 366: 'title'      => __( $t_pre . ' Setup', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 131: 't_pre'     => __( $t_pre . ' Secondary', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 117: 't_pre'     => __( $t_pre . ' Primary', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/anchor.php. Translation function calls must NOT contain PHP variables.

Line 110: 't_pre'     => __( $t_pre . ' Content', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_text-style.php. Translation function calls must NOT contain PHP variables.

Line 41: 'title'      => __( $t_pre . 'Text Style', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_text-shadow.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Text Shadow', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_text-format.php. Translation function calls must NOT contain PHP variables.

Line 40: 'title'      => __( $t_pre . 'Text Format', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_padding.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Padding', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_menu.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Menu', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_margin.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Margin', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_link.php. Translation function calls must NOT contain PHP variables.

Line 39: 'title'      => __( $t_pre . 'Link', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_info.php. Translation function calls must NOT contain PHP variables.

Line 42: 'title'      => __( $t_pre . 'Info', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_image.php. Translation function calls must NOT contain PHP variables.

Line 41: 'title'      => __( $t_pre . 'Image', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_flex.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Flex', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_flex-layout-css.php. Translation function calls must NOT contain PHP variables.

Line 38: 'title'      => __( $t_pre . 'Flex Layout', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_flex-layout-attr.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Flex Layout', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_box-shadow.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Box Shadow', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_border.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Border', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_border-radius.php. Translation function calls must NOT contain PHP variables.

Line 36: 'title'      => __( $t_pre . 'Border Radius', '__x__' ),

RECOMMENDED: Possible variable $t_pre found in translation function in cornerstone/includes/elements/mixins/_anim.php. Translation function calls must NOT contain PHP variables.

Line 113: 'title'      => __( $t_pre . 'Animation', '__x__' ),

RECOMMENDED: No reference to add_theme_support( "custom-header", $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: No reference to add_theme_support( "custom-background", $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
RECOMMENDED: Tags: is either empty or missing in style.css header.

Hey @michaellanfield,

We first would want to know if this issue is caused by the parent Pro theme itself and not coming from customizations. Would you mind switching to the parent theme and then remove custom CSS and JS code. If that could not be done in your live site, please copy your site to a staging server and we’ll investigate the issue there if you provide us with WordPress admin and FTP access.

Thanks.

hello Christian. Yes I did that I am attaching a private note as well.

Hi there,

The plugin and the theme isn’t compatible, looks like the plugin only works on its compatible theme, and on minimal theme. The issue is the archive template and it displays the excerpt instead of full-content. Other plugins has options for templates (what template to use) but this one doesn’t have.

I tried using different template but it’s not working, the fix should be done on both end (theme and the plugin). Unfortunately, I can’t go further since it’s a 3rd party plugin. I could add this to our issue tracker as feature request.

Thanks!

Thank you but this seemed like the perfect plugin Business Directory for what we needed and no other directory plugin comes even close. Also it did work with X theme, so what is the issue here?

Hi there,

The issue is the template + v2 elements. The combination changes the output of the excerpt in the archive page. Try using classic elements to warp your Business Directory elements but there is no guarantee.

Thanks!

Damn. I did added the Business Directory shortcode to the classic editor and still only the main page of the directory works and the rest does not. Is there no way to get around this? Because there is no other plugin that fits our needs. I would appreciate any help on this, even though I know you guys don’t do custom work/coding.

Hi there,

Let’s do this, but I can’t guarantee if this is going to work. The main idea is displaying the full content in archive page.

Please create this file in your child theme \framework\views\global\_content.php then add this content to that file.

<?php

// =============================================================================
// VIEWS/GLOBAL/_CONTENT.PHP
// -----------------------------------------------------------------------------
// Display of the_excerpt() or the_content() for various entries.
// =============================================================================

$stack                     = x_get_stack();
$is_full_post_content_blog = is_home() && x_get_option( 'x_blog_enable_full_post_content' ) == '1';

?>

<?php

if ( is_singular() || $is_full_post_content_blog || is_tax('wpbdp_category') ) :
  x_get_view( 'global', '_content', 'the-content' );
  if ( $stack == 'renew' ) :
    x_get_view( 'renew', '_content', 'post-footer' );
  endif;
else :
  x_get_view( 'global', '_content', 'the-excerpt' );
endif;

?>

The fix is adding is_tax('wpbdp_category') to let it use full-content display for its own taxonomy page.

Thanks!

yea it did not work, but thank you for all the help and patience.

Hey There,

Sorry if it did not work out. It’s worth a try though.

Regards.

1 Like

It seems that there are many plugins I’ve tried that don’t work well with Pro theme. What do you guys think of Theme Check finding all those warnings with your theme?

Hi there,

The theme check result is based on their standard only. And those result has no connection with archive template. Maybe what you need is fully customized templates for that plugin. Like here https://codex.wordpress.org/Creating_an_Archive_Index and https://developer.wordpress.org/themes/basics/template-hierarchy/, with naming of archive-wpbdp_listing.php

Our theme uses global archive templates, your plugin works on other themes since they uses a dedicated archive templates. And with this, you’ll have to create your own versions of templates.

Thanks!

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