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.26k stars 2.73k forks source link

Empty page #24894

Closed fred-gb closed 3 months ago

fred-gb commented 1 year ago

Bug

Hi,

Following this post: https://www.dolibarr.fr/forum/t/impossible-dafficher-comptabilite-avancee/43105

What I can do? Thanks

Environment Version

16.0.5

Environment OS

Ubuntu

Environment Web server

Apache2

Environment PHP

php8

Environment Database

mariadb

Environment URL(s)

No response

Expected and actual behavior

actual:

Capture d’écran 2023-05-26 à 14 48 33

Steps to reproduce the behavior

I try in dev environnement/install to upgrade from 15.0.0 to 16.0.5 (not 17.0.1, because not compatible with cyberoffice plugin)

I try a step to 15.0.2, same error.

This test environnement uses: https://hub.docker.com/r/upshift/dolibarr

I disable all cores modules and externals modules. Empty cache. Remove custom folder.

Attached files

For most of pages, this type of error:

[Fri May 26 12:45:41.086258 2023] [php:error] [pid 39] [client 127.0.0.1:37716] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in /var/www/html/core/menus/standard/eldy.lib.php:962\nStack trace:\n#0 /var/www/html/core/menus/standard/eldy_menu.php(150): print_left_eldy_menu()\n#1 /var/www/html/main.inc.php(2870): MenuManager->showmenu()\n#2 /var/www/html/main.inc.php(1387): left_menu()\n#3 /var/www/html/societe/index.php(78): llxHeader()\n#4 {main}\n  thrown in /var/www/html/core/menus/standard/eldy.lib.php on line 962, referer: https://dolibarr-FQDN.com/comm/index.php?mainmenu=commercial&leftmenu=

And:

Fri May 26 12:55:45.744856 2023] [php:warn] [pid 38] [client 127.0.0.1:48716] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/var/www/html/..) is not within the allowed path(s): (/var/www/localhost/htdocs:/var/www/documents:/var/www/run:/tmp) in /var/www/html/core/lib/functions2.lib.php on line 100, referer: https://dolibarr-FQDN.com/admin/index.php?mainmenu=home&leftmenu=setup
Daviid-P commented 1 year ago

This one Fri May 26 12:55:45.744856 2023] [php:warn] [pid 38] [client 127.0.0.1:48716] PHP Warning: is_dir(): open_basedir restriction in effect. File(/var/www/html/..) is not within the allowed path(s): (/var/www/localhost/htdocs:/var/www/documents:/var/www/run:/tmp) in /var/www/html/core/lib/functions2.lib.php on line 100, referer: https://dolibarr-FQDN.com/admin/index.php?mainmenu=home&leftmenu=setup

might be because of a wrong path on htdocs\conf\conf.php or because of the PHP config variable open_basedir, are you hosting on a server?

fred-gb commented 1 year ago

Thanks,

Since your answer, I found something new.

When I change menu like that:

Capture d’écran 2023-05-26 à 16 31 14

With auguria_menu

Menus appears, but not look good:

Capture d’écran 2023-05-26 à 16 33 57 Capture d’écran 2023-05-26 à 16 34 18

NULL everywhere

It's better, but not solution I'm thinking.

An idea?

Thanks

AurelienBISOTTI commented 1 year ago

Seems linked to your environment and not to Dolibarr.

You might need to check PHP logs and Dolibarr Logs

Capture d’écran du 2023-06-10 18-40-11

Capture d’écran du 2023-06-10 18-39-58

fred-gb commented 1 year ago

Hello, Thanks, since initial post. I upgraded to Dolibarr 16.0.5 and let to PHP7, same problem. I let on agura_menu for the production, with little glitch. Thanks

eldy commented 8 months ago

I have some reason to think this may be fixed into more recent version. Does this bug still occurs with last stable version ? If not, can you close ticket ? If yes, can you confirm the last stable version you reproduced the bug with ?

Also did you try to disable ALL external modules if you have some ?

eldy commented 3 months ago

No answer received, so i close tocket.