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

ergezcaner's avatar

NovaCoreServiceProvider.php failed to open stream: No such file or directory error

I've uploaded my site to hosting today. I did my redirect with a simple htaccess file. I can add resources, but I can't view pictures.

.htaccess file

RewriteEngine on

# serve existing files in the /public folder as if they were in /
RewriteCond %{DOCUMENT_ROOT}public%{REQUEST_URI} -f
RewriteRule (.+) /public/ [L]

# route everything else to /public/index.php
RewriteRule ^ /public/index.php [L]

i want see uploaded image (for example : http://smartsoccer.xyz/storage/thumbnails/Xx1dzLBeSz4loYAQHdrCyljdrYjr5Kl8dJ4Q5SiY.png)

I get this error when I want to run it on xampp.

include(C:\xampp\htdocs\vendor\composer/../laravel/nova/src/NovaCoreServiceProvider.php): failed to open stream: No such file or directory
0 likes
3 replies
hendra1's avatar

It is better for you to remove the composer.lock and delete vendor folder in root project It helps solve my problem

cheers

3 likes
MarinaApps's avatar

Hello, sorry. I'm still stuck with this problem. I think it's not a problem of paths but I do not know what else to try. Any ideas?

Fixed. Removed vendor folder and composer update solved the problem. thanks Hendra1

Daniel-Pablo's avatar

I just discovered that in the vendor file the call was a SHORTCUT so I might thing my machine don't have permission to enter into the shortcuts... the thing is that I copy the content of the shortcut and create a normal folder and paste the info in the VENDOR laravel nova folder ... that makes all running with this NOVA - check if its a SHORTCUT folder that its making the error...

On my case Its with laravel sail , the docker just dont find the shourtcut info of nova... so I make my way

1 like

Please or to participate in this conversation.