jwogrady Posted November 20, 2017 Report Share Posted November 20, 2017 (edited) Since upgrade to 4.1.2 get a white screen when I generate an invoice or reoccurring invoice. mydomain.com/admin/clients/createinvoice/75/ Thoughts? Will turn on debug and see what I can figure out. Looks like a permission issue with the logger.... The stream or file "/var/www/logs_blesta/general-info-2017-11-20.log" could not be opened: failed to open stream: Permission denied on line 107 in /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/StreamHandler.php Printing Stack Trace: #0 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(107): Monolog\Handler\StreamHandler->write(Array) #1 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array) #2 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(546): Monolog\Logger->addRecord(200, 'Created Invoice', Array) #4 /path/to/blesta/app/models/invoices.php(154): Monolog\Logger->info('Created Invoice', Array) #5 /path/to/blesta/app/controllers/admin_clients.php(3852): Invoices->add(Array) #6 /path/to/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(143): AdminClients->createInvoice() #7 /path/to/blesta/index.php(21): Dispatcher::dispatch('/admin/clients/...') #8 {main} Edited November 20, 2017 by jwogrady added debug output. Quote Link to comment Share on other sites More sharing options...
0 jwogrady Posted November 20, 2017 Author Report Share Posted November 20, 2017 Well, the log directory ' /var/www/logs_blesta/ had permissions, but the files in the directory where owned by root... Really strange a logfile permission issue prevented me from creating invoices.... Why are new log files are defaulting to root ownership? Quote Link to comment Share on other sites More sharing options...
0 Paul Posted November 20, 2017 Report Share Posted November 20, 2017 45 minutes ago, jwogrady said: Well, the log directory ' /var/www/logs_blesta/ had permissions, but the files in the directory where owned by root... Really strange a logfile permission issue prevented me from creating invoices.... Why are new log files are defaulting to root ownership? They are owned by root because Blesta is being executed by root.. is your cron set up to run as root? If so, the user should be changed. activa 1 Quote Link to comment Share on other sites More sharing options...
Question
jwogrady
Since upgrade to 4.1.2 get a white screen when I generate an invoice or reoccurring invoice.
mydomain.com/admin/clients/createinvoice/75/
Thoughts? Will turn on debug and see what I can figure out.
Looks like a permission issue with the logger....
The stream or file "/var/www/logs_blesta/general-info-2017-11-20.log" could not be opened: failed to open stream: Permission denied on line 107 in /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/StreamHandler.php Printing Stack Trace: #0 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(107): Monolog\Handler\StreamHandler->write(Array) #1 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array) #2 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /path/to/blesta/vendors/monolog/monolog/src/Monolog/Logger.php(546): Monolog\Logger->addRecord(200, 'Created Invoice', Array) #4 /path/to/blesta/app/models/invoices.php(154): Monolog\Logger->info('Created Invoice', Array) #5 /path/to/blesta/app/controllers/admin_clients.php(3852): Invoices->add(Array) #6 /path/to/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(143): AdminClients->createInvoice() #7 /path/to/blesta/index.php(21): Dispatcher::dispatch('/admin/clients/...') #8 {main}
added debug output.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.