Skip to content
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

Unnameable error #2193

Closed
Golling opened this issue Nov 3, 2014 · 7 comments
Closed

Unnameable error #2193

Golling opened this issue Nov 3, 2014 · 7 comments

Comments

@Golling
Copy link

Golling commented Nov 3, 2014

Hello,

If the url route parameter looks like the following template, an error occurred.

/index.php?route=xxx/con

I absolutely don't know where this error come from.

@Steinweber
Copy link

What's the error?
When I enter this, I just get "page not found"

@Golling
Copy link
Author

Golling commented Nov 3, 2014

Warning: include_once(C:\Program Files\Wamp\www\opencart\catalog\controller\information\con): failed to open stream: Bad file descriptor in C:\Program Files\Wamp\www\opencart\system\engine\action.php on line 58

Warning: include_once(): Failed opening 'C:\Program Files\Wamp\www\opencart/catalog/controller/information/con.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files\Wamp\www\opencart\system\engine\action.php on line 58

Only with 'con'.

'co' and 'cont' work.

@Steinweber
Copy link

A file is checked twice before it is loaded in the action class.
Line:27

if (is_file($file)) {
$this->file = $file;

and
Line:57

if (is_file($this->file)) {
include_once($this->file);

So check your action class for changes. I see no way how it can come to your error message.
And post the full url please.

@Golling
Copy link
Author

Golling commented Nov 3, 2014

My action class is the original.

I change nothing and I don't understand too why I've this error only with these url.

@ADDCreative
Copy link
Contributor

It's a problem with the PHP function file_exists on windows. con is a reserved name for console in Windows. See http://support.microsoft.com/kb/74496/en-us. The extension and path is ignored for con, so con.php is the same as con. That's why file_exists( 'C:\Program Files\Wamp\www\opencart/catalog/controller/information/con.php') will return true.

@CoverUp
Copy link
Contributor

CoverUp commented Nov 3, 2014

OMG windows and their stuffs, well done ADD

@Golling
Copy link
Author

Golling commented Nov 3, 2014

What a combination of circumstances !

I erase some characters on the contact page... So bad !

I close.

@Golling Golling closed this as completed Nov 3, 2014
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

4 participants