We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[Pending. More information needed] how can i deal with a duplicate package error (500 internal server error )? | Forum

suchita jain
suchita jain May 14 '15
when i try to  use small route then i change the init.php file add these line
OW::getRouter()->addRoute(new OW_Route('register.index', 'regdetails', "REGISTER_CTRL_regdetails", 'index'));


activate.php :
OW::getNavigation()->addMenuItem(OW_Navigation::BOTTOM, 'register.index', 'register', 'bottom_menu_item', OW_Navigation::VISIBLE_FOR_ALL);

deactivate.php:
OW::getNavigation()->deleteMenuItem('register', 'bottom_menu_item');

after that i add a form in side views/controllers/regdetails_index.html

Error details: Type: Exception Message: Can't add package pointer `REGISTER_CMP`! Duplicated package pointer! File: /home/freephps/public_html/oxwall/ow_core/autoload.php Line: 260 Trace: #0 /home/freephps/public_html/oxwall/ow_core/plugin_manager.php(130): OW_Autoload->addPackagePointer('REGISTER_CMP', '/home/freephps/...') #1 /home/freephps/public_html/oxwall/ow_system_plugins/base/bol/plugin_service.php(660): OW_PluginManager->addPackagePointers(Object(BOL_Plugin)) #2 /home/freephps/public_html/oxwall/ow_system_plugins/admin/controllers/plugins.php(357): BOL_PluginService->activate('register') #3 [internal function]: ADMIN_CTRL_Plugins->activate(Array) #4 /home/freephps/public_html/oxwall/ow_core/request_handler.php(266): call_user_func_array(Array, Array) #5 /home/freephps/public_html/oxwall/ow_core/application.php(329): OW_RequestHandler->dispatch() #6 /home/freephps/public_html/oxwall/index.php(73): OW_Application->handleRequest() #7 {main}



The Forum post is edited by Alia May 18 '15
Taissa Team
Taissa May 14 '15
Topic was moved from General Questions.
Alia Team
Alia May 14 '15
suchita jain, do you have /components/ directory within your custom plugin?
Do you have any .php files within your plugin that refer for to REGISTER_CMP?

It would also be more efficient if you share your plugin's source code here.  Troubleshooting such cases is very difficult without seeing the whole picture.

suchita jain
suchita jain May 14 '15
no i m not having REGISTER_CMP inside register plugin or inside directory.
Alia Team
Alia May 14 '15
suchita jain, error is indication that such component is being used somewhere within your new plugin. I can try and assist you with this issue, but you must provide me full source code of your plugin.