Prime Links

General Error - Prime Links

General Error

by wads24 » Sun Oct 14, 2018 6:09 am

I went to save the settings and got this error

Code: Select all

General Error
SQL ERROR [ mysqli ]

Duplicate entry 'primelinks_enable_general' for key 'PRIMARY' [1062]


INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('primelinks_enable_general', 1, 0)


FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 997
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/config/db.php
LINE: 161
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/phpbb/config/db.php
LINE: 122
CALL: phpbb\config\db->set_atomic()

FILE: [ROOT]/ext/primehalo/primelinks/acp/main_module.php
LINE: 40
CALL: phpbb\config\db->set()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: primehalo\primelinks\acp\main_module->main()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
Thanks in advance for a reply.
User avatar
Registered User
Posts: 437
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: General Error

by primehalo » Sun Oct 14, 2018 11:58 pm

I have no idea why this is happening or how to recreate it. It's not happening for me. The backtrace isn't showing any useful info but line #40 in main_module.phpn is where primelinks_enable_general is set when the form is submitted:
$config->set('primelinks_enable_general', $request->variable('primelinks_enable_general', true));

That set() function is from phpBB, not one I wrote. I'd suggested maybe try clearing the forum's cache, and if that doesn't work maybe uninstalling the extension and then reintall.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Former Team Member
Posts: 2788
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA