Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty page #24894

Open
fred-gb opened this issue May 26, 2023 · 5 comments
Open

Empty page #24894

fred-gb opened this issue May 26, 2023 · 5 comments
Labels
Bug This is a bug (something does not work as expected) DevCamp 2023 Bordeaux

Comments

@fred-gb
Copy link

fred-gb commented May 26, 2023

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
@fred-gb fred-gb added the Bug This is a bug (something does not work as expected) label May 26, 2023
@Daviid-P
Copy link
Contributor

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
Copy link
Author

fred-gb commented May 26, 2023

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 AurelienBISOTTI added the Bug invalid or external Bug not valid or for another component label Jun 10, 2023
@AurelienBISOTTI
Copy link

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
Copy link
Author

fred-gb commented Jun 12, 2023

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
Copy link
Member

eldy commented Dec 28, 2023

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 eldy removed the Bug invalid or external Bug not valid or for another component label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) DevCamp 2023 Bordeaux
Projects
None yet
Development

No branches or pull requests

4 participants