Forums / Cotonti / Extensions / [error] Deleting Ratings for Siena

pieter
#1 2011-05-01 07:58

I can't delete any star ratings.

If I allow this for users, I get: AJAX Error: [Object object]

If I do it via admin: admin.php?m=other&p=ratings
I get a link like: admin.php?m=ratings&a=delete&id=499&d=1&x=...
Error: An error occured, maybe a wrong URL? Redirecting...

My site is a site coming from LDU over Seditio and Genoa to Siena.

How to solve?

 

My SQL parts for rating after export:

 

CREATE TABLE IF NOT EXISTS `sed_rated` (
  `rated_id` int(11) unsigned NOT NULL auto_increment,
  `rated_code` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `rated_userid` int(11) default NULL,
  `rated_value` tinyint(1) unsigned NOT NULL default '0',
  `rated_area` varchar(64) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`rated_id`),
  KEY `rated_code` (`rated_code`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ;



CREATE TABLE IF NOT EXISTS `sed_ratings` (
  `rating_id` int(11) NOT NULL auto_increment,
  `rating_code` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `rating_state` tinyint(2) NOT NULL default '0',
  `rating_average` decimal(5,2) NOT NULL default '0.00',
  `rating_creationdate` int(11) NOT NULL default '0',
  `rating_text` varchar(128) NOT NULL default '',
  `rating_area` varchar(64) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`rating_id`),
  KEY `rating_code` (`rating_code`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;

 

... can we help you ...
This post was edited by pieter (2011-05-01 10:06, 12 years ago)
Trustmaster
#2 2011-05-01 15:20

You're right, the links are wrong in that part. I've fixed them in r2063.

May the Source be with you!
pieter
#3 2011-05-01 16:26

Admin part is solved, but the part for users to delete it, still gives the ajax error.

... can we help you ...