Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not so easy populate 2.7.2


PureGeek

Recommended Posts

Hi I've been trying to install easy populate and I've gotten to step #3 For adding link to the Admin. I keep getting this error

 

Parse error: syntax error, unexpected T_CLASS in /home/mysigngi/public_html/shop/admin/includes/boxes/catalog.php on line 26

 

Line 26 is the exact line of the issue. I've checked the code twice and here is what it looks like in the file.

 

'<a href="' . tep_href_link('easypopulate.php',",'NONSSL').'" class="menuBoxContentLink">Easy Populate</a><br>'.

 

I'm not really sure what I'm doing wrong, can someone help me.

Thanks

Link to comment
Share on other sites

The line of code that goes in catalog box is valid code but it may not work with your catalog file. You will need to past that whole file here for someone to be able to see what the problem is. By the way, you should be using version 2.76 by Surfalot.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The line of code that goes in catalog box is valid code but it may not work with your catalog file. You will need to past that whole file here for someone to be able to see what the problem is. By the way, you should be using version 2.76 by Surfalot.

 

Jack

 

 

Hiya Jack, and thanks for taking a look at my issue (I never have problems, just issues) and here is the file.

 

<?php

/*

$Id: catalog.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- catalog //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_CATALOG,

'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));

 

if ($selected_box == 'catalog') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- catalog_eof //-->

 

Once I removed the line of code it all went back to working just great.

Oh and by the way can u pass the link to Surfalot.

Thanks

Link to comment
Share on other sites

You need to post the code with the change you make in it. Otherwise there is no way to see the mistake.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You need to post the code with the change you make in it. Otherwise there is no way to see the mistake.

 

Jack

 

Ok Jack, here goes. I'm sorry that I couldn't get back here sooner. I included the line of code here, and I'm still getting this error.

 

ERROR

Parse error: syntax error, unexpected T_CLASS in /home/mysigngi/public_html/shop/admin/includes/boxes/catalog.php on line 26

 

I color coded the code so you'd know where it is in the file.

 

Any help would be great, thanks.

 

 

/*

$Id: catalog.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- catalog //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_CATALOG,

'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));

 

if ($selected_box == 'catalog') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .

'<a href="' . tep_href_link('easypopulate.php',",'NONSSL').'" class="menuBoxContentLink">Easy Populate</a><br>'.

 

'<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- catalog_eof //-->

Link to comment
Share on other sites

Try changing this

'<a href="' . tep_href_link('easypopulate.php',",'NONSSL').'" class="menuBoxContentLink">Easy Populate</a><br>'.

to this

'<a href="' . tep_href_link('easypopulate.php', '', 'NONSSL') . '" class="menuBoxContentLink">Easy Populate</a><br>' .

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Try changing this
'<a href="' . tep_href_link('easypopulate.php',",'NONSSL').'" class="menuBoxContentLink">Easy Populate</a><br>'.

to this

'<a href="' . tep_href_link('easypopulate.php', '', 'NONSSL') . '" class="menuBoxContentLink">Easy Populate</a><br>' .

 

Jack

 

Hey! That worked, or at least there is a link there. I can see how you changed the file, but I don't understand how that affected it. If you have a moment could you tell me how that changed it.

Once again thanks a bunch. We just got Vista at our office and I'm getting tons of calls about "Where is the identities?"

Sandy :rolleyes:

Link to comment
Share on other sites

In this section

'easypopulate.php', '',

the '', mine is two single quotes (apostrophes) but yours had one double quote.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...