In the config.php file, I initially created three different text input boxes under the myModuleName_config() function.
one for name, api_key, and api_token.
Heres the example:
function myBridgeConnect_config(){
// API Key
$_tmp = array(
'name' => 'api_key',
'type' => 'text',
'default' => '',
'validate' => 'printable',
'label' => 'Bridge API Key',
'help' => 'Enter your API Key',
'required' => true,
);
jrCore_register_setting('myBridgeConnect', $_tmp);
return true;
}
These boxes all appeared in the module Global Config • general settings and functioned correctly, allowing me to save names, API keys and tokens to the module config file. However, as the API integration progressed, it became evident that only the token was required, prompting me to remove the two API key and name from the config.php file and the myBridgeConnect() function.
Regrettably, even after removing the code for these two text boxes, they persistently appear on the Admin Control Panel (ACP) Global Config • general settings tab for the module. I have diligently undertaken several troubleshooting steps to rectify this issue, including:
1. Clearing ALL browser cache and history.
2. Deleting the module item and associated keys from the database.
3. Integrity check including: Database Items, Language Strings, Form Sessions, PHP Opcache, File System Caches, Javascript Files, CSS Files, Sprite Icons, and All Template Files
4. Completely uninstalling the module, re-uploading the fixed new version, and reinstalling it.
Despite ALL these efforts, the unwanted text boxes remain visible on the ACP config tab, indicating that the removal is not taking effect as expected. At this point, I am inclined to believe that there may be a bug within Jamroom preventing the proper clearance of these unnecessary options from developers. Also, I am running the site in developer mode with no cache.
I kindly request your expertise and assistance in resolving this matter. Any guidance or insights you can provide to help me overcome this issue would be greatly appreciated.
Thank you for your time and support.
Best regards,
updated by @developer-networks: 04/05/24 04:27:03PM