Details

SEO osCommece Package XII

Loaded Features:
  • Spider Session Remover ( SID Killer )
  • Ultimate SEO URLs
  • Header Tags Controller
  • Google XML Sitemap
  • SEO Assistant
  • AJAX Attribute Manager
  • Product Extra Fields
  • X-Sell v2-MS2 - Cross Sell for MS2
  • Credit Class & Gift Voucher
  • TinyMCE WYSIWYG HTML EDITOR
  • Multi/extra images
  • Purchase Without Account
  • Newsletter & Subscribers

Fatal error: Cannot re-assign $this in \home\xxxx\www\admin\includes\classes\upload.php on line 31

Usually You getting below erorr on PHP 5.xx

Fatal error: Cannot re-assign $this in \home\xxxx\www\admin\includes\classes\upload.php on line 31

How to fix?

Open file: admin\includes\classes\upload.php

on line 31

find:

$this = null;

replace with:

unset($this);

 

Done!

Posted by admin 26.Feb.08 Bug Fixes Read more Comments (0)

Credit Class & Gift Voucher 5.19 and osCommerce rc1 bug

I’m using oscommerce rc1 and found bug on checkout_payment.php page.

You have to redeem your coupon twice to make it working.

When you trying redeem coupon first time you get error like this:

 

The coupon has been successfully applied for
***HOWEVER:No reducion available, please see the coupon restrictions***

 

but when you trying enter this coupon second time - coupon applying successfully and you see below message:

 

The coupon has been successfully applied for $xx

 

To fix this bug you have to edit file catalog/includes/modules/order_total/ot_coupon.php

at line ~130 find:

 

if (!tep_session_is_registered('cc_id')) tep_session_register('cc_id'); $cc_id = $coupon_result['coupon_id'];

 

replace with:

 

$cc_id = $coupon_result['coupon_id']; tep_session_register('cc_id');

 

Thats all ;)

Posted by admin 11.Feb.08 Bug Fixes Read more Comments (0)

Ultimate SEO URLs page navigation bug

On product result page, navigation links not working after Ultimate SEO URLs installed. We found solution to fix this bug. See below:

file:\includes\classes\seo.class.php

line : 1064 to1073

function requested_page()
{
$protocol = ((int) $_SERVER[’SERVER_PORT’] === 443)? ‘https://’ : ‘http://’;
$current_page = $protocol . $_SERVER[’HTTP_HOST’] . ((!empty($_SERVER[’REQUEST_URI’]))? $_SERVER[’REQUEST_URI’] : ”);
$current_page = substr($current_page, strlen(HTTP_SERVER));
if (($pos = strpos($current_page, “?osCsid”)) !== FALSE)
$current_page = substr($current_page, 0, $pos).’<br>’;
if ($current_page[0] == “/”)
$current_page = substr($current_page, 1);

Changed return $current_page;

to:

return $return;

Posted by admin 10.Feb.08 Bug Fixes Read more Comments (0)

osCommerce 2.2 rc1 mysql_insert_id() problem

As we noticed, osCommerce 2.2 rc1 don’t working properly on MySQL 5.xx. We are getting error:

Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in xxxxxxxxxxxxxxxxx/catalog/admin/includes/functions/database.php on line 1171064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', 0, 0, '1')' at line 1insert into phesis_poll_data (pollid,optiontext,optioncount,voteid, language_id) values (, '', 0, 0, '1') [TEP STOP]

To fix this error, try find:

$insert_id = tep_db_insert_id($query);

and change to:

$insert_id = tep_db_insert_id();


Webmaster
http://www.oscommerce-packages.com

Posted by admin 04.Feb.08 Bug Fixes Read more Comments (0)

Header Tags Controller bug fix

Warning: chmod() [function.chmod]: Operation not permitted in
/home/public_html/admin/includes/functions/header_tags.php on line 254
Cannot change the mode of file (/home/public_html/includes/languages/english/header_tags.php)


How to fix?

To allow the admin section to access the files just installed, the permissions for thefollowing files should be set to 755 (777 on some hosts).The best way to be sure what the correct setting is, is to check those on the images directory and set the ones for Header Tags to match those. If the settings on the images directory and the Header Tags files aredifferent, a warning will appear in admin->Header Tags about permissions not being correct.

catalog/includes/header_tags.phpcatalog/includes/languages/english/header_tags.php
And off course and other header_tags.php created for other languages if they exist:
catalog/includes/languages/<language>/header_tags.php


Contribution page: http://www.oscommerce.com/community/contributions,207

Posted by admin 15.Jan.08 Bug Fixes Read more Comments (0)

Ultimate SEO URLs bug fix

This is not for everybody.

But if you’re getting URL’s for your categories like this:
http;//www.yoursite.com/-c-2.html
instead of:
http://www.yoursite.com/categoryname_keyword-c-2.html
Then your version of mysql needs a new seo.class.php.
Just upload it to your (catalog)/includes/classes/ folder and your categories names will again appear!
This file contains only the seo.class.php file, and nothing else, so this is not the complete contribution — this fix only for those who had the problem mentioned above.

Find

$sql = "SELECT cd.categories_seo_url, c.categories_id, c.parent_id, cd.categories_name as cName,
cd2.categories_name as pName
FROM ".TABLE_CATEGORIES." c,
".TABLE_CATEGORIES_DESCRIPTION." cd
LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2
ON c.parent_id=cd2.categories_id AND
cd2.language_id='".(int)$this->languages_id."'
WHERE c.categories_id='".(int)$single_cID."'
AND cd.categories_id='".(int)$single_cID."'
AND cd.language_id='".(int)$this->languages_id."'
LIMIT 1";

Change it to:

$sql = "SELECT cd.categories_seo_url, c.categories_id, c.parent_id, cd.categories_name AS cName, cd2.categories_name AS pName
FROM ".TABLE_CATEGORIES." c
INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd ON cd.categories_id = '".(int)$single_cID."'
AND cd.language_id='".(int)$this->languages_id."'
LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2 ON c.parent_id = cd2.categories_id
AND cd2.language_id = '".(int)$this->languages_id."'
WHERE c.categories_id = '".(int)$single_cID."'
LIMIT 1";

Admin

http://www.oscommerce-packages.com

Posted by admin 13.Dec.07 Bug Fixes Read more Comments (0)

AJAX Attribute Manager bug

Another bug

Fatal error: Cannot redeclare class amdb in z:/home/localhost/www/adminattributeManager/classes/amDB.class.php on line 18

How to fix?

Open file admin/attributeManager/attributeManager.php

Find :

// db wrapper
require_once(’classes/amDB.class.php’);

// session functions

require_once(’includes/attributeManagerSessionFunctions.inc.php’);
replace to:

// db wrapper
if(class_exists(”amDB”))require_once(’classes/amDB.class.php’);

// session functions

if(function_exists(”amSessionUnregister”))

require_once(’includes/attributeManagerSessionFunctions.inc.php’);

Thats all ;)

Contribution page: http://www.oscommerce.com/community/contributions,4063

Posted by admin 12.Dec.07 Bug Fixes Read more Comments (0)