Proposal & Orders screen blank after update

Hello,
I’ve been using Dolibarr for several years and updating it without issues from vers 3.4.2 to vers 10.0.3 (several updates since I installed it, when these version were released).
Now I’m stuck in this version because everytime I try to adpdate to 10.0.7, or above the update works fine (only two minor issues with to tables I can solve via phpmyadmin), but when log into Dolibarr everything works fine except two screens; proposals (Presupuestos, I have the spanish version) and orders (Pedidos). The screen is totally blank. All the other parts and screens of the progams work fine.
This is a capture of how the screen loooks like.


Dolibarr vers: 10.0.3 -> 12.0.3
Apache 2.4.41
PHP 7.4.3
MySQL 8.0.21
Ubuntu 20.04.1 LTS

Regards

Hi,

Blank means php error.
Please have a look to Apache logs

1 Like

Thank you for your quick answer Ksar.
I did it, but no clues (/var/log/apache2/access.log) :

192.168.XXX.XXX - - [12/Oct/2020:13:00:22 +0200] “GET /dolibarr/commande/list.php?leftmenu=orders HTTP/1.1” 200 18181 “http://192.168.XXX.XXX/dolibarr/commande/card.php?id=314” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0”
192.168.XXX.XXX - - [12/Oct/2020:13:00:22 +0200] “GET /dolibarr/core/js/lib_notification.js.php?layout=classic&version=12.0.3 HTTP/1.1” 200 4383 “http://192.168.XXX.XXX/dolibarr/commande/list.php?leftmenu=orders” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0”
192.168.XXX.XXX - - [12/Oct/2020:13:00:25 +0200] “GET /dolibarr/commande/card.php?id=312&save_lastsearch_values=1 HTTP/1.1” 200 4737 “http://192.168.XXX.XXX/dolibarr/commande/list.php?leftmenu=orders” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0”
192.168.XXX.XXX - - [12/Oct/2020:13:00:25 +0200] “GET /dolibarr/core/js/lib_notification.js.php?layout=classic&version=12.0.3 HTTP/1.1” 200 4383 “http://192.168.XXX.XXX/dolibarr/commande/card.php?id=312&save_lastsearch_values=1” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0”

Regards.
P.S.I’ve replaced the actual IP’s by XXX

Sorry Ksar, I forgot the /var/log/apache2/error.log:

[Mon Oct 12 13:00:25.110364 2020] [php7:error] [pid 348479] [client 192.168.XXX.XXX:4921] PHP Fatal error: Uncaught Error: Unsupported operand types in /usr/share/dolibarr/htdocs/core/class/hookmanager.class.php:257\nStack trace:\n#0 /usr/share/dolibarr/htdocs/core/lib/functions.lib.php(7585): HookManager->executeHooks()\n#1 /usr/share/dolibarr/htdocs/core/lib/order.lib.php(83): complete_head_from_modules()\n#2 /usr/share/dolibarr/htdocs/commande/card.php(1926): commande_prepare_head()\n#3 {main}\n thrown in /usr/share/dolibarr/htdocs/core/class/hookmanager.class.php on line 257, referer: http://192.168.XXX.XXX/dolibarr/commande/list.php?leftmenu=orders

Regards.

HI,

The error is related to hookmanager => Have you external module installed ?

Finally I’ve found the solution. As is described in the error.log file there is an error en the line 257 of the file /usr/share/dolibarr/htdocs/core/class/hookmanager.class.php.
There were an operand +=, I’ve replaced this operand by == and now dolibarr works fine!

Thans Ksar for your clue about php errors
Regards

Hi,

Sorry but no it is not supposed to work like that.

The line 257 must be like that :

$resaction += $actionclassinstance->$method($parameters, $object, $action, $this); // $object and $action can be changed by method ($object->id during creation for example or $action to go back to other action for example)

Remember if you are on line 257, that’s means the Hook type “addreplace” should return an int
If it fails, means that a hook on your system doesn’t return an int.
So You have a “bad” external module installed.

1 Like

Hi,
Thanks again. Yes, you were right, it was an old module (Doliconta) the root cause. I’ve deactivated it and restored the line 257 and everything works fine.
Regards.

1 Like