The Elearning Community • Errore Trasferimento utente
Page 1 of 1

Errore Trasferimento utente

Posted: Sun Nov 22, 2020 8:14 am
by pexlex
Salve, oggi provando a trasferire un utente da un nodo a l'altro mi da questo errore:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function TreeDb_OrgDb::TreeDb_OrgDb(), 0 passed in /web/htdocs/www.xxxxx.it/home/appCore/controllers/U ... roller.php on line 1574 and exactly 1 expected in /web/htdocs/www.xxxxx.it/home/appCore/modules/org_c ... art.php:49 Stack trace: #0 /web/htdocs/www.xxxxx.it/home/appCore/controllers/U ... .php(1574): TreeDb_OrgDb->TreeDb_OrgDb() #1 /web/htdocs/www.xxxxx.it/home/lib/mvc/lib.controller.php(50): UsermanagementAdmController->assignuser() #2 /web/htdocs/www.xxxxx.it/home/lib/lib.requesthandler.php(43): Controller->request() #3 /web/htdocs/www.xxxxx.it/home/appCore/index.php(70): RequestHandler->run() #4 {main} thrown in /web/htdocs/www.xxxxx.it/home/appCore/modules/org_c ... _chart.php on line 49

:shock: :shock: :shock: :shock:

che è successo ?

Re: Errore Trasferimento utente

Posted: Sun Nov 22, 2020 6:22 pm
by alfa24
Versione di PHP?

Re: Errore Trasferimento utente

Posted: Mon Nov 23, 2020 12:08 am
by pexlex
Grazie ! con php superiore a 7.0 non funzionava, avevo php 7.4, grazie ancora. Risolto

Re: Errore Trasferimento utente

Posted: Mon Nov 23, 2020 9:09 am
by alfa24
Da PHP 7.1 ArgumentCountError è fatal (ed è giusto che sia così).
https://www.php.net/manual/en/migration ... atible.php

Per risolvere, in questo caso, sostituire TreeDb_OrgDb() con TreeDb_OrgDb('%adm_org_chart_tree').

This site uses cookies.

Some of the cookies we use are essential for parts of the site to operate and have already been set. We also use Google Analytics scripts, which all use cookies.
You may delete or block all cookies from this site in your browser options.