MyBB Community Forums

Full Version: Need help to install Mytabs plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I had a board running with this plugin while testing it on localhost new board which i planned to launch i received sql error :
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1062 - Duplicate entry '1' for key 'PRIMARY'
Can someone please let me know how to fix it,
Thanks.
How are you receiving the error? Adding a tab? Importing?
Moved to Plugin Support.
When installing.
When I click on Activate. This error window appears.
In the plugin file find
		$default_settings[] = array(
			'id' => 1,
			'name' => 'enabled',
			'value' => '1'
		);

In each of those get rid of the line that says 'id' => x where x is the number.
Thanks very much dragonexpert
So you mean to say i have to remove that whole line so the code gonna look like this
$default_settings[] = array(
            'name' => 'enabled',
            'value' => '1'
        ); 
So will it work?[/code]

Thanks very much dragonexpert
So you mean to say i have to remove that whole line so the code gonna look like this
$default_settings[] = array(
            'name' => 'enabled',
            'value' => '1'
        ); 
So will it work?[/code]

Thanks very much dragonexpert
So you mean to say i have to remove that whole line so the code gonna look like this
$default_settings[] = array(
            'name' => 'enabled',
            'value' => '1'
        ); 
So will it work?[/code]
That should clear the issue. If it doesn't post again.
Thank you very much dragonexpert,
its fixed and working.
One last thing is after removing these lines of code does it makes my forum unstable?
Although thanks again for your assistance because now the plugin is working after doing the edit you said. .
It doesn't make it unstable at all. It is bad practice to assign a value to a field that has Auto Increment enabled.
This plugin is on the vulnerable plugins list, you should remove the vulnerabilities before going live with this
Pages: 1 2