Skip to content

Conversation

@BearWoolley
Copy link

Blank line and spaces at the end of the file caused errors to be thrown such as: Warning: require(SteamConfig.php): failed to open stream: No such file or directory in ...

Removing the line at the end of the file fixes this.

Blank line and spaces at the end of the file caused errors to be thrown such as: Warning: require(SteamConfig.php): failed to open stream: No such file or directory in ...

Removing the 2 lines at the end fixes it.
@BlackCetha
Copy link
Contributor

A newline at the end of a PHP script will not throw errors about missing files.

@BearWoolley
Copy link
Author

It's a new line with 4 blank spaces, which in some cases causes PHP errors.

I've only had a few issues with it, but it's something that keeps getting reported to me and to fix it I have to get them to remove those 4 blank lines and the error disappears.

@RedSparr0w
Copy link
Contributor

RedSparr0w commented Sep 20, 2018

It's strange that this would be causing those errors for you, but either way +1 on the PR.

Although wouldn't you be better off removing the entire closing php tag

-?>
-    

@BlackCetha
Copy link
Contributor

Can you provide a way to reproduce your problems?

$steamprofile['uptodate'] = $_SESSION['steam_uptodate'];

// Version 4.0
?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
?>

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

Successfully merging this pull request may close these issues.

3 participants