Bridge Wordpress Theme Installation Error


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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lucas BishopClick TrackerCommented:
Open this file in a text editor:

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.
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>';

		$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();
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.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.