"File Does Not Exists" Error

I keep getting this error, saying the file doesn’t exist.
The file does exist, but the path in this notification box is wrong.

However, I cannot find where this path is listed in any other file, only in this error.

And, everything seems to work fine despite the error.

image

Where do you see this notification? When exactly?

The error occurs whenever I save a file called _mainhome.php.

_mainhome.php is a page used as a route FROM Home.php.
They are both in the same directory (/layouts/mainpages/), though they used to be in different directories.

MORE INFO:

  1. The only place Home.php is referenced inside _mainhome.php is here:
    <!-- Wappler include head-page="layouts/mainpages/Home.php" appConnect="local" is="dmx-app"...

  2. Routes.json has the correct path for Home.php

  3. .htaccess has the correct path for Home.php as well.

So you moved one of these pages and didn't change the path in the comment? This is surely causing the issue as the file cannot be found in the wrong path.
You can't just move files around different folders without fixing the paths.

Interesting, I changed that line now in the file and the error went away - - it was working fine (online) without that line being changed.

I thought perhaps those lines were supposed to be relative to the root, not relative to the file.

Why would it throw the error but work fine on the site? (Just curious at this point)

These lines are required for Wappler and it’s not related to functionality in the browser.

1 Like