Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE Seo Urls 5 - by FWR Media


Recommended Posts

Hello Burt,

i´m Setup a new store with any modifications and the categories are brand new.

Have you seen my Problem?

 

I don´t know, how the Categories not work. Links are ok, i think.

 

the looks like : gift-c-28.html

 

but, i only see what im my image above.

 

greets

Hobbes

Edited by HobbesBS
Link to comment
Share on other sites

Hello!

Installed and all seems to work with the exception of www.mysite.com/products_new.php/ which redirects me to www.mysite.com

This is the same with all product links under "new products for month" & "what's new?" on the index.php pages.

 

My .htaccess file does have AcceptPathInfo On

 

Is there something else I am missing?

Thanks!

-Alex

If you are using a 2.2 template from TemplateMonster it is a know issue. I added the cure for it some ways back.
Link to comment
Share on other sites

Well this one turns out to be nice and easy .. good catch. It is some legacy code left over from development and is not needed at all.

 

catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php

 

Find ...

 

	private function uriModulesParsePath() {
if ( !is_readable( Usu_Main::i()->getVar( 'page_modules_path' ) . Usu_Main::i()->getVar( 'filename' ) ) ) {
return false;
}
$dependencies = Usu_Main::i()->getVar( 'page_modules', substr( Usu_Main::i()->getVar( 'filename' ), 0, -4 ) )->retrieveDependencies();
$uri_modules = Usu_Main::i()->getVar( 'uri_modules' );
foreach ( $uri_modules as $object ) {
if ( false !== ( $object->isValidUri() ) ) {
$object->parsePath();
}
}
} // end method

 

Change to ..

 

	private function uriModulesParsePath() {
if ( !is_readable( Usu_Main::i()->getVar( 'page_modules_path' ) . Usu_Main::i()->getVar( 'filename' ) ) ) {
return false;
}
$uri_modules = Usu_Main::i()->getVar( 'uri_modules' );
foreach ( $uri_modules as $object ) {
if ( false !== ( $object->isValidUri() ) ) {
$object->parsePath();
}
}
} // end method

Hello. The contribution works very well but I checked my error log and this is what I found out:

 

 

 

PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/original/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 409

 

 

I read on oscommerce forum that error came from filename that contains "-" instead of " _" is there any way to find out what file is causing the problem ? and exclude that file.

 

Another error:

 

HP Fatal error: Call to a member function store() on a non-object in /home/original/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78, referer: http

 

I also checked this on forum and there was something similar but I don't now when the error triggers because usually rewrites work fine.

 

I was experiencing this same problem and the solution was in the default index page on Windows iis

Windows uses Index.php as default index page (with capital I) after changing to index.php with lower case this problem was solved (changed in iis manager).

Maybe this can be changed into the code?

 

Anyway, great contribution!

Link to comment
Share on other sites

Am missing all images. This is a new install of USU5 on a modified Osc 2.3

 

Images disappeared after I chose to follow the directions to shorten the URL and modify .htaccess for rewrite.

 

Funny thing is, that when the images first disappeared, I thought I had fixed it by changing settings in the admin.

 

Then I installed KissMT Dynamic SEO Meta Tags and they disappeared again. Have tried uninstalling Meta Tags by disabling the line int template_top.php and deleting the directory from the server, but it didnt help.

 

After installing KissMT Dynamic SEO Meta Tags, I never found any setup options on Admin...is this to be expected?

 

Steve

Link to comment
Share on other sites

I lose all my images if I enable

 

RewriteBase /catalog/

 

in .htaccess

 

This happens even if I turn SEO off in admin.

 

My images are in the standard location for OSC.

 

Thanks

 

Found the source of the problem, but no solution yet. The boilerplate .htaccess I am using had a section of code for Adaptive Images.

 

If I disable the next to the last line (RewriteRule \.(jpg|jpeg|gif|png) adaptive-images.php) my images come back.

 

I would like to use Adaptive Images, so help would be appreciated, though I know this is no longer the forum for my particular issue.

 

<IfModule mod_rewrite.c>

Options +FollowSymlinks

RewriteEngine On

 

# ----------------------------------------------------------------------

# Adaptive Images

# ----------------------------------------------------------------------

 

# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:

# RewriteCond %{REQUEST_URI} !some-directory

# RewriteCond %{REQUEST_URI} !another-directory

 

# RewriteCond %{REQUEST_URI} !assets

 

# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories

# to adaptive-images.php so we can select appropriately sized versions

RewriteRule \.(jpg|jpeg|gif|png) adaptive-images.php

</IfModule>

Edited by MountainMan
Link to comment
Share on other sites

@@FWR Media

and everyone else

 

New Problem.

PHP Fatal error: Cannot redeclare usu5_base_filename() (previously declared in /catalog/includes/application_top.php:62) in /catalog/includes/application_top.php on line 82

Any Suggestions? PLEASE

Edited by newburns
Link to comment
Share on other sites

Nope I want to talk about any issues that relate to the efficiency of USU5 without exception.

 

Your problem is nothing to do with USU5.

 

The code that redirects to cookie_usage.php is in application_top.php as follows: -

 

	if ($session_started == false) {
tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
}

 

Therefore if no session is started you are 301 redirected to that file.

 

If you care to look at this problem, you will find that, even though looking at your code we would expect a 404 not found error header to be sent to the browser when a page is not found, the header actually sent is a 302.

 

You need to debug this, not fob people off.

Link to comment
Share on other sites

Hi all,

 

jus installed a oscommerce store on a Windows 2008 web edition machine.

 

The store has following configuration:

 

osCommerce 2.3.3

Mini template system 1.4.03_c

Ultimate SEO url

Security Pro

Modular header tags

Sitemap generator

 

Whe I visit the shop root a got a white page with show error's on, this is the error:

 

Fatal error: Call to a member function retrieveDependencies() on a non-object in C:\Inetpub\vhosts\tuinenverkest.be\httpdocs\winkel\includes\modules\ultimate_seo_urls5\uri_modules\osc_experimental.php on line 51

 

If I visit URL with index.php added the site is working fine

If I disable Ultimate Seo Urls 5 site is also working fine without the index.php added but MTS banners are not loading

 

Anyone that knows where to start looking to solve this

 

Thanks

Filip

Link to comment
Share on other sites

Hi,

 

just wanted to ask this one question:

 

I'm using OSC 2.3.3 -

Add ons: Ultimate SEO Urls 5 and Modular Header Tags

 

and I'm getting a lot of duplicate titles in Google Webmaster Tools, because of the "language=en" parameter.

 

The shop is in English only.

 

When I try to redirect the parameter language=en with htaccess it goes to product_info.php instead of the corresponding product.

 

I think that Ultimate SEO Urls is somehow conflicting with it.

 

Any ideas how to solve this problem?

 

Thanks

Link to comment
Share on other sites

It is not a good idea to hack the code as there is no current issue with the code base.

 

It looks like there is a quirk in your code that is causing the registry to destruct before the Usu_Main class.

 

The following should eradicate the error you are seeing but it should not be necessary .. I can't however debug your local code.

 

open the following file: -

 

catalog/includes/modules/ultimate_seo_urls5/main/usu5.php

 

Replace the entire __destruct() method with the following: -

 

	/**
* Class destructor
*
* Stores the cache and outputs and performance data requested
*
* @[member='access'] public
* @[member='Return'] void
*/
public function __destruct() {
if ( defined( 'USU5_ENABLED' ) && ( USU5_ENABLED == 'true' ) ) {
$registry = $this->getVar( 'registry' );
$cache = $this->getVar( 'cache' );
if ( $registry instanceof Data_Registry && $cache instanceof iCache_System ) {
$cache->store( $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

 

Searching the forum for a second time I came upon this fix for the security problem McAfee discovered. After implementing the new code I no longer see errors in my error log. PCI compliance is is very important. I hope this helps other people. McAfee and myself were able to recreate the problem at will anytime with relative ease.

 

McAfee tested this query string to produce the error.

osCsid=x%20
%20ls%20-l%20=
%20dir%20=

 

I was able to produce the same error with this query string "osCsid=x ls-".

 

I hope this helps!

Link to comment
Share on other sites

Hi Robert.

 

I'm using the latest release of ULTIMATE Seo Urls 5 Pro in an oscommerce rc2a shop and I can't get rid of a known error. My google webmaster tools informed me that all my child categories had duplicate links.

 

Example:

 

/regalos/regalos-varios-c-44_46.html

 

/regalos/regalos-varios-c-46.html

 

 

I've tried to find out why in this forum, but despite having the file validator,php I keep having the same error in google webmaster tools.

 

I use as well the usu5_sitemaps. I don't know if it can cause this problem.

 

I'll be very grateful if you could help me.

 

Thanks

Link to comment
Share on other sites

I am getting errors on my main catalog page. The admin area seems fine no errors showing. On the main catalog page all it shows are the errors below nothing else. Please let me know what I am missing here and need to fix/update to get this issue resolved.

 

 

Errors:

 

 

Warning: Invalid argument supplied for foreach() in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 274

 

Warning: include_once(page_modules.php) [function.include-once]: failed to open stream: No such file or directory in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 339

 

Warning: include_once() [function.include]: Failed opening 'page_modules.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 339

 

Fatal error: Uncaught exception 'RuntimeException' with message 'Directory name must not be empty.' in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php:244 Stack trace: #0 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php(244): DirectoryIterator->__construct('') #1 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php(340): usu_dir_iterator() #2 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/bootstrap.php(83): Usu5_Bootstrap->loadPageModules(false) #3 /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/main/usu5.php(119): Usu5_Bootstrap->bootStrapper() #4 /home/b/public_html/n/Store/includes/application_top.php(338): Usu_Main->initiate(Object(language)) #5 in /home/b/public_html/n/Store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php on line 244

Link to comment
Share on other sites

ULTIMATE Seo Urls 5 PRO ( version 1.1 ) - Performance

Standard URI produced: 58

SEO URI produced: 19

Query Count: 11

Queries Saved: 8

Cache load time: 0 seconds ( includes gzinflate/base64_decode/unserialize )

Data loaded from cache: false ( Cache System: Sqlite_Cache_Module )

Total query time: 0.0103 seconds

Cache system is Off

Standard Urls:

http://domain.de/index.php view = yes

http://domain.de/index.php view = yes

http://domain.de/pages.php?page=versand view = no (blank page)

http://domain.de/pages.php?page=impressum view = no (blank page)

http://domain.de/pages.php?page=agb view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/index.php?language=en view= yes

http://domain.de/index.php?language=de view = yes

http://domain.de/login.php view = no (blank page)

http://domain.de/create_account.php view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/advanced_search.php view = no (blank page)

http://domain.de/advanced_search_result.php view = no (blank page)

http://domain.de/products_new.php view = no (blank page)

http://domain.de/specials.php view = no (blank page)

http://domain.de/manufacturers.php view = no (blank page)

http://domain.de/reviews.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/shopping_cart.php view = no (blank page)

http://domain.de/login.php view = no (blank page)

http://domain.de/create_account.php view = no (blank page)

http://domain.de/index.php view = yes

http://domain.de/featured_products.php view = no (blank page)

http://domain.de/products_new.php view = no (blank page)

http://domain.de/specials.php view = no (blank page)

http://domain.de/manufacturers.php view = no (blank page)

http://domain.de/topsellers_products.php view = no (blank page)

http://domain.de/reviews.php view = no (blank page)

http://domain.de/shipping.php view = no (blank page)

http://domain.de/contact_us.php view = no (blank page)

http://domain.de/product_info.php?products_id=54 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=54 view = no (blank page)

http://domain.de/product_info.php?products_id=53 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=53 view = no (blank page)

http://domain.de/product_info.php?products_id=52 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=52 view = no (blank page)

http://domain.de/product_info.php?products_id=51 view = yes

http://domain.de/products_new.php?action=buy_now&products_id=51 view = no (blank page)

 

regards john

Link to comment
Share on other sites

I have seen this asked before in this thread but couldn't find the answer...

 

Basically the addon works perfectly except on the homepage...

 

If I click on one of the "New Products for May" which are listed on the home page it just bounces me back to the home page...

 

I am using osc 2.3 with the latest SEO URL addon...

 

Please can someone help this is really bugging me...

Link to comment
Share on other sites

I have seen this asked before in this thread but couldn't find the answer...

 

Basically the addon works perfectly except on the homepage...

 

If I click on one of the "New Products for May" which are listed on the home page it just bounces me back to the home page...

 

I am using osc 2.3 with the latest SEO URL addon...

 

Please can someone help this is really bugging me...

Fixed, was my bad nothing to do with this addon... *Face Palm*

Link to comment
Share on other sites

  • 2 weeks later...

Hmmmmm it seems to be doing the blank links (just bounces back to home page) again on 'Whats New' page and index page :-(

 

 

any ideas what is causing this...?

Link to comment
Share on other sites

Surely there is a missing file in

 

\catalog\includes\modules\ultimate_seo_urls5\page_modules\

 

Shouldn't there be a products_new.php file?

Link to comment
Share on other sites

This is my /includes/modules/new_products.php file...

 

<?php
/*
 $Id$
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2010 osCommerce
 Released under the GNU General Public License
*/
 if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
   $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
 } else {
   $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
 }
 $num_new_products = tep_db_num_rows($new_products_query);
 if ($num_new_products > 0) {
   $counter = 0;
   $col = 0;
   $new_prods_content = '<table border="0" width="100%" cellspacing="0" cellpadding="2">';
   while ($new_products = tep_db_fetch_array($new_products_query)) {
  $counter++;
  if ($col === 0) {
    $new_prods_content .= '<tr>';
  }
  $new_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br />' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td>';
  $col ++;
  if (($col > 2) || ($counter == $num_new_products)) {
    $new_prods_content .= '</tr>';
    $col = 0;
  }
   }
   $new_prods_content .= '</table>';
?>
 <h2><?php echo sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')); ?></h2>
 <div class="contentText">
   <?php echo $new_prods_content; ?>
 </div>
<?php
 }
?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...