Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to open dir #3

Open
ghost opened this issue Oct 4, 2022 · 0 comments
Open

failed to open dir #3

ghost opened this issue Oct 4, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2022

Hi Lars,

Thanks for your nice project. I was trying to set it up on PHP docker and it looks fine I was just getting the noAccessMessage fine, but when I unlocked it I got the following:

`


Warning: scandir(content): failed to open dir: No such file or directory in /var/www/html/app/functions.php on line 69



Warning: scandir(): (errno 2): No such file or directory in /var/www/html/app/functions.php on line 69



Warning: Invalid argument supplied for foreach() in /var/www/html/app/functions.php on line 70



Notice: Undefined offset: 1 in /var/www/html/index.php on line 86



Notice: Trying to get property 'path' of non-object in /var/www/html/index.php on line 88



Notice: Trying to get property 'fileName' of non-object in /var/www/html/index.php on line 88



Fatal error: Uncaught TypeError: Argument 1 passed to
str_contains() must be of the type string, null given, called in
/var/www/html/app/functions.php on line 45 and defined in
/var/www/html/app/functions.php:8
Stack trace:
#0 /var/www/html/app/functions.php(45): str_contains(NULL, '.html')
#1 /var/www/html/index.php(88): N2webFolderItem->__construct(NULL,
NULL, 1, true)
#2 {main}
thrown in /var/www/html/app/functions.php on line 8

`

My content folder is inside the app folder. I have tried also to place it on the root but then I get the following:

`


Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /var/www/html/app/functions.php:71
Stack trace:
#0 /var/www/html/index.php(68): N2webFolderItem->__construct('content', 'content', 0)
#1 {main}
thrown in /var/www/html/app/functions.php on line 71

`

I hope this belongs here, it is my first time reporting an issue. Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants