Bridge Wordpress Theme Installation Error

Hello,

I'm getting this error when instilling the wordpress theme Bridge:

Parse error: syntax error, unexpected T_STRING in .../public_html/honestoakseo/wp-content/themes/bridge/framework/modules/woocommerce/woocommerce-functions.php on line 124

What do I do?
LVL 7
weikelbobAsked:
Who is Participating?
 
Peter HartCommented:
it is not a coding problem.

Most Probably there is a conflict with versions.  of theme and woocommerce

Does the bridge theme comes with  woocommrce plugin as part of the theme ?

I would install  the latest version of Bridge   THEN install the latest version of Woocommerce


but google "Wordpress theme Bridge and woocommerce problems"  - looks like you are not alone.
0
 
Lucas BishopClick TrackerCommented:
Open this file in a text editor:
/public_html/honestoakseo/wp-content/themes/bridge/framework/modules/woocommerce/woocommerce-functions.php

Copy the code block that line 124 is a part of.

Paste it in here for review. There is a syntax error in this file. Could be something as simple as a missing character.
0
 
weikelbobAuthor Commented:
/**
 * Loads more function for portfolio.
 */
if(!function_exists('qode_product_ajax_load_category')) {
	function qode_product_ajax_load_category() {
		$shortcode_params = array();

		if(!empty($_POST)) {
			foreach ($_POST as $key => $value) {
				if($key !== '') {
					$addUnderscoreBeforeCapitalLetter = preg_replace('/([A-Z])/', '_$1', $key);
					$setAllLettersToLowercase = strtolower($addUnderscoreBeforeCapitalLetter);

					$shortcode_params[$setAllLettersToLowercase] = $value;
				}
			}
		}

		$html = '';

		$product_list = new \Bridge\Shortcodes\ProductList\ProductList();

		$query_array = $product_list->generateProductQueryArray($shortcode_params);
		$query_results = new \WP_Query($query_array);

		if($query_results->have_posts()): while ($query_results->have_posts()) : $query_results->the_post();
			$html .= qode_get_woo_shortcode_module_template_part('templates/parts/'.$shortcode_params['info_position'], 'product-list', '', $shortcode_params);
		endwhile; else:
			$html .= '<p class="qode-no-posts">'.esc_html__('No products were found!', 'qode').'</p>';
		endif;
		wp_reset_postdata();

		$return_obj = array(
			'html' => $html,
		);

		echo json_encode($return_obj); exit;
	}

	add_action('wp_ajax_nopriv_qode_product_ajax_load_category', 'qode_product_ajax_load_category');
	add_action( 'wp_ajax_qode_product_ajax_load_category', 'qode_product_ajax_load_category' );
}

Open in new window


This is 124 in textwrangler:

$product_list = new \Bridge\Shortcodes\ProductList\ProductList();
0
 
weikelbobAuthor Commented:
I reinstalled wordpress and got the same error. Could this be a PHP version problem or something similar? Looking for any help I can get.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.