Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error at online site - SEO URLs installed


developer_x

Recommended Posts

I've installed Chemo's SEO URLs over a modded osc store. It works on the local host but i get this error when i uploaded the files and checked the online site:

 

Parse error: parse error, unexpected $ in /home/vivavida/public_html/test1/includes/classes/seo.class.php on line 964

 

 

What could be causing this? I wonder if its because there is something wrong with my .htaccess file. Here is the code of it:

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>


Options +FollowSymLinks
RewriteEngine On 
RewriteBase /test1/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

Irfan,

Link to comment
Share on other sites

Hi Dev_X,

 

I have also SEO installed, If I look at seo.class.php on line 964, I see a break (so go out from the function) from get_manufacturer_name($mID).

Try to look if you did not forgott an ;, }, or ) between the case and break:

Should look like this.

case ($this->attributes['USE_SEO_CACHE_GLOBAL'] == 'true' && isset($this->cache['MANUFACTURERS'][$mID])):
			$this->performance['CACHE_QUERY_SAVINGS']++;
			$return = $this->cache['MANUFACTURERS'][$mID];
			break;

 

Hope it helps.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...