Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected in product_listing.php


SandyNovotny

Recommended Posts

I am installing a new store, and I just noticed (while testing a security contribution) that when I use the search box I receive this error

Products meeting the search criteria

Parse error: syntax error, unexpected ';' in /home2/fullofju/public_html/discountwitch/store/includes/modules/product_listing.php on line 135

I haven't modded the product_listing.php at all, so I am very confused.

 

When I pull the code up in CuteHTML, line 135 is

$prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $listing['products_id']) . '</td>';
I'm no expert, but I don't see anything wrong with that? Any ideas?
Link to comment
Share on other sites

You're missing a ). Try this:

            $prod_list_contents .= '        <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>';

That's straight from the source. If you truly haven't made any changes to this file, start looking for the hack files.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

You're missing a ). Try this:

            $prod_list_contents .= '        <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>';

That's straight from the source. If you truly haven't made any changes to this file, start looking for the hack files.

 

Regards

Jim

 

That worked, thanks! I have no clue how it got changed, especially since I am simultaneously building a mirror site and it never had this issue, but I'm glad it is fixed :) Thanks again!

Link to comment
Share on other sites

I repeat: If you didn't change it, the only other possibility is that you've been hacked. Better find out now.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I repeat: If you didn't change it, the only other possibility is that you've been hacked. Better find out now.

 

Regards

Jim

 

Thanks Jim, I've been searching through everything because I wanted to be sure this wasn't some sort of weird hack, and I finally found the issue. The only difference between the 2 stores is I had neglected to add the add on "Ultimate Seo Urls 5" to the 2nd store. After looking through the files of the Ultimate Seo Urls 5, I discovered that it does indeed change the file in question. I'll get ahold of someone to let them know.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...