Jump to content

barryf

Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    1

barryf last won the day on December 20 2023

barryf had the most liked content!

Recent Profile Visitors

1,916 profile views
  1. Thanks Paul, that looks exactly what we need.
  2. Thanks Paul. Should this also apply when a plugin generates and invoice prior to the "normal" Blesta invoice run? We generate invoices from voice CDR before the scheduled normal Blesta invoice creation cron. We would like for the other service items to get added to the open invoice rather than creating new one. Thanks. -Barry
  3. @Paul - Where might this setting be, to disable this behaviour?
  4. OK, I find that it does work with errorReporting and System.debug turned off.
  5. Hi, Using latest Blesta, and Stripe payment gateway. Using php 8.2.18, but without Hotfixes, as nothing works if I add them. If I try to either pay as a client via credit card, or I try to add a credit card payment account to a client, I receive the following error. Having debugged app/models/accounts.php lines 1325 and 1400 to just echo $value and $card_number and exit, neither of these vars are populated, so not sure where this is failing. Any ideas? Something went wrong. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php UnknownException::setErrorHandler Line 232 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php Monolog\ErrorHandler->handleError Line preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php Printing Stack Trace: #0 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(232): UnknownException::setErrorHandler() #1 [internal function]: Monolog\ErrorHandler->handleError() #2 /var/www/blesta/app/models/accounts.php(1325): preg_replace() #3 /var/www/blesta/app/models/accounts.php(1400): Accounts->formatNumber() #4 /var/www/blesta/components/gateway_payments/gateway_payments.php(1682): Accounts->creditCardType() #5 /var/www/blesta/app/models/accounts.php(673): GatewayPayments->storeAccount() #6 /var/www/blesta/app/controllers/admin_clients.php(3408): Accounts->addCc() #7 /var/www/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminClients->addCcAccount() #8 /var/www/blesta/index.php(21): Dispatcher::dispatch() #9 {main}
  6. We managed to fix it with a little js-foo in our module.
  7. Hi Paul So is there any way to change it back to defaulting to Active? Thanks
  8. Hi Paul, 1. No, the emails do not appear in the Email log. However the invoice is marked as "Sent" and appears in the Invoice Delivery log as sent. 2. I use SMTP, however, I switched to sendmail and ran the test again and same result - not sent, not in email log and my sendmai logs show no attempt to send any email. In all cases, if I select the invoice within the Client screen and click to send, the email gets sent successfully. Thanks
  9. Any ideas on this? Getting to be a pain! Thanks
  10. Hi, We want to be able to include a Blesta license as an add-on to another package. I can't see how to do this. Is it possible? Thanks
  11. Hi Using version 5.3.2 we ran into an issue when trying to upload Documents via the API. The error returned was: [2022-04-26T20:20:34.080621+00:00] general.ERROR: Uncaught Exception ArgumentCountError: "Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected" at /var/www/blesta/plugins/client_documents/models/client_documents_files.php line 33 {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected at /var/www/blesta/plugins/client_documents/models/client_documents_files.php:33)"} The fix was to add the following two lines in app/controllers/api.php $ diff app/controllers/api.php /var/www/blesta/app/controllers/api.php 150a151,153 > if( $this->files ) > $params['files'] = $this->files; >
  12. Sorry, just realized this is the 5.4 beta forum.
  13. Hi, Using version 5.3.2 we ran into an issue when trying to upload Documents via the API. The error returned was: [2022-04-26T20:20:34.080621+00:00] general.ERROR: Uncaught Exception ArgumentCountError: "Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected" at /var/www/blesta/plugins/client_documents/models/client_documents_files.php line 33 {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function ClientDocumentsFiles::add(), 0 passed in /var/www/blesta/app/controllers/api.php on line 154 and exactly 2 expected at /var/www/blesta/plugins/client_documents/models/client_documents_files.php:33)"} The fix was to add the following two lines in app/controllers/api.php $ diff app/controllers/api.php /var/www/blesta/app/controllers/api.php 150a151,153 > if( $this->files ) > $params['files'] = $this->files; >
  14. Hi Paul, Thanks for the response. I am running Blesta 5.3.2 on Debian 11, PHP 7.4. If I run cron manually all is fine. The invoice delivery is in the Email log, and email is received. If I run cron manually from the command line, it reports "Successfully delivered 1 invoice to client #1500 via Email." and the entry is present in the Logs -> Invoice Delivery but not in the Email log and no email is sent. In all cases, the invoices are marked as Sent, and the Invoice Delivery "Email" is unchecked. I have double-checked that both the CLI and the Apache module are configured the same - identical php.ini and the same modules loaded. There are no errors in the logs, nor when manually running the cron task.
  15. I am having the same issue. Nothing in the logs, in the Client area it shows the invoice as Sent, but they are not. Manually sending it works as expected.
×
×
  • Create New...