Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't find the parse error - help!


Guest

Recommended Posts

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /xxxxxxxxxx/htdocs/includes/functions/html_output.php on line 16

 

That's the error I'm getting on this website - www.ElectricQuarter.com whewn I have it in place, right now I have my un-altered html_output.php in place and it seems to be working fine. Here's my html_output.php code that I'm having a problem with:

<?php

/*

$Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

////

// Ultimate SEO URLs v2.1

// The HTML href link wrapper function

function 'NONSSL', $add_session_id = true, $search_engine_safe = true) {

global $seo_urls;

tep_href_link($page = '', $parameters = '', $connection = if ( !is_object($seo_urls) ){

if ( !class_exists('SEO_URL') ){

include_once(DIR_WS_CLASSES . 'seo.class.php');

}

global $languages_id;

$seo_urls = new SEO_URL($languages_id);

}

return $seo_urls->href_link($page, $parameters, $connection, $add_session_id);

}

 

 

 

////

// The HTML image wrapper function

// "On the Fly" Auto Thumbnailer using GD Library, servercaching and browsercaching

// Scales product images dynamically, resulting in smaller file sizes, and keeps

 

Thanks!

Link to comment
Share on other sites

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /xxxxxxxxxx/htdocs/includes/functions/html_output.php on line 16

 

That's the error I'm getting on this website - www.ElectricQuarter.com whewn I have it in place, right now I have my un-altered html_output.php in place and it seems to be working fine. Here's my html_output.php code that I'm having a problem with:

Thanks!

 

Are you using any type of Template?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

I'm no expert but it looks like you have mixed up the code a bit. I see you have another contribution installed there also, maybe you got a bit messed up merging them.

 

I think the first bit:

 

 

function 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
global $seo_urls;
tep_href_link($page = '', $parameters = '', $connection = if ( !is_object($seo_urls) )

 

 

 

Should look something like:

 

 

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
global $seo_urls;

if ( !is_object($seo_urls) )

 

Backup and try that or look at the instructions again.

Link to comment
Share on other sites

I've got the Ultimate SEO urls installed too and my code reads like this:

// Ultimate SEO URLs v2.1
// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
global $seo_urls;		
	if ( !is_object($seo_urls) ){
		if ( !class_exists('SEO_URL') ){
			include_once(DIR_WS_CLASSES . 'seo.class.php');
		}
		global $languages_id;
		$seo_urls = new SEO_URL($languages_id);
	}
return $seo_urls->href_link($page, $parameters, $connection, $add_session_id);
 }

 

Seems like the code got mixed up in your file.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

That looks much better, I knew it was pretty wrong looking, but I cut and pasted from the install file, and that's how it looked heh.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...