Skip to content

Commit

Permalink
Merge branch 'hotfix-0.3.1.18'
Browse files Browse the repository at this point in the history
  • Loading branch information
Netrilix committed Jul 15, 2016
2 parents 1a83af6 + 7ed597b commit 44f7845
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v0.3.1.18

- Add check for logging being enabled but log file not existing yet

## v0.3.1.17

- Fix occasional bug when end-of-file is reached on log file before requested number of lines is reached
Expand Down
2 changes: 1 addition & 1 deletion userfrosting/initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
'guest_theme' => 'default',
'minify_css' => '0',
'minify_js' => '0',
'version' => '0.3.1.17',
'version' => '0.3.1.18',
'author' => 'Alex Weissman',
'show_terms_on_register' => '1',
'site_location' => 'The State of Indiana'
Expand Down
3 changes: 3 additions & 0 deletions userfrosting/models/database/SiteSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ static public function getLog($targetLines = null, $seekLen = 4096){
if (!ini_get("log_errors")){
$path = ini_get('error_log');
$messages = ["Error logging appears to be disabled. Please check your php.ini file."];
} else if (!file_exists(ini_get('error_log'))){
$path = ini_get('error_log');
$messages = ["Log file not found. If you haven't generated any errors, this is fine. If you were expecting to see errors here, please check your php.ini file."];
} else {
$path = ini_get('error_log');
@$file = file($path);
Expand Down

0 comments on commit 44f7845

Please sign in to comment.