Notion2Web
Notion2Web copied to clipboard
failed to open dir
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