Jump to content
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

Hello guys.

I have a weird error. I have made all the changes and uploading all the new files. But when I'm trying to install it, I'm getting this error:

"You cannot install this script as the function filter_var() does not exist in your PHP set up"

 

My PHP is 5.1.6 and I haven't encountered any problem so far.

If you want to see it:

http://www.bioearth.gr/installer.php

 

or the php info

http://www.bioearth.gr/phpinfo.php

 

Do you know anything that I can do?

Thanks.

Share this post


Link to post
Share on other sites
Hello guys.

I have a weird error. I have made all the changes and uploading all the new files. But when I'm trying to install it, I'm getting this error:

"You cannot install this script as the function filter_var() does not exist in your PHP set up"

 

My PHP is 5.1.6 and I haven't encountered any problem so far.

If you want to see it:

http://www.bioearth.gr/installer.php

 

or the php info

http://www.bioearth.gr/phpinfo.php

 

Do you know anything that I can do?

Thanks.

 

5.2 has been out since 2006 .. no reason to be on 5.1.6

 

The contribution states 5.2+ also that it requires filters enabled in php.ini.

Share this post


Link to post
Share on other sites

Bug Fix - only reported on Windows servers so far but won't hurt to make the change anyway.

 

Thanks to itspeter for access to his windows server.

 

Symptom:

 

Seo urls pointing to products return product_info.php no products found.

 

Reason:

$HTTP_GET_VARS not being passed the products_id

 

Solution:

 

catalog/includes/modules/ultimate_seo_urls5/classes/Usu_Validator.php

 

Find ..

	/**
* Break up an seo url into component parts
*/
private function extractByMarkers(){
  foreach ( usu::$registry->vars['markers'] as $marker => $qskey ){
	if ( false !== strpos($this->filestring, $marker) ){
	  // Found an seo marker so explode into two component parts
	  $tmp = explode($marker, $this->filestring);
	  // assign the key=>value pair to _GET
	  $value =  (false !== strpos($tmp[1], '.html')) ? usu::cleanse(str_replace('.html', '', $tmp[1])) : usu::cleanse($tmp[1]); 
	  $_GET[usu::$registry->vars['markers'][$marker]] = $value;
	  $HTTP_GET_VARS[usu::$registry->vars['markers'][$marker]] = $_GET[usu::$registry->vars['markers'][$marker]];
	  return $qskey . '=' .  $value;
	} 
  } 
  return false;
}

 

Replace with ..

 

	/**
* Break up an seo url into component parts
*/
private function extractByMarkers(){
  global $HTTP_GET_VARS;
  foreach ( usu::$registry->vars['markers'] as $marker => $qskey ){
	if ( false !== strpos($this->filestring, $marker) ){
	  // Found an seo marker so explode into two component parts
	  $tmp = explode($marker, $this->filestring);
	  // assign the key=>value pair to _GET
	  $value =  (false !== strpos($tmp[1], '.html')) ? usu::cleanse(str_replace('.html', '', $tmp[1])) : usu::cleanse($tmp[1]); 
	  $_GET[$qskey] = $value;
	  $HTTP_GET_VARS[$qskey] = $value;

	  return $qskey . '=' .  $value;
	} 
  }
  return false;
}

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi guys,

Had been having problems with this contribution since I started using it. How can I completely remove this and reinstall it again?

Share this post


Link to post
Share on other sites
Hi guys,

Had been having problems with this contribution since I started using it. How can I completely remove this and reinstall it again?

 

Well what problems? it may give a clue as to what went wrong in the installation.

Share this post


Link to post
Share on other sites

Hi,

 

Just a quick note to say that I have just installed this contribution and it works a treat !! :thumbsup:

 

Installation was simple and really easy to follow.

 

Thanks,

 

Martin.

Share this post


Link to post
Share on other sites
Hi,

 

Just a quick note to say that I have just installed this contribution and it works a treat !! :thumbsup:

 

Installation was simple and really easy to follow.

 

Thanks,

 

Martin.

 

Thank you Martin.

 

It's obviously important for me to hear of any errors/bugs to assist me in making the contribution as rock solid as possible .. however .. it is also nice and motivational to hear from people who are using/enjoying the contribution, it is rare for people to post positively.

 

I am particularly interested, by the way, to hear from people who have this running on WinDoze.

Share this post


Link to post
Share on other sites

Credit where credit is due.... I have just added this to a demo-store as an upgrade from Chemo's Ultimate SEO URL's and have to say this is a top class contribution.

 

Anyone worried about using this instead of Ultimate SEO URL's should not be concerned as I added this to a highly modified store. This is a neat little contribution with clear instructions on what to do if you're upgrading or installing on a fresh store so experienced coders as well as newbies can easily install this.

 

I was a little concerned with the & errors showing up when using certain contributions (such as Returns RMA) with Ultimate SEO URL's running. I remember years back I added so many fixes to the class file to get my contributions working that I even lost count what I edited and where I edited in the old class file. This contribution has no & errors to deal with and the page not found link is a real plus point.

 

I will be adding this to live stores as well - thanks for your good work on this one FWR, it is very much appreciated.

Edited by chooch

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Share this post


Link to post
Share on other sites
Credit where credit is due.... I have just added this to a demo-store as an upgrade from Chemo's Ultimate SEO URL's and have to say this is a top class contribution.

 

Anyone worried about using this instead of Ultimate SEO URL's should not be concerned as I added this to a highly modified store. This is a neat little contribution with clear instructions on what to do if you're upgrading or installing on a fresh store so experienced coders as well as newbies can easily install this.

 

I was a little concerned with the & errors showing up when using certain contributions (such as Returns RMA) with Ultimate SEO URL's running. I remember years back I added so many fixes to the class file to get my contributions working that I even lost count what I edited and where I edited in the old class file. This contribution has no & errors to deal with and the page not found link is a real plus point.

 

I will be adding this to live stores as well - thanks for your good work on this one FWR, it is very much appreciated.

 

My pleasure Chooch and thank you for your kind comments.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Have just carried out an update of the old seo urls and all seems to be going fine. its a pleasure to get a contribution that not only installs 1st time, but actually works. A great contribution, well done


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

Hello Robert,

 

First of all - thanks for a fantastic contribution. Even more than that, thanks for your excellent support. My problem is similar to one reported earlier but I was not able to resolve it using that solution. The problem is that I am getting double slashes. Eg - http://usgc.fewtureweb.com//apple-toner-cartridge-c-3.html. You had mentioned that the extra slash is likely due to hardcoding. I checked the configure.php file and did not find it hardcoded there. Is there another file that I should check?

 

Also, after upgarding to USU 5, when I go to http://usgc.fewtureweb.com - I get a page with FWR Media heading that says page not found and then it redirects to the homepage. Can you please advice?

 

Thanks.

- Raheem

Share this post


Link to post
Share on other sites

Hello Robert,

 

First of all - thanks for a fantastic contribution. Even more than that, thanks for your excellent support. My problem is similar to one reported earlier but I was not able to resolve it using that solution. The problem is that I am getting double slashes. Eg - http://usgc.fewtureweb.com//apple-toner-cartridge-c-3.html. You had mentioned that the extra slash is likely due to hardcoding. I checked the configure.php file and did not find it hardcoded there. Is there another file that I should check?

 

Also, after upgarding to USU 5, when I go to http://usgc.fewtureweb.com - I get a page with FWR Media heading that says page not found and then it redirects to the homepage. Can you please advice?

 

Thanks.

- Raheem

 

PS. Is there a reason why we cannot have a separate forum that is searchable and each post has its own posting page

Share this post


Link to post
Share on other sites
Hello Robert,

 

First of all - thanks for a fantastic contribution. Even more than that, thanks for your excellent support. My problem is similar to one reported earlier but I was not able to resolve it using that solution. The problem is that I am getting double slashes. Eg - http://usgc.fewtureweb.com//apple-toner-cartridge-c-3.html. You had mentioned that the extra slash is likely due to hardcoding. I checked the configure.php file and did not find it hardcoded there. Is there another file that I should check?

 

Also, after upgarding to USU 5, when I go to http://usgc.fewtureweb.com - I get a page with FWR Media heading that says page not found and then it redirects to the homepage. Can you please advice?

 

Thanks.

- Raheem

 

PS. Is there a reason why we cannot have a separate forum that is searchable and each post has its own posting page

 

Raheem post the contents of your catalog/includes/configure.php

 

Protect your sensistive info with X e.g.

 

define('DIR_FS_CATALOG', 'home/xxxx/public_html/xxxx/');

 

Basically the bit where you have a problem is created by ..

 

$this->base_url = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

 

HTTP_SERVER should be like http://www.mysite.com

 

DIR_WS_HTTP_CATALOG just equals / if your shop is in root

 

So add together HTTP_SERVER and DIR_WS_HTTP_CATALOG and we get ..

 

http://www.mysite.com/

 

So from that I bet you can find your error.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Robert,

 

Thanks - that was it. I somehow missed it during my initial examination. But the HTTP_SERVER was set to http://www.site.com/ and that was causing the problem.

 

Do you have any suggestions about my index page being redirected by a wierd page that says "page cannot be found" but then provides a link to my store. Its wierd. You can check it out at http://usgc.fewtureweb.com

 

TIA

- Raheem

Share this post


Link to post
Share on other sites
Do you have any suggestions about my index page being redirected by a wierd page that says "page cannot be found" but then provides a link to my store. Its wierd. You can check it out at http://usgc.fewtureweb.com

 

Yes I believe it might be solved by the previous change. (what you have done already)

Share this post


Link to post
Share on other sites

Hi

This is my first time post so if I have done anything wrong please excuse me.

Your help would be much appreciated as i have been trying to resolve this problem for some months.

I have virtually the same problem as pederb but when he solved the problem he did not say how. He did say it was not a server problem.

I have a clean Oscommerce shop and I used the drop method to instal the contrib. I used .htaccess that came with contrib, filed in catalog. I have check all settings in Apache/2.2.11 (mod rewrite-on, Override set to ALL), PHP 5.2.9 and config files (check this against 5 working sites) as has been suggested here.

The shop works in standard format but switch on seo it fails. You can enter the index.php page but on selecting any item I get the following message

 

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

When you check the URL it gives you this on each occasion

 

ttp://www.test.co.uk/catalog/theres-something-about-mary-pri-19.html?http%25253A=&http%252525253A=&http%2525252525253A=&http%25252525252525253A=&http%252525252525252525253A=&http%2525252525252525252525253A=&http%25252525252525252525252525253A=&http%252525252525252525252525252525253A=&http%2525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525252525252525

3A=&www.test.co.uktheres-something-about-mary-pri-19.html=&reviews_id=1&http%2525252525252525252525252525252525252525252525252525252525252525252525252525253A

=&http%252525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525253A=&http%25252525252525252525252525252525253A=&http%2525252525252525252525252525253A=&http%252525252525252525252525253A=&http%25252525252525252525253A=&http%2525252525252525253A=&http%252525252525253A=&http%25252525253A=&http%2525253A=&http%253A=&osCsid=br2fum7ogmdab0npb3g831ksg7

 

I did have to alter the code in notfound_404.php from

//<a href="' . tep_href_link(FILENAME_DEFAULT) . '" title="' . STORE_NAME . '">' . STORE_NAME . '</a>

to

<a href="index.php">' . STORE_NAME . '</a></p><br />');

to get it to work as it was also duplicating itself in the URL but that is the extent of my knowledge of PHP.

 

Any help anyone can give or a point in the right direction would be very much appreciated.

Share this post


Link to post
Share on other sites
Hi

This is my first time post so if I have done anything wrong please excuse me.

Your help would be much appreciated as i have been trying to resolve this problem for some months.

I have virtually the same problem as pederb but when he solved the problem he did not say how. He did say it was not a server problem.

I have a clean Oscommerce shop and I used the drop method to instal the contrib. I used .htaccess that came with contrib, filed in catalog. I have check all settings in Apache/2.2.11 (mod rewrite-on, Override set to ALL), PHP 5.2.9 and config files (check this against 5 working sites) as has been suggested here.

The shop works in standard format but switch on seo it fails. You can enter the index.php page but on selecting any item I get the following message

 

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

When you check the URL it gives you this on each occasion

 

ttp://www.test.co.uk/catalog/theres-something-about-mary-pri-19.html?http%25253A=&http%252525253A=&http%2525252525253A=&http%25252525252525253A=&http%252525252525252525253A=&http%2525252525252525252525253A=&http%25252525252525252525252525253A=&http%252525252525252525252525252525253A=&http%2525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525252525252525

3A=&www.test.co.uktheres-something-about-mary-pri-19.html=&reviews_id=1&http%2525252525252525252525252525252525252525252525252525252525252525252525252525253A

=&http%252525252525252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525252525252525253A=&http%25252525252525252525252525252525252525252525253A=&http%2525252525252525252525252525252525252525253A=&http%252525252525252525252525252525252525253A=&http%25252525252525252525252525252525253A=&http%2525252525252525252525252525253A=&http%252525252525252525252525253A=&http%25252525252525252525253A=&http%2525252525252525253A=&http%252525252525253A=&http%25252525253A=&http%2525253A=&http%253A=&osCsid=br2fum7ogmdab0npb3g831ksg7

 

I did have to alter the code in notfound_404.php from

//<a href="' . tep_href_link(FILENAME_DEFAULT) . '" title="' . STORE_NAME . '">' . STORE_NAME . '</a>

to

<a href="index.php">' . STORE_NAME . '</a></p><br />');

to get it to work as it was also duplicating itself in the URL but that is the extent of my knowledge of PHP.

 

Any help anyone can give or a point in the right direction would be very much appreciated.

 

Ooo Errr now that's wierd lol.

 

What else have you got in .htaccess looks to me like a mod_rewrite error.

Share this post


Link to post
Share on other sites
Ooo Errr now that's wierd lol.

 

What else have you got in .htaccess looks to me like a mod_rewrite error.

Hi

it is the .htaccess that comes with the contrib ie:

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# 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>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

 

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

 

# Options +FollowSymLinks

 

RewriteEngine On

 

RewriteBase /catalog/

 

 

 

RewriteRule ^(.*)-p-([0-9]+).html$ product_info.php?products_id=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

 

# Articles contribution

 

RewriteRule ^(.*)-t-([0-9_]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

 

# Information pages

 

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

# Links contribution

 

RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING}

 

# Newsdesk contribution

 

RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-nc-([0-9]+).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

 

RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

 

Thanks for your help

Share this post


Link to post
Share on other sites
Thanks for your help

 

I'd need to at least see the site because I have no idea what could be causing this.

Share this post


Link to post
Share on other sites
I'd need to at least see the site because I have no idea what could be causing this.

Hi

Unfortunatley It is not a live site it is a test site on a new server that I wanted to get fully working before transfering over the live sites.

I will stop one of the live sites and make this test site live.

It will take me sometime.

Thank you for your time

Share this post


Link to post
Share on other sites
Hi

Unfortunatley It is not a live site it is a test site on a new server that I wanted to get fully working before transfering over the live sites.

I will stop one of the live sites and make this test site live.

It will take me sometime.

Thank you for your time

Robert

If you are there at this time of night can you see http://www.homes-direct2u.co.uk/catalog/index.php.

I have unplugged the main server and plugged in the test one with a live url.

regards

Share this post


Link to post
Share on other sites
Hi

Unfortunatley It is not a live site it is a test site on a new server that I wanted to get fully working before transfering over the live sites.

I will stop one of the live sites and make this test site live.

It will take me sometime.

Thank you for your time

Robert

If you are there at this time of night can you see http://www.homes-direct2u.co.uk/catalog/index.php.

I have unplugged the main server and plugged in the test one with a live url.

regards

Share this post


Link to post
Share on other sites
Robert

If you are there at this time of night can you see http://www.homes-direct2u.co.uk/catalog/index.php.

I have unplugged the main server and plugged in the test one with a live url.

regards

 

The site won't even load.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×