Jump to content
  • 0

White Screen On Invoice Generation


jwogrady

Question

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 by jwogrady
added debug output.
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...