Hi,

Please help me, I am having a problem when I want to log in, it appears as below:

Error view:

My system detail:

Log nginx:
2024/06/10 20:26:50 [error] 1111#1111: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function hasPerm() on null in /var/www/html/intix/include/class.staff.php:616
Stack trace:
#0 /var/www/html/intix/include/class.nav.php(174): Staff->hasPerm()
#1 /var/www/html/intix/include/class.nav.php(39): StaffNav->getSubMenus()
#2 /var/www/html/intix/include/class.nav.php(107): StaffNav->__get()
#3 /var/www/html/intix/scp/tickets.php(485): StaffNav->addSubMenu()
#4 /var/www/html/intix/scp/index.php(17): require('...')
#5 {main}
thrown in /var/www/html/intix/include/class.staff.php on line 616" while reading response header from upstream, client: 202.75.18.138, server: mywebsite, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "mywebsite", referrer: "https://mywebsite/scp/login.php"

  • KevinTheJedi replied to this.
  • kamrang

    It appears you did not set a Role Permission for the Staff member (or maybe it wasn't saved correctly). Have an Admin go to Admin Panel > Agents > Agents, click your name, click Access, add a Primary Department, add a Role, and Save Changes. Then you should be able to login without error.

    Cheers.

    kamrang

    It appears you did not set a Role Permission for the Staff member (or maybe it wasn't saved correctly). Have an Admin go to Admin Panel > Agents > Agents, click your name, click Access, add a Primary Department, add a Role, and Save Changes. Then you should be able to login without error.

    Cheers.

    Thank you for your reply, you are right, I forgot to save the access settings for my own user, which resulted in me not being able to access it.

    Write a Reply...