Extension, Module

Archived
Forum
(read-only)


For official support, visit the official support site »

CT Admin

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Foster Made

     

Errors with CT 2.5

General (Resolved)

Kenny Stocker
Kenny Stocker

Hi Eric I have just upgraded to CT 2.5 and I am getting a couple of errors when clicking through to checkout.

I only see the errors as a logged in super admin.

On my live site I get this:

A Database Error Occurred
You must 
use the "set" method to update an entry.

Filenamethird_party/ct_admin/models/ct_admin_carts_model.php

Line Number
358 

And on a fresh install I get this:

A Database Error Occurred
Error Number
1054

Unknown column 
'site_id' in 'field list'

UPDATE `exp_ct_admin_cart_itemsSET `site_id` = '1', `item_options` = 'YToxOntzOjM2OiJjb25maWd1cmF0aW9uOnByaWNlX21vZGlmaWVyczpjb2xvdXIiO3M6NToiR3JlZW4iO30=', `quantity` = '1' WHERE `cart_id` = 'ec12c818d1fea05b8e754eb14cdd5075' AND `row_id` = 0

Filename
third_party/ct_admin/models/ct_admin_carts_model.php

Line Number
179 

Any ideas what that could be?
cheers Kenny

mithra62
# 1
Developer
mithra62

Hi Kenny,

What version of CT Admin are you using? Those line numbers, and errors, don’t match up with anything in the current build so it’s impossible to track down. For example, the ct_admin_cart_items table has never had a site_id column and nowhere in teh code does it reference site_id so that’s really odd…

Eric

Kenny Stocker
# 2
Kenny Stocker

Hi Eric I am on 1.6.1

I posted the error over to Chris Barrett and he said that he thought you were working on an update to CT Admin?
cheers Kenny

mithra62
# 3
Developer
mithra62

Hi Kenny,

I’ve sent you the latest update that’s about to be released this week. It includes a fix for the site_id issue and should be good to go. Please let me know if you have any issues or questions.

Thanks,
Eric

Kenny Stocker
# 4
Kenny Stocker

Hi Eric,
I just tried to run the update and got the following error:

A PHP Error was encountered

Severity
Notice

Message
Undefined propertyAddons_modules::$dbforge

Filename
ct_admin/upd.ct_admin.php

Line Number
337


Fatal error
Call to a member function drop_table() on a non-object in *****/third_party/ct_admin/upd.ct_admin.php on line 337 
mithra62
# 5
Developer
mithra62

Gah! That’s what I get for just sending something without testing it…

Can you add the below right above line 337 and run it again?

$this->EE->load->dbforge();