Jump to content

Anton Qcl

Members
  • Posts

    70
  • Joined

  • Last visited

  • Days Won

    2

Anton Qcl last won the day on January 6 2022

Anton Qcl had the most liked content!

About Anton Qcl

  • Birthday 09/26/1989

Contact Methods

  • Website URL
    https://concise-studio.com
  • Skype
    qcl.anton

Profile Information

  • Gender
    Male
  • Location
    Montréal

Recent Profile Visitors

5,929 profile views

Anton Qcl's Achievements

  1. Forgot to share the code but I actually did it Note: this code is extremely dirty and should not be used in production. I hope, Smart Search will be really customizable some day ssbp-20210730.zip
  2. Solution: In components/invoice_delivery/invoice_delivery.php around line 745 add a few more lines 'postalmethods_apikey', 'postalmethods_colored', 'postalmethods_return_address1', 'postalmethods_return_address2', 'postalmethods_return_city', 'postalmethods_return_state', 'postalmethods_return_zip', 'postalmethods_return_country', 'postalmethods_replyenvelope', 'postalmethods_doublesided',
  3. Solution: In components/invoice_delivery/invoice_delivery.php around line 745 add a few more lines 'postalmethods_apikey', 'postalmethods_colored', 'postalmethods_return_address1', 'postalmethods_return_address2', 'postalmethods_return_city', 'postalmethods_return_state', 'postalmethods_return_zip', 'postalmethods_return_country', 'postalmethods_replyenvelope', 'postalmethods_doublesided',
  4. Hello. When we try to send invoice through Postal Methods, we receive error "Unauthorized User". We checked API Keys few times and sure that they correct. I created the video: https://monosnap.com/file/NUjscl3xEDJDFRhtKKs3Axq2LPWtPg Please, let me know if I'm doing something wrong.
  5. Hello. We found in logs a lot of errors like this in the file general-warning-cron-2021-07-14.log: [2021-07-14T22:46:17.164596+00:00] general.WARNING: E_WARNING: array_merge(): Expected parameter 1 to be an array, null given {"code":2,"message":"array_merge(): Expected parameter 1 to be an array, null given","file":"/var/www/vhosts/hdzona.tv/public_html/components/delivery/postal_methods/postal_methods.php","line":298} Looks like system expects that address is set but it is not. Can you, please, check it from your side? Since the error pops up in the cron log we are not able to determine which exactly action cause it. Let me know if you need any additional information. Blesta: 5.1.0 PHP: 7.4 OS: centos-release-7-9.2009.1.el7.centos.x86_64
  6. @Paul Thank you very much! I'd suggest little improvement in this case - when user choose to use Postal Method, check that company invoice page size is compatible with Postal Methods
  7. @Paul, hi! Updated version to 5.0.3. Invoices go to the PostalMethods but they are marked as "Invalid" in Postal Methods admin panel. Error: "Invalid Page Size" (http://prntscr.com/106zp92) Can you check it, please? Upd: got information from PostalMethods: Can you, please, create PDF's in LETTER format for them?
  8. @Jono, @Paul, great. Thank you for your work, guys!
  9. @Paul, Works good without that option. @Jono, the error generated by PostalMethods, so there is nothing in blesta logs. However, if you need to, I can temporary modify file postal_methods.php to collect any debug information you can use. Let me know which information you want to get from me
  10. @Paul thank you for fix, but, unfortunately, no changes after applying Still get the error "An internal error occurred during your request!" Our settings: http://prntscr.com/zsgyak OS: centos7 PHP: php7.4 Blesta: 5.0.2 + patch Key Type: Dev Let me know if you need any additional information from me
  11. We tested version 5.0.2 which includes API Adapter for new Postal Methods API but, unfortunately, it does not work. We set dev api key and tried to send invoice using Postal Methods and got next error: {"code":0,"message":"An internal error occurred during your request!","details":null,"validationErrors":null} We also see next information in Postal Methods Dashboard (http://prntscr.com/z5x4oi? Object reference not set to an instance of an object. Please, check it. PS I found minor bug in the components/delivery/postal_methods.php. I fixed it for my instance but it hasn't changed the API response (line 225) $filename = tempnam(sys_get_temp_dir(), 'tmp_') // This will generate file like "/tmp/tmp_XbKJsv" without ".tmp" extension ... // This block is completely useless because filename does not contain ".tmp" $new_filename = str_replace('.tmp', '.pdf', $filename); rename($filename, $new_filename); My Fix: $filename = tempnam(sys_get_temp_dir(), 'tmp_') . '.pdf'; // TODO: remove it // $new_filename = str_replace('.tmp', '.pdf', $filename); // rename($filename, $new_filename);
  12. SOLVED: some of required entries in cron_task_runs were missing. List: process_service_changes for all companies backups_sftp for company 0 backups_amazons3 for company 0 license_validation for company 0 SQL commands. For process_service_changes. Note (use your own company ids): INSERT INTO `blesta`.`cron_task_runs` (`id`, `task_id`, `company_id`, `time`, `interval`, `enabled`, `date_enabled`) VALUES (NULL, '29', '2', NULL, '5', '1', NOW()); INSERT INTO `blesta`.`cron_task_runs` (`id`, `task_id`, `company_id`, `time`, `interval`, `enabled`, `date_enabled`) VALUES (NULL, '29', '3', NULL, '5', '1', NOW()); For other tasks: INSERT INTO `blesta`.`cron_task_runs` (`id`, `task_id`, `company_id`, `time`, `interval`, `enabled`, `date_enabled`) VALUES (NULL, '9', '0', NULL, '5', '1', NOW()); INSERT INTO `blesta`.`cron_task_runs` (`id`, `task_id`, `company_id`, `time`, `interval`, `enabled`, `date_enabled`) VALUES (NULL, '14', '0', NULL, '5', '1', NOW()); INSERT INTO `blesta`.`cron_task_runs` (`id`, `task_id`, `company_id`, `time`, `interval`, `enabled`, `date_enabled`) VALUES (NULL, '17', '0', NULL, '5', '1', NOW());
  13. @Paul "Task last run" for all tasks is 2021-01-27 (day before update) No, there was php5.4
  14. [2021-01-28T07:15:01.624512+00:00] general.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Blesta\Core\Automation\TaskFactory::cronTask() must be an instance of stdClass, bool given, called in /var/www/vhosts/hdzona.tv/public_html/app/controllers/cron.php on line 486" at /var/www/vhosts/hdzona.tv/public_html/core/Automation/TaskFactory.php line 74 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Blesta\\Core\\Automation\\TaskFactory::cronTask() must be an instance of stdClass, bool given, called in /var/www/vhosts/hdzona.tv/public_html/app/controllers/cron.php on line 486 at /var/www/vhosts/hdzona.tv/public_html/core/Automation/TaskFactory.php:74)"} We have only standard plugins but this error appears every cron run since upgrade to 5.0.2 ENV: centos7, php7.4, mariadb10.4
×
×
  • Create New...