groxwitch00's avatar

file_exists(): File name is longer than the maximum. Laravel 10

Hello, Ive development laravel app, in localhost it works properly when i try to upload it into server, it turns out something like :file_exists(): File name is longer than the maximum allowed path length on this platform (4096):

How can i resolve this issue?

file_exists(): File name is longer than the maximum allowed path length on this platform (4096):

My Project : Laravel Version : 10.0

0 likes
5 replies
jigar_dhulla's avatar

Please share the line of the code where you are getting this error. Also, relevant code around that would be helpful.

Snapey's avatar

how can we guess how you created a path so long ?

groxwitch00's avatar

Well step to reproduce : I am using mary UI with daisy ui and livewire 3, and i try to make a component for a button (example) it returns file_exist() but when i run in localhost, it works properly... i dont know where is wrong because when i try to local it runs perfectly

groxwitch00's avatar
groxwitch00
OP
Best Answer
Level 1

@Snapey thank your for your answer, I've solved the issues : it caused by php version that I've installed in server, for the best answer is set none to open_basedir. It works

Please or to participate in this conversation.