Hikashop menu creation Problem

  • Posts: 2
  • Thank you received: 0
11 years 5 months ago #149095

-- url of the page with the problem -- : idweb-agence.com
-- HikaShop version -- : HikaShop Essential 2.3.0
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.3.16
-- Browser(s) name and version -- : Chrome Version 33.0.1750.152
-- Error-message(debug-mod must be tuned on) -- :
Parse error: syntax error, unexpected $end in /homez.xxx/idwebage/www/administrator/components/com_hikashop/views/menus/tmpl/form.php on line 676.

I try to create a menu link categories listing. When i clik on Hikashop options, i've got this error message :
"Parse error: syntax error, unexpected $end in /homez.xxx/idwebage/www/administrator/components/com_hikashop/views/menus/tmpl/form.php on line 676"

i have take a look `to this file but seen nothing special.
Any help woul'd be appreciated.
Regards
Céline

Last edit: 11 years 5 months ago by IDWeb.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
11 years 5 months ago #149102

I'm having the exact same problem! (hikashop 2.3.0, joomla 2.5.19, php 5.4, browser: firefox)

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
11 years 5 months ago #149106

it seems that there is one { too but can't see where. Maybe
<?php if (!HIKASHOP_BACK_RESPONSIVE) { ?> line 21 and line 437 :(
When i try to close it i get "Resticted access" error

Last edit: 11 years 5 months ago by IDWeb.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #149109

Hi,

Indeed there is a missing "}" near the line "424".
Thanks to replace:

<?php
if(!empty($this->extra_blocks['products'])) {
	foreach($this->extra_blocks['products'] as $r) {
		if(is_string($r))
			echo $r;
		if(is_array($r)) {
			if(!isset($r['name']) && isset($r[0]))
				$r['name'] = $r[0];
			if(!isset($r['value']) && isset($r[1]))
				$r['value'] = $r[1];
?>
						<tr>
							<td class="key"><?php echo JText::_(@$r['name']); ?></td>
							<td><?php echo @$r['value']; ?></td>
						</tr>
<?php
	}
}
?>
By:
<?php
if(!empty($this->extra_blocks['products'])) {
	foreach($this->extra_blocks['products'] as $r) {
		if(is_string($r))
			echo $r;
		if(is_array($r)) {
			if(!isset($r['name']) && isset($r[0]))
				$r['name'] = $r[0];
			if(!isset($r['value']) && isset($r[1]))
				$r['value'] = $r[1];
?>
						<tr>
							<td class="key"><?php echo JText::_(@$r['name']); ?></td>
							<td><?php echo @$r['value']; ?></td>
						</tr>
<?php
		}
	}
}
?>

We have corrected it on our end.

The following user(s) said Thank You: IDWeb

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
11 years 5 months ago #149113

Perfect! Mine's working now - thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum