[CubeCart] Error in cc_session.php

Magic SEO URLs for CubeCart.
silvervanman
Posts: 6
Joined: Wed Sep 14, 2011 1:13 pm

[CubeCart] Error in cc_session.php

Postby silvervanman » Wed Sep 14, 2011 2:00 pm

Hello,

have just installed the MagicSEO module in CubeCart version 4.3.8. Have followed all instructions carefully but am getting the following error:-

Fatal error: Call to a member function mySQLSafe() on a non-object in /home/sites/lily-flame.co.uk/public_html/classes/session/cc_session.php on line 56

line 56 of cc_session.php looks like this:

Code: Select all

## see if session is still in db
$query = sprintf("SELECT sessId FROM %sCubeCart_sessions WHERE sessId=%s", $this->glob['dbprefix'], $this->db->mySQLSafe($GLOBALS[CC_SESSION_NAME]));


Can you advise please?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Error in cc_session.php

Postby inveo » Wed Sep 14, 2011 2:16 pm

It is hard to tell what is wrong with this file without seeing its complete content.

I would suggest you you to start editing files from scratch. If this dos not help, then please PM me your FTP credentials and I will take a look.

silvervanman
Posts: 6
Joined: Wed Sep 14, 2011 1:13 pm

Re: [CubeCart] Error in cc_session.php

Postby silvervanman » Wed Sep 14, 2011 4:16 pm

thx for the reply - PM sent

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Error in cc_session.php

Postby inveo » Wed Sep 14, 2011 5:13 pm

There was a problem with your skins/lily-flame/php/ajaxCart.php file. This file is encrypted so we made a work around inside classes/session/cc_session.php file.

Now you can complete the installation process which is not yet finished.

silvervanman
Posts: 6
Joined: Wed Sep 14, 2011 1:13 pm

Re: [CubeCart] Error in cc_session.php

Postby silvervanman » Thu Sep 15, 2011 12:51 am

Now installed and working but can you tell me how to remove the trailing number from the URL's?

eg. http://www.lily-flame.co.uk/scented-tins-2/
eg. http://www.lily-flame.co.uk/bathing-bea ... d-candle-1

Also, I would like the name of the category to appear before the name of the product as follows:-

http://www.lily-flame.co.uk/scented-tin ... ted-candle

Can you help, please.
Appreciate your support.

njgreen1984
Posts: 6
Joined: Wed Sep 14, 2011 7:53 am

Re: [CubeCart] Error in cc_session.php

Postby njgreen1984 » Thu Sep 15, 2011 1:42 am

I would also be interested to know how to go about making these updates...

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Error in cc_session.php

Postby inveo » Thu Sep 15, 2011 5:03 am

silvervanman wrote:Now installed and working but can you tell me how to remove the trailing number from the URL's?

eg. http://www.lily-flame.co.uk/scented-tins-2/
eg. http://www.lily-flame.co.uk/bathing-bea ... d-candle-1


There is no way how to do it. It has to be there in order to provide all smart features and catch all requests.

silvervanman wrote:Also, I would like the name of the category to appear before the name of the product as follows:-

http://www.lily-flame.co.uk/scented-tin ... ted-candle


Please set uri_mode to "normal" in include/msu_tweak.ini file.

silvervanman
Posts: 6
Joined: Wed Sep 14, 2011 1:13 pm

Re: [CubeCart] Error in cc_session.php

Postby silvervanman » Thu Sep 15, 2011 5:26 am

I still have following error on home page

Fatal error: Call to a member function mySQLSafe() on a non-object in /home/sites/lily-flame.co.uk/public_html/classes/session/cc_session.php on line 56

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Error in cc_session.php

Postby inveo » Thu Sep 15, 2011 5:36 am

Please post us step-by-step instructions how to reproduce the problem on your site.

silvervanman
Posts: 6
Joined: Wed Sep 14, 2011 1:13 pm

Re: [CubeCart] Error in cc_session.php

Postby silvervanman » Thu Sep 15, 2011 5:50 am

1) go to: http://www.lily-flame.co.uk/
2) look at bottom of page