Given these points, you might want to review how paths are being handled in your formatPath function and throughout your application. Also, ensure that your server environment is correctly set up and that the application has the necessary permissions.