Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ACA 2.0 - got Parse error when trying to install


CDK

Recommended Posts

Posted

hi guys

 

i got an error while trying to install ACA2

http://www.oscommerce.com/community/contributions,2611

 

ERROR MSG: "Parse error: parse error, unexpected '}' in ....\shop\admin\includes\boxes\modules.php on line 32"

 

 <?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_MODULES,
				 'link'  => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules'));

 if ($selected_box == 'modules') {
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>');
							   	// START ACA 2.0
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' .
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>' .
								// END ACA 2.0 

}
 $box = new box;
 echo $box->menuBox($heading, $contents);
?>

 

 

line 32 is "}" (a line before "$box = new box;")

Posted
hi guys

 

i got an error while trying to install ACA2

http://www.oscommerce.com/community/contributions,2611

 

ERROR MSG: "Parse error: parse error, unexpected '}' in ....\shop\admin\includes\boxes\modules.php on line 32"

 

 <?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_MODULES,
				 'link'  => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules'));

 if ($selected_box == 'modules') {
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>');
							   	// START ACA 2.0
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' .
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>' .
								// END ACA 2.0 

}
 $box = new box;
 echo $box->menuBox($heading, $contents);
?>

line 32 is "}" (a line before "$box = new box;")

 

If you look at the previous uncommented line before the error:

 

'</a><br>' .

 

There is an ophan dot at the end, so the system thinks there should be another string and instead is find a '}'. Replace that dot with a semicolon and you'll likely be ok.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Posted

FIXED

 

by doing this

<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_MODULES,
				 'link'  => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules'));

 if ($selected_box == 'modules') {
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>' .
							   	// START ACA 2.0
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' .
								'<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>');
								// END ACA 2.0 

}
 $box = new box;
 echo $box->menuBox($heading, $contents);
?>

Posted
If you look at the previous uncommented line before the error:

 

'</a><br>' .

 

There is an ophan dot at the end, so the system thinks there should be another string and instead is find a '}'. Replace that dot with a semicolon and you'll likely be ok.

 

Be well,

Tina

 

 

ahh thanks :)

heheh i solved it before i read your comment

silly me :blush:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...