Hi, I have 4 styles installed (see attached)
When I attempt to delete vb3 mobile skin I get the error:
Could not find style with styleid = 0.
Here is the description of my "style" table:
mysql> describe style;
+---------------+----------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+----------------------+------+-----+---------+-------+
| styleid | smallint(5) unsigned | NO | PRI | 0 | |
| title | varchar(250) | NO | | | |
| parentid | smallint(6) | NO | | 0 | |
| parentlist | varchar(250) | NO | | | |
| templatelist | mediumtext | YES | | NULL | |
| csscolors | mediumtext | YES | | NULL | |
| css | mediumtext | YES | | NULL | |
| stylevars | mediumtext | YES | | NULL | |
| replacements | mediumtext | YES | | NULL | |
| editorstyles | mediumtext | YES | | NULL | |
| userselect | smallint(5) unsigned | NO | | 1 | |
| displayorder | smallint(5) unsigned | NO | | 0 | |
| importstyleid | bigint(20) | NO | | 0 | |
+---------------+----------------------+------+-----+---------+-------+
13 rows in set (0.00 sec)
Some data from style table:
mysql> select styleid, title,parentlist from style;
+---------+------------------------+------------+
| styleid | title | parentlist |
+---------+------------------------+------------+
| 1 | Default Style | 1,-1 |
| 5 | Skilltest - No Sidebar | 5,-1 |
| 13 | DarkShadows V5 | 13,-1 |
| 0 | vB3 Mobile Skin | 0,-1 |
+---------+------------------------+------------+
4 rows in set (0.00 sec)
Any idea how to fix this issue? Should styleid be set to auto_increment?
Thanks a ton.
When I attempt to delete vb3 mobile skin I get the error:
Could not find style with styleid = 0.
Here is the description of my "style" table:
mysql> describe style;
+---------------+----------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+----------------------+------+-----+---------+-------+
| styleid | smallint(5) unsigned | NO | PRI | 0 | |
| title | varchar(250) | NO | | | |
| parentid | smallint(6) | NO | | 0 | |
| parentlist | varchar(250) | NO | | | |
| templatelist | mediumtext | YES | | NULL | |
| csscolors | mediumtext | YES | | NULL | |
| css | mediumtext | YES | | NULL | |
| stylevars | mediumtext | YES | | NULL | |
| replacements | mediumtext | YES | | NULL | |
| editorstyles | mediumtext | YES | | NULL | |
| userselect | smallint(5) unsigned | NO | | 1 | |
| displayorder | smallint(5) unsigned | NO | | 0 | |
| importstyleid | bigint(20) | NO | | 0 | |
+---------------+----------------------+------+-----+---------+-------+
13 rows in set (0.00 sec)
Some data from style table:
mysql> select styleid, title,parentlist from style;
+---------+------------------------+------------+
| styleid | title | parentlist |
+---------+------------------------+------------+
| 1 | Default Style | 1,-1 |
| 5 | Skilltest - No Sidebar | 5,-1 |
| 13 | DarkShadows V5 | 13,-1 |
| 0 | vB3 Mobile Skin | 0,-1 |
+---------+------------------------+------------+
4 rows in set (0.00 sec)
Any idea how to fix this issue? Should styleid be set to auto_increment?
Thanks a ton.
Comment