Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andreigirnet96's avatar

Call to undefined function TCG\Voyager\readlink()

Call to undefined function TCG\Voyager\readlink() while trying to access laravel voyager on hosting, on localhost it is working

0 likes
7 replies
eterlinden's avatar

Have you run composer install or composer update on the hosting server? Do you have shell access to the hosting server? If you do, run the both the above compose commands (if everything is installed) or composer dump-autoload to rebuild all your class resolving.

Cheers,

lamualfa's avatar

Same problem here. I've run composer install & php artisan storage:link and installed the php fileinfo extension, and the problem still occurs.

my tech stack:

  • centos 7.9
  • php 8.1
  • nginx 1.19
  • laravel 9
  • voyager 1.5
lamualfa's avatar

I found the cause of the error. For security reasons, some hosting providers or managers like aaPanel disable the PHP readlink function on their machines. So the solution is you need to find a way to enable it again.

Sinnbeck's avatar

@Klara I think they already said it?

So the solution is you need to find a way to enable it again.

So either ask your provider to enable it, or if they refuse, move to another provider.

1 like

Please or to participate in this conversation.