Quote:
I did not try anything to fix.
Well why not? You would have saved yourself both time and effort ...
Start by reading the error message, it's pretty explicit:
failed to open stream: No such file or directory
It means that you have passed a file path to a function that tries to open a DB and it cannot find a file with that name on the specified path.
We can't fix that for you: we have no idea what the path is, and no access to your file system.
So start by finding out what the file path is (the debugger will help you here, or add logging statements to find out), and the look at the file system that is executing your code to find out what is wrong with the path.
We can't do any of that for you!