Error Menu entry (all,100,) already exists

Hello,

I have a bit of a tricky one and i am a little lost. When I activate Stripe i get error message “Error Menu entry (all,100,) already exists” which is interesting since i have never activated this module before today. Would this be an issue in an SQL table or the files itself? any help would be appreciated

Regards
Amano Yuki

which version of Dolibarr and what is written in the console log?

Hi,

I am on version Dolibarr 18.0.4

172.19.0.1 - - [02/Feb/2024:13:46:36 +1000] “GET /custom/lemodule/js/myjs.js.php?lang=en_AU HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mode=common&page_y=3885.5556640625” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:36 +1000] “GET /dropdownmenu/js/dropdownmenu.js.php?lang=en_AU HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mode=common&page_y=3885.5556640625” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:36 +1000] “GET /theme/md/style.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=203 HTTP/1.1” 200 46676 “erp.isshoya/admin/modules.php?mode=common&page_y=3885.5556640625” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:49 +1000] “GET /admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php HTTP/1.1” 200 11067 “erp.isshoya/admin/modules.php?mode=common&page_y=3885.5556640625” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:49 +1000] “GET /custom/lemodule/css/mycss.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=203 HTTP/1.1” 200 174 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:49 +1000] “GET /dropdownmenu/css/dropdownmenu.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=203 HTTP/1.1” 404 360 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:49 +1000] “GET /custom/lemodule/js/myjs.js.php?lang=en_AU HTTP/1.1” 200 174 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:49 +1000] “GET /dropdownmenu/js/dropdownmenu.js.php?lang=en_AU HTTP/1.1” 404 360 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:46:50 +1000] “GET /document.php?modulepart=logs&file=dolibarr.log HTTP/1.1” 200 36290 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:50:52 +1000] “GET /admin/modules.php?mainmenu=home HTTP/1.1” 200 20737 “erp.isshoya/admin/syslog.php?save_lastsearch_values=1&backtopage=%2Fadmin%2Fmodules.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:50:54 +1000] “GET /custom/lemodule/css/mycss.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=203 HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:50:54 +1000] “GET /custom/lemodule/js/myjs.js.php?lang=en_AU HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:50:54 +1000] “GET /dropdownmenu/js/dropdownmenu.js.php?lang=en_AU HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:50:54 +1000] “GET /dropdownmenu/css/dropdownmenu.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=203 HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:06 +1000] “GET /admin/modules.php?id=50300&token=a73c7f970b6729a4f33c7b40a3b1dd78&module_position=50&action=set&token=a73c7f970b6729a4f33c7b40a3b1dd78&value=modStripe&mode=common&page_y=3777.77783203125 HTTP/1.1” 302 355 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:07 +1000] “GET /admin/modules.php?mode=common&page_y=3777.77783203125 HTTP/1.1” 200 20843 “erp.isshoya/admin/modules.php?mainmenu=home” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:09 +1000] “GET /custom/lemodule/css/mycss.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=204 HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:09 +1000] “GET /dropdownmenu/css/dropdownmenu.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=204 HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:09 +1000] “GET /dropdownmenu/js/dropdownmenu.js.php?lang=en_AU HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:09 +1000] “GET /custom/lemodule/js/myjs.js.php?lang=en_AU HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:09 +1000] “GET /theme/md/style.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=204 HTTP/1.1” 200 46676 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:28 +1000] “GET /admin/modules.php?id=50300&token=a73c7f970b6729a4f33c7b40a3b1dd78&module_position=50&action=set&token=a73c7f970b6729a4f33c7b40a3b1dd78&value=modStripe&mode=common&page_y=3777.77783203125 HTTP/1.1” 302 355 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
[Fri Feb 02 13:51:28.903841 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/admin/modules.php on line 413, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
[Fri Feb 02 13:51:28.939077 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/admin/modules.php on line 413, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
[Fri Feb 02 13:51:28.999323 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/admin/modules.php on line 413, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
[Fri Feb 02 13:51:29.101752 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/core/modules/modStock.class.php on line 170, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
[Fri Feb 02 13:51:29.118052 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/admin/modules.php on line 413, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
[Fri Feb 02 13:51:29.119400 2024] [php:warn] [pid 98] [client 172.19.0.1:45668] PHP Warning: Undefined property: stdClass::$MAIN_FEATURES_LEVEL in /var/www/html/admin/modules.php on line 413, referer: erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125
172.19.0.1 - - [02/Feb/2024:13:51:28 +1000] “GET /admin/modules.php?mode=common&page_y=3777.77783203125 HTTP/1.1” 200 20842 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:30 +1000] “GET /dropdownmenu/js/dropdownmenu.js.php?lang=en_AU HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:30 +1000] “GET /dropdownmenu/css/dropdownmenu.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=205 HTTP/1.1” 404 360 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:30 +1000] “GET /custom/lemodule/css/mycss.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=205 HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:30 +1000] “GET /custom/lemodule/js/myjs.js.php?lang=en_AU HTTP/1.1” 200 174 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
172.19.0.1 - - [02/Feb/2024:13:51:30 +1000] “GET /theme/md/style.css.php?lang=en_AU&theme=md&userid=1&entity=1&layout=classic&version=18.0.4&revision=205 HTTP/1.1” 200 46676 “erp.isshoya/admin/modules.php?mode=common&page_y=3777.77783203125” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36” <<

I am unable to upload the dolibarr.log file but can send it to an email if needed but here is an exert from the log relating to Stripe.

2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b BEGIN Transaction
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b admin.lib::dolibarr_set_const
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=DELETE FROM llx_const WHERE name = ‘MAIN_MODULE_SETUP_ON_LIST_BY_DEFAULT’ AND entity = 1
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b admin.lib::dolibarr_set_const
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=INSERT INTO llx_const(name, value, type, visible, note, entity) VALUES (‘MAIN_MODULE_SETUP_ON_LIST_BY_DEFAULT’, ‘common’, ‘chaine’, 0, ‘’, 1)
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b COMMIT Transaction
2024-02-02 03:46:34 INFO 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b max_execution_time=30 is lower than max_execution_time_for_deploy=300. We try to increase it dynamically.
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b BEGIN Transaction
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::_active delete activation constant
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=DELETE FROM llx_const WHERE name = ‘MAIN_MODULE_STRIPE’ AND entity IN (0, 1)
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::_active insert activation constant
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=INSERT INTO llx_const (name, value, visible, entity, note) VALUES (‘MAIN_MODULE_STRIPE’, ‘1’, 0, 1, ‘{"authorid":"1","ip":"172.19.0.1","lastactivationversion":"dolibarr"}’)
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_boxes
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_cronjobs
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_permissions
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=SELECT value as value FROM llx_const WHERE name = ‘MAIN_MODULE_STRIPE’ AND entity IN (0,1)
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_menus
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b sql=SELECT count(*) FROM llx_menu WHERE menu_handler = ‘all’ AND fk_menu = -1 AND position = 100 AND url = ‘’ AND entity IN (0, 1)
2024-02-02 03:46:34 WARNING 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b Menubase::create menu entry already exists
2024-02-02 03:46:34 ERR 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_menus result=0 Error Menu entry (all,100,) already exists
2024-02-02 03:46:34 ERR 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b modStripe::insert_menus Error Menu entry (all,100,) already exists
2024-02-02 03:46:34 DEBUG 2403:580b:4649:0:2dfa:7fc0:db3b:629b, 172.68.64.178 → 2403:580b:4649:0:2dfa:7fc0:db3b:629b ROLLBACK Transaction<<

Thank you for any help you are able to provide.
Yuki

You have 9 404 errors, and all of them start with GET /dropdownmenu/

I can not find any directory or file with that name in or under dolibarr/htdocs at develop · Dolibarr/dolibarr · GitHub

I wonder where that comes from?

Hi,

I am not sure, i have been recently assigned this task and i am a little unsure of what is going on as this is outside the realm of my knowledge. i have done as much reading up as i can before asking for help.

What would you suggest, a fresh install after backing up and restoring all the Tables? or is this something that would be able to be fixed without a fresh install?

I don’t know, but if you try again then please write down every step you take, and every detail about your system such that it can be reproduced.

It is an issue in the SQL Tables I am still trying to pinpoint which it is.
I reinstalled and then restored the tables but the issue was still there so i reinstalled and from fresh install manually entered SQL table data after entering test information into each location.

So far everything works fine and no issue with Stripe.
Still have the other database I will be looking into when i find something i will post an update.

Much Thanks