Posts: 18
Threads: 6
Joined: Oct 2019
Reputation:
0
2020-04-06, 06:53 AM
(This post was last modified: 2020-04-06, 06:56 AM by therealcorleone. Edited 1 time in total.)
Hey,
Im receiving an error on mybb forums and Im guessing that it was because I installed a bad plug in. The error reads as :
MyBB SQL Error
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:1364 - Field 'myforumicons_icon' doesn't have a default valueQuery:INSERT INTO mb_forums (name ,description ,linkto ,type ,pid ,parentlist ,disporder ,active ,open ,allowhtml ,allowmycode ,allowsmilies ,allowimgcode ,allowvideocode ,allowpicons ,allowtratings ,usepostcounts ,usethreadcounts ,requireprefix ,password ,showinjump ,style ,overridestyle ,rulestype ,rulestitle ,rules ,defaultdatecut ,defaultsortby ,defaultsortorder ) VALUES ('1-2 Punch Battle League','ff','','f',4,'',1,1,1,0,1,1,1,1,1,1,1,1,0,'',1,0,0,0,'','',0,'','')
Please contact the MyBB Group for technical support.
Can anyone explain this to me? It wont allow me to add new forums or categories to the forum itself.
Thanks,
- Corleone
Posts: 3,068
Threads: 212
Joined: Nov 2014
Reputation:
147
2020-04-06, 06:57 AM
Can you disable the plugin from the ACP?
-Ben
Please do not PM me for support. I am looking to be hired for paid services.
You can view my paid services here.
Posts: 18
Threads: 6
Joined: Oct 2019
Reputation:
0
2020-04-06, 06:58 AM
(This post was last modified: 2020-04-06, 07:02 AM by therealcorleone. Edited 1 time in total.)
(2020-04-06, 06:57 AM)Ben Wrote: Can you disable the plugin from the ACP?
I disabled the plug in, and was forced to delete it from the file directory on godaddy.coms' installatron but the error continues to read as is.
Posts: 21,678
Threads: 5
Joined: Aug 2011
Reputation:
2,313
2020-04-06, 07:04 AM
basically the problem is due to strict mode of your database server.
you might get such errors while installing a number of plugins.
it might be better to try disabling strict mode by using query like :
set sql_mode='';
[ SQL Queries guidance]
Posts: 18
Threads: 6
Joined: Oct 2019
Reputation:
0
2020-04-06, 07:54 AM
(This post was last modified: 2020-04-06, 08:08 AM by therealcorleone. Edited 1 time in total.)
(2020-04-06, 07:04 AM).m. Wrote: basically the problem is due to strict mode of your database server.
you might get such errors while installing a number of plugins.
it might be better to try disabling strict mode by using query like :
set sql_mode='';
[SQL Queries guidance]
And how would I go about doing that? I'm not too experienced with dealing with SQL queries. Is their another simpler way to go about handling this issue?
By the way, I followed every instruction you've gave me and Im still seeing the exact error.
Posts: 21,678
Threads: 5
Joined: Aug 2011
Reputation:
2,313
2020-04-06, 08:50 AM
can you run below SQL query & check if it helps
ALTER TABLE `mb_forums` MODIFY COLUMN `myforumicons_icon` TEXT NOT NULL default '';
Posts: 18
Threads: 6
Joined: Oct 2019
Reputation:
0
2020-04-06, 10:08 AM
(2020-04-06, 08:50 AM).m. Wrote: can you run below SQL query & check if it helps
ALTER TABLE `mb_forums` MODIFY COLUMN `myforumicons_icon` TEXT NOT NULL default '';
Its still reading as error :
SQL query:
ALTER TABLE `mb_forums` MODIFY COLUMN `myforumicons_icon` TEXT NOT NULL default ''
MySQL said:
#1101 - BLOB/TEXT column 'myforumicons_icon' can't have a default value
Posts: 21,678
Threads: 5
Joined: Aug 2011
Reputation:
2,313
2020-04-06, 10:28 AM
(This post was last modified: 2020-04-06, 10:30 AM by .m.. Edited 1 time in total.)
you can delete 'myforumicons_icon' field as you have removed the plugin files
try this query
ALTER TABLE `mb_forums` DROP COLUMN `myforumicons_icon`;
Posts: 18
Threads: 6
Joined: Oct 2019
Reputation:
0
2020-04-06, 10:58 AM
(This post was last modified: 2020-04-06, 11:24 AM by therealcorleone. Edited 3 times in total.)
(2020-04-06, 10:28 AM).m. Wrote: you can delete 'myforumicons_icon' field as you have removed the plugin files
try this query
ALTER TABLE `mb_forums` DROP COLUMN `myforumicons_icon`;
I've searched throughout the entire directory on PHP and I cannot find the field titled, ' 'myforumicons_icon'
Oddly so, the error is reading that the key exist so I am assuming it is somewhere around but I cannot find the directory to delete the field. Can you direct me to the exact directory on where I could find this field so that I can delete it?
I entered the query anyways to see if the field had existed, prior, so that I could track the file down or in hopes that it had not existed at all, being that I could not find the file and the report reads as displayed below. Thus, I was able to find out the that the field possibly does exist, but I still was not able to input the query to which you've gave me.
The responsive error reads as :
Error
SQL query:
ALTER TABLE `mb_forums` DROP COLUMN `myforumicons_icon`
MySQL said:
#1091 - Can't DROP 'myforumicons_icon'; check that column/key exists
Posts: 21,678
Threads: 5
Joined: Aug 2011
Reputation:
2,313
2020-04-06, 11:11 AM
does the error still exists ?
Quote:1364 - Field 'myforumicons_icon' doesn't have a default value
|