Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4565 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 times
Contact:
Unread post
by kev1n » Fri Nov 22, 2019 2:43 pm
You can also find some useful answers about this topic here:
https://stackoverflow.com/questions/693 ... does-exist
Especially this one:
It's because of safe mode. You can turn it off or include the directory in safe_mode_include_dir. Or change file ownership / permissions for those files.
php.net: file_exists()
php.net: safe mode
ernesttan1976
Posts: 51 Joined: Sat May 16, 2020 10:08 am
Unread post
by ernesttan1976 » Sat May 16, 2020 10:15 am
johan wrote: Kev1n
[0] : File does not exist /var/www/html/libs/upload/documents/1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
Johan
1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
The file name has no underscores that's why it failed to delete.
kev1n
nuBuilder Team
Posts: 4565 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 times
Contact:
Unread post
by kev1n » Sat May 16, 2020 10:29 am
Does the file need underscores here (in red)?
1574424664_5dd7d05856d12_5da701edb0fb627_tekst_ wonen_ beleidsplan.pdf
ernesttan1976
Posts: 51 Joined: Sat May 16, 2020 10:08 am
Unread post
by ernesttan1976 » Sat May 16, 2020 10:33 am
ernesttan1976 wrote: johan wrote: Kev1n
[0] : File does not exist /var/www/html/libs/upload/documents/1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
Johan
1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
The file name has no underscores that's why it failed to delete.
Hmmm seems like I'm wrong, its not the underscore but the permissions...(644)
Edit: I found my error, nubuilder4 is missing in the path. Thanks!