Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Fatal error: require_once() Failed opening required /...spyc.php in /...UAParser.php on line 27 #31

Open
carpusmedia opened this issue Aug 10, 2014 · 1 comment

Comments

@carpusmedia
Copy link

Hello,

We are getting the following error when installing and configuring Detector:

Warning: require_once(/.../spyc.php) [function.require-once]: failed to open stream: No such file or directory in /.../UAParser.php on line 27

Fatal error: require_once() [function.require]: Failed opening required '/.../spyc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /.../UAParser.php on line 27

We use PHP v5.4.

Thanks,
Chris

@carpusmedia
Copy link
Author

Replacing all instances of DIR with realpath(dirname(FILE)) in UAParser.php solved the issue.

Thanks,
Chris

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

No branches or pull requests

1 participant