Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.25k stars 2.72k forks source link

API > explorer blank page #30408

Open kefahB opened 2 months ago

kefahB commented 2 months ago

Bug

Hello,

When I try to access the API via /api/index.php/explorer/ the page appear like below:

Capture d’écran 2024-07-17 à 12 38 28

login via /api/index.php/login work perfectly

I have no external modules, I did updated to the latest.

Dolibarr Version

20.0.0-beta

Environment PHP

8.2

Environment Database

20.0.0-beta

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

kefahB commented 2 months ago

here is the log when triyng to open the explorer:

2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- Access to GET /api/index.php/explorer/ - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- End access to /api/index.php/explorer/
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- Access to GET /api/index.php/explorer/css/typography.css - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- End access to /api/index.php/explorer/css/typography.css
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- Access to GET /api/index.php/explorer/lib/jquery-1.8.0.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- Access to GET /api/index.php/explorer/lib/jquery.slideto.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- Access to GET /api/index.php/explorer/css/screen.css - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 --- Access to GET /api/index.php/explorer/css/reset.css - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- Access to GET /api/index.php/explorer/lib/object-assign-pollyfill.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- End access to /api/index.php/explorer/lib/jquery-1.8.0.min.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- End access to /api/index.php/explorer/lib/jquery.slideto.min.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- End access to /api/index.php/explorer/css/screen.css
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 --- End access to /api/index.php/explorer/css/reset.css
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- End access to /api/index.php/explorer/lib/object-assign-pollyfill.js
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- Access to GET /api/index.php/explorer/lib/jquery.ba-bbq.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- End access to /api/index.php/explorer/lib/jquery.ba-bbq.min.js
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- Access to GET /api/index.php/explorer/lib/lodash.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- Access to GET /api/index.php/explorer/lib/backbone-min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- Access to GET /api/index.php/explorer/lib/handlebars-4.0.5.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- Access to GET /api/index.php/explorer/lib/highlight.9.1.0.pack_extended.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- End access to /api/index.php/explorer/lib/backbone-min.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- End access to /api/index.php/explorer/lib/lodash.min.js
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 --- Access to GET /api/index.php/explorer/lib/jquery.wiggle.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- End access to /api/index.php/explorer/lib/handlebars-4.0.5.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- End access to /api/index.php/explorer/lib/highlight.9.1.0.pack_extended.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12084 329567 --- End access to /api/index.php/explorer/lib/jquery.wiggle.min.js
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- Access to GET /api/index.php/explorer/swagger-ui.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- Access to GET /api/index.php/explorer/lib/jsoneditor.min.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- Access to GET /api/index.php/explorer/lib/marked.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- Access to GET /api/index.php/explorer/lib/swagger-oauth.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 NOTICE  2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- Access to GET /api/index.php/explorer/lib/highlight.9.1.0.pack.js - action=, massaction= NOTOKENRENEWAL=1
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 DEBUG   2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where (lang='en_US' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12085 329567 --- End access to /api/index.php/explorer/lib/marked.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12087 329567 --- End access to /api/index.php/explorer/lib/jsoneditor.min.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12086 329567 --- End access to /api/index.php/explorer/lib/highlight.9.1.0.pack.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12083 329567 --- End access to /api/index.php/explorer/lib/swagger-oauth.js
2024-07-17 11:15:09 INFO    2001:7e8:c416:7c01:d81f:72ab:b706:915c   12082 329567 --- End access to /api/index.php/explorer/swagger-ui.js
medAmineRg commented 1 month ago

hey bro did you fixed it ?