2020-11-19, 06:36 PM
Hi,
I want to install the following plugin ( HTML in Posts ) : https://community.mybb.com/mods.php?action=view&pid=16
When I tried to activate it from the admin panel I have this error :
In the php plugin file, the database insertion is like this :
I am on :
MyBB : MyBB 1.8.24
Server : 10.3.25-MariaDB-0+deb10u1 - Debian 10
In this post (https://community.mybb.com/thread-137925-page-2.html), the advice is to go on this file to see the database creation : https://github.com/mybb/mybb/blob/featur...tables.php
I am not an expert so I have downloaded a random plugin with a recent last build : https://community.mybb.com/mods.php?acti...d&pid=1264
In this plugin, the database creation is like this :
Do I need to change the respective parts concerning this in the "HTML in posts" plugin ?
Last time, it activated but I was under MySQL.
Or maybe it's not this ^^'
Edit :
There is insertion of the line
"htmlposts" "HTML in Posts" "Settings for HTML in Posts plugin." "100" "0"
In the table "mybb_settinggroups"
I want to install the following plugin ( HTML in Posts ) : https://community.mybb.com/mods.php?action=view&pid=16
When I tried to activate it from the admin panel I have this error :
MyBB has experienced an internal SQL error and cannot continue.
In the php plugin file, the database insertion is like this :
function htmlposts_activate()
{
global $db, $lang;
// create settings group
$insertarray = array(
'name' => 'htmlposts',
'title' => 'HTML in Posts',
'description' => "Settings for HTML in Posts plugin.",
'disporder' => 100,
'isdefault' => 0
);
$gid = $db->insert_query("settinggroups", $insertarray);
I am on :
MyBB : MyBB 1.8.24
Server : 10.3.25-MariaDB-0+deb10u1 - Debian 10
In this post (https://community.mybb.com/thread-137925-page-2.html), the advice is to go on this file to see the database creation : https://github.com/mybb/mybb/blob/featur...tables.php
I am not an expert so I have downloaded a random plugin with a recent last build : https://community.mybb.com/mods.php?acti...d&pid=1264
In this plugin, the database creation is like this :
function abp_restricturl_install() {
global $db, $lang;
$lang->load(CN_ABPRURL);
$settinggroups = [
'name' => CN_ABPRURL,
'title' => $lang->abp_restricturl_setting_title,
'description' => $lang->abp_restricturl_setting_desc,
'disporder' => 0,
'isdefault' => 0
];
$db->insert_query('settinggroups', $settinggroups);
$gid = $db->insert_id();
abp_restricturl_upgrade($gid);
rebuild_settings();
}
Do I need to change the respective parts concerning this in the "HTML in posts" plugin ?
Last time, it activated but I was under MySQL.
Or maybe it's not this ^^'
Edit :
There is insertion of the line
"htmlposts" "HTML in Posts" "Settings for HTML in Posts plugin." "100" "0"
In the table "mybb_settinggroups"