Jump to content



Latest News: (loading..)

* * * * - 10 votes

ULTIMATE Seo Urls 5 - by FWR Media


  • Please log in to reply
3897 replies to this topic

#3401   ColeKelly

ColeKelly
  • Members
  • 6 posts

Posted 09 August 2011 - 10:13 PM

New Install on modified OSC 2.3.1

Came back with this error: Parse error: syntax error, unexpected ';' in *****/eastvalleyrc.com/index.php on line 286

Line 286 reads:
			<tr><td align="right" class="main">' . tep_draw_form('filter', tep_href_link( FILENAME_DEFAULT ), 'get' . '<b>'.TEXT_SHOW . '</b>&nbsp;&nbsp;';

The only issue I had with the install was found in application_top.php. It did not have the EXACT info you requested to find/replace. Instead it had:

// set php_self in the local scope
  if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

  if ($request_type == 'NONSSL') {
	define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
  } else {
	define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
  }

Everything else was a find/replace (or find/add as instructred) using dreamweaver. Donation incoming if we can get this ironed out soon! Love all your contributions so far.

Edited by ColeKelly, 09 August 2011 - 10:25 PM.


#3402   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 09 August 2011 - 10:34 PM

Your code has a syntax error ( a missing ")" )

Try this:

<tr> <td align="right" class="main">' . tep_draw_form('filter', tep_href_link( FILENAME_DEFAULT ), 'get' ) . '<b>'.TEXT_SHOW . '</b>&nbsp;&nbsp;';

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#3403   ColeKelly

ColeKelly
  • Members
  • 6 posts

Posted 09 August 2011 - 10:49 PM

View Postgerm, on 09 August 2011 - 10:34 PM, said:

Your code has a syntax error ( a missing ")" )

Try this:

<tr> <td align="right" class="main">' . tep_draw_form('filter', tep_href_link( FILENAME_DEFAULT ), 'get' ) . '<b>'.TEXT_SHOW . '</b>&nbsp;&nbsp;';

That did the trick. However the products do not show SEO'ed URLs. ( http://eastvalleyrc.com/product_info.php?products_id=29 )

#3404   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 09 August 2011 - 11:31 PM

The "fatal error" at the bottom of all your pages isn't a good sign.
:o

The syntax error I can fix.

The rest... Well you'll have to wait for someone who knows a lot more about this contribution than I do.
:blush:
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#3405   ColeKelly

ColeKelly
  • Members
  • 6 posts

Posted 09 August 2011 - 11:42 PM

View Postgerm, on 09 August 2011 - 11:31 PM, said:

The "fatal error" at the bottom of all your pages isn't a good sign.
:o

The syntax error I can fix.

The rest... Well you'll have to wait for someone who knows a lot more about this contribution than I do.
:blush:

Did not even notice that until you pointed it out. Thanks!

Fatal error: Call to a member function store() on a non-object in ****/eastvalleyrc.com/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78

Here is the code from line 75 to 86
	*/
	public function __destruct() {
	  if ( defined( 'USU5_ENABLED' ) && ( USU5_ENABLED == 'true' ) ) {
		$this->getVar( 'cache' )->store( $this->getVar( 'registry' )->store() );
		if ( defined( 'USU5_OUPUT_PERFORMANCE' ) && ( USU5_OUPUT_PERFORMANCE == 'true' ) ) {
		  performance();
		}
		if ( defined( 'USU5_DEBUG_OUPUT_VARS' ) && ( USU5_DEBUG_OUPUT_VARS == 'true' ) ) {
		  usu5_show_vars( $this->vars );
		}
	  } 
	} // end destructor

Edited by ColeKelly, 09 August 2011 - 11:47 PM.


#3406   omulec

omulec
  • Members
  • 38 posts
  • Real Name:Szymon GÅ‚uch
  • Gender:Male
  • Location:Warsaw, Poland

Posted 10 August 2011 - 08:09 AM

Hi there.

I've installed USU5 and was happy with it. Working really nice and smooth. After setting the page I started the test of all functions and I've noticed that I have some small problem during the checkout with addresses. I can use multiple defined, I can add and delete. When I want to edit however I receive:

Quote

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ur139661/public_html/sklep/includes/functions/database.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /home/ur139661/public_html/sklep/includes/functions/database.php:103) in /home/ur139661/public_html/sklep/includes/functions/general.php on line 50

The line 103 from database.php is the return line in the following function
  function tep_db_num_rows($db_query) {
	return mysql_num_rows($db_query);
  }

The line 50 from general.php is
header('Location: ' . $url);
as the part of the USU5 function
  function tep_redirect($url) {
	if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { 
	  tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
	}

	if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
	  if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
		$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
	  }
	}
	if ( false !== strpos($url, '&amp;') ){
	  $url = str_replace('&amp;', '&', $url);
	}
	session_write_close();
	header('Location: ' . $url);
	exit;
  }

Any hint what can be messed up? Error in the code or some error change in the database?

Regards
Szymon

#3407   todosaas

todosaas
  • Members
  • 25 posts
  • Real Name:Alex
  • Gender:Male
  • Location:South Florida

Posted 10 August 2011 - 02:58 PM

Hi everyone here,

I just finish installing the contribution and when I tried to access to my local store I get the following errors.

Warning: Usu5_Bootstrap::include_once(/home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_constants.php) [usu5-bootstrap.include-once]: failed to open stream: No such file or directory in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 303

Warning: Usu5_Bootstrap::include_once() [function.include]: Failed opening '/home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_constants.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 303

Catchable fatal error: Argument 1 passed to Installer_Class::setConfigConstants() must be an array, null given, called in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 306 and defined in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_class.php on line 67

I followed the guide and I review twice, it was on fresh osc2.3.1 store. Can someone help me here

Thank you

ale

#3408   yadetar

yadetar
  • Members
  • 24 posts
  • Real Name:Janina
  • Gender:Female

Posted 10 August 2011 - 03:24 PM

Hello all,

First of all, thank you Robert for such a great config. and your great advices on this forum!

I have read through this topic from the final update of this config. and couldn't find the answer to my problem. The problem is, that the links look now like this:
www.mysite.fi/index.php/science-fiction-c-3_11?osCsid=737f7cd80e60f75603e00f565e2da8eb

So I'm wondering how to get rid of those numbers and characters at the end of the link?

I have installed the .htaccess file with right RewriteBase.
I have entered the special character conversions in the admin field - this worked fine with my ä and ö characters. Is this the reason for my "too long link"?

Otherwise the site runs ok, no problems with it. Just this minor link problem.

BR,
yadetar

#3409   chemist4

chemist4
  • Members
  • 98 posts
  • Real Name:Tim
  • Gender:Male
  • Location:Missouri

Posted 10 August 2011 - 04:25 PM

How do I get rid of this? I had installed USU5 on my store, but later had to start over on my dev store and went with Ultimate SEO URLs v2.2d, which is an easier install and is compatible with everything else. I use my FTP client's synchronize function to make the changes to my live store. The new version works great, but the old USU5 still shows up in my admin. It is disabled, but I would like to get rid of it. Is it just a matter of removing the DB entries, or is there something else? There shouldn't be any trace of the code anywhere.

#3410   omulec

omulec
  • Members
  • 38 posts
  • Real Name:Szymon GÅ‚uch
  • Gender:Male
  • Location:Warsaw, Poland

Posted 10 August 2011 - 04:44 PM

View Postyadetar, on 10 August 2011 - 03:24 PM, said:

I have read through this topic from the final update of this config. and couldn't find the answer to my problem. The problem is, that the links look now like this:
www.mysite.fi/index.php/science-fiction-c-3_11?osCsid=737f7cd80e60f75603e00f565e2da8eb
So I'm wondering how to get rid of those numbers and characters at the end of the link?

Force cookies in you admin and the osCsid session ID will disappear from the urls.

Regards
Szymon

#3411   todosaas

todosaas
  • Members
  • 25 posts
  • Real Name:Alex
  • Gender:Male
  • Location:South Florida

Posted 10 August 2011 - 05:28 PM

View Posttodosaas, on 10 August 2011 - 02:58 PM, said:

Hi everyone here,

I just finish installing the contribution and when I tried to access to my local store I get the following errors.

Warning: Usu5_Bootstrap::include_once(/home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_constants.php) [usu5-bootstrap.include-once]: failed to open stream: No such file or directory in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 303

Warning: Usu5_Bootstrap::include_once() [function.include]: Failed opening '/home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_constants.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 303

Catchable fatal error: Argument 1 passed to Installer_Class::setConfigConstants() must be an array, null given, called in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 306 and defined in /home/myfolder/osc2.3.1/catalog/includes/modules/ultimate_seo_urls5/database_install/installer_class.php on line 67

I followed the guide and I review twice, it was on fresh osc2.3.1 store. Can someone help me here

Thank you

ale

I was reviewing the folders and I notice that the file "installer_constants.php" is missing, where can I get that file, because is not in the contribution pack

Any advice???

#3412   todosaas

todosaas
  • Members
  • 25 posts
  • Real Name:Alex
  • Gender:Male
  • Location:South Florida

Posted 10 August 2011 - 06:05 PM

View Posttodosaas, on 10 August 2011 - 05:28 PM, said:

I was reviewing the folders and I notice that the file "installer_constants.php" is missing, where can I get that file, because is not in the contribution pack

Any advice???

Thank you I fixed it

#3413   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 10 August 2011 - 06:06 PM

View Posttodosaas, on 10 August 2011 - 05:28 PM, said:

I was reviewing the folders and I notice that the file "installer_constants.php" is missing, where can I get that file, because is not in the contribution pack

Any advice???

It is in the package.

#3414   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 10 August 2011 - 06:09 PM

View Postyadetar, on 10 August 2011 - 03:24 PM, said:

I have read through this topic from the final update of this config. and couldn't find the answer to my problem. The problem is, that the links look now like this:
www.mysite.fi/index.php/science-fiction-c-3_11?osCsid=737f7cd80e60f75603e00f565e2da8eb

The osCsid is nothing to do with USU5 it is an integral part of osCommerce.

If it is persistent then your configure files are wrong.

If you want to lose it totally you have to have a full SSL certificate issued using the same domain as non SSL site access, then you can force cookie usage.

#3415   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 10 August 2011 - 06:13 PM

View Postomulec, on 10 August 2011 - 08:09 AM, said:

Hi there.

I've installed USU5 and was happy with it. Working really nice and smooth. After setting the page I started the test of all functions and I've noticed that I have some small problem during the checkout with addresses. I can use multiple defined, I can add and delete. When I want to edit however I receive:

This is nothing to do with USU5, the header() function is mentioned only because headers have been sent by the DB error and therefore header() will not work/triggers an error.

#3416   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 10 August 2011 - 06:17 PM

View Postandygolf, on 04 August 2011 - 12:01 AM, said:

Hi Robert,

Thanks for all your hard work on this amazing contribution.

I've been trying to get Sage Pay Server working and have come across your post that says w3c style urls will cause problems with the redirect url. I tested with w3c urls switched off and it worked fine.

Is there any chance that there is a workaround to this problem that I've missed? I'd rather not switch off w3c urls because they look more professional.

Keep up the great work.

Andy

You simply need to reverse the html entity formatting of &.

In the script you are talking about it must use tep_href_link( .. CODE IN HERE .. ) to produce the url in question .. all you need do is change it to: -

str_replace ( '&amp;', '&', tep_href_link( .. CODE IN HERE .. ) )


#3417   todosaas

todosaas
  • Members
  • 25 posts
  • Real Name:Alex
  • Gender:Male
  • Location:South Florida

Posted 10 August 2011 - 06:33 PM

View PostFWR Media, on 10 August 2011 - 06:06 PM, said:

It is in the package.

Thank you Robert,

I really don't know what happen when I downloaded the package first time, but I found it

Now, I am getting http://mystore.com/catalog/product_info.php/test_item-p-30
and I would like http://mystore.com/catalog/product_info.php/test_item.html

how setup the package to get all my products as /test_item.html, by admin or modifying the .htaccess, and why the p-30 is in there?

Thank you

Alex

#3418   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 10 August 2011 - 06:35 PM

View Posttodosaas, on 10 August 2011 - 06:33 PM, said:

Thank you Robert,

I really don't know what happen when I downloaded the package first time, but I found it

Now, I am getting http://mystore.com/c.../test_item-p-30
and I would like http://mystore.com/c.../test_item.html

how setup the package to get all my products as /test_item.html, by admin or modifying the .htaccess, and why the p-30 is in there?

Thank you

Alex

The p-30 is essential as it provides a one to one link to the product in the database.

#3419   ColeKelly

ColeKelly
  • Members
  • 6 posts

Posted 10 August 2011 - 06:42 PM

Hello Robert,

I wanted to consolidate my issue into 1 post, but I was unable to edit the above posts. Your addon install went well, however I do have the following fatal error and the URL's are not in the SEO format. (website located at eastvalleyrc.com)

Fatal error: Call to a member function store() on a non-object in ****/eastvalleyrc.com/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78

Here is the code from line 75 to 86

  
 */
	public function __destruct() {
	  if ( defined( 'USU5_ENABLED' ) && ( USU5_ENABLED == 'true' ) ) {
		$this->getVar( 'cache' )->store( $this->getVar( 'registry' )->store() );
		if ( defined( 'USU5_OUPUT_PERFORMANCE' ) && ( USU5_OUPUT_PERFORMANCE == 'true' ) ) {
		  performance();
		}
		if ( defined( 'USU5_DEBUG_OUPUT_VARS' ) && ( USU5_DEBUG_OUPUT_VARS == 'true' ) ) {
		  usu5_show_vars( $this->vars );
		}
	  } 
	} // end destructor

The only issue I had with the install was found in application_top.php. It did not have the EXACT info you requested to find/replace. Instead it had:

// set php_self in the local scope
  if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

  if ($request_type == 'NONSSL') {
	define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
  } else {
	define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
  }


#3420   todosaas

todosaas
  • Members
  • 25 posts
  • Real Name:Alex
  • Gender:Male
  • Location:South Florida

Posted 10 August 2011 - 09:24 PM

View PostFWR Media, on 10 August 2011 - 06:35 PM, said:

The p-30 is essential as it provides a one to one link to the product in the database.

You mean that is from the database record (id#), but I still without understand, how I get the following format http://mystore.com/catalog/test_item.html, also how control the p-30 not to show?. I ve been playing with the ntaccess file and the admin seo panel but none :'(

Thank you