8000 stream_resolve_include_path error on xampp windows installation · Issue #247 · vlucas/valitron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stream_resolve_include_path error on xampp windows installation #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
omarllorens opened this issue Apr 16, 2018 · 2 comments
Closed

stream_resolve_include_path error on xampp windows installation #247

omarllorens opened this issue Apr 16, 2018 · 2 comments

Comments

@omarllorens
Copy link

Hi. We are using this library on our project, https://github.com/tsolucio/corebos , and never we had any problem with the stream_resolve_include_path function, I suppose, because normally we have all our installations in Linux servers.

But a few days a new customer had this problem on xampp windows installation.

Fatal error: Uncaught InvalidArgumentException: Fail to load language file 'include/validation/lang/es.php' in C:\xampp\htdocs\master\include\validation\Validator.php:107

So, we replace temporally this function to file_exist on 107 line and now works.

Have you had this problem before and you know how to solve it?
I would prefer not to modify the library so as not to have problems when updating.

Thanks!

omarllorens added a commit to tsolucio/corebos that referenced this issue Apr 16, 2018
…allation. We have opened a new issue for this library here: vlucas/valitron#247
@willemwollebrants
Copy link
Collaborator

I can't say I have had this problem before (also linux mostly). Google reveals that stream_resolve_include_path on windows has some caching issues and that a restart might be needed but I can imagine you've tried that already.

Digging through your code, I see this

parent::__construct($data, $fields, substr($current_language, 0, 2), 'include/validation/lang');

Can you try that without the $langDir parameter? Like so:

parent::__construct($data, $fields, substr($current_language, 0, 2));

@omarllorens
Copy link
Author

Thank you for check our code.
I will send this patch to my client and when I have an answer, I will notify you.

Thanks again.

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

No branches or pull requests

3 participants
0