Jump to content

Blesta Addons

Alpha Developers
  • Posts

    4,868
  • Joined

  • Last visited

  • Days Won

    389

Posts posted by Blesta Addons

  1. some of our clients asked us to change the mass mailer plugin to limit the emails sent on the cron, as the actual one some times block the smtp or the hosting account if the list is a big one. so we have decided to look in the code and i have found a simple way to do the jobs, and since is simple we have decided to share it with the community .

    open the file plugins/mass_mailer/Cron/Email.php and change this lines (begin from line 55)

                while (($task = $this->MassMailerTasks->getByJob($job->id))) {
                    // Send the email
                    $this->MassMailerEmails->send($task, $email);
    
                    // Delete the task
                    $this->MassMailerTasks->delete($task->id);
                }
    
                $this->completeJob($job->id);

    by this one

                $counter = 0;
                $limit = 15;
                while (($task = $this->MassMailerTasks->getByJob($job->id))) {
                    if ($counter > $limit) {
                        break;
                    }
                    // Send the email
                    $this->MassMailerEmails->send($task, $email);
    
                    // Delete the task
                    $this->MassMailerTasks->delete($task->id);
                    $counter += 1;
                }
    
                if (!$task) {
                    $this->completeJob($job->id);
                }

    you can set you limit by editing the var $limit, in our example every cron (5min) it well send only 15 emails.

    i hope if Blesta staff can look into this simple task and add a limit to the mailer plugin  via the plugin setting.

  2. From this mouth (March) all invoices generated for renewal has a date due with the same day of date billed . we have not added any plugin or touched any file from weeks now . also blesta version is the same from a long time ago (we are in 4.5.2) , our case is the fallowing .

    Invoice Days Before Renewal (10 Days) .

    ll invoices generated in 2-3-2020 has the billed date 2-3-2020 and due date is 2-3-2020 (normally it should be 12-3-2020).

    we have this option for so many years and is working as it should be .

    the issue has begin from first march (1-3-2020) . there are no errors log files .

    any thing we should look into ?

     

     

     

  3. On 2/21/2020 at 7:21 PM, Tyson said:

    That's a bit of a strange one since the line referenced is 0.

    any ioncube coded file return a line 0 in any error.

    On 2/21/2020 at 7:21 PM, Tyson said:

    My guess is that you may have a cron task running via CLI that tries to read from the Session without initializing the Session first (i.e. assuming it is already loaded). Do you have any custom cron tasks in your system? Perhaps some created by plugins/modules? One of those may be the cause.

    we have reinstalled the test server, now is a fresh install without any custom plugin/module . the plugins installed is core plugin (support/order/Mass Mailer).

  4. in a test server with 4.8.1 i see alot of this notices in logs

    E_NOTICE: Undefined property: Cron::$Session {"code":8,"message":"Undefined property: Cron::$Session","file":"/home/xxxxx/public_html/app/app_controller.php","line":0}

    Uncaught Exception Error: "Call to a member function read() on null" at /home/xxxx/public_html/app/app_controller.php line 0 {"exception":"[object] (Error(code: 0): Call to a member function read() on null at /home/xxxxx/public_html/app/app_controller.php:0)"}

     

    php used 7.2

  5. we are in 4.8 beta, and we are from v3 waiting something for a real hosting market .

    blesta has added a subdomain feature for cPanel module, from professional view is unused features with that way, companies that sell subdomain with a defined domains can be hosted in cpanel or plesk or vesta or any platform that support subdomains in account creation (almost all panels support this), this feature should be a part of order plugin and not a with cpanel or plesk module, because the client in the first step should select the domain then select the hosting (please make a view in other apps that they have already this done),  and of course the check availability should be working for subdomain, i think a simple way is to check if exist record A for the subdomain with a simple php function dns_get_record() .

    unify functions in registrar modules, like (get name server, set name server, update whois, get whois, get epp, set lock, get lock status,  ....ect ) 

    pricing system for domain, now a lock for transfer/restore  prices .

    bundles package, is a trivial features that all hosting companies need it to make offers/promotions .

    in the end i can say another time Blesta is a good software for almost any thing unless hosting industry .

  6. 22 hours ago, Tyson said:

    currently be saved in an abbreviated form and mapped by the module to whatever appropriate field name they require for any API requests.

    Extra work for us, mapping and mapping for any service fields that is more than 32 chars. working with the real vars save us a lot of work (loops, searching index ... )

    anyway, i'm not expecting anything, there are a very important things that was not implemented for years now, so this small things is not changing anything for us. it was for archiving/remeber purpose only.

  7. the service field length 32 is a small value for a general and all purpose usage . i have already talked in this subject ina old thread that i have not success to get the post. in some module the service fields need more than 32 chars.

    i will insist again to make it at least 64 chars, and don't know why it was limited to 32 chars only!!! how we can save service fields like this 'dotfrcontactentitybirthplacecountrycode' !!!!  we should contact the register to tell him sorry blesta is not supporting more than 32 chars so please change to a less chars !!! and of course if this is working with whmXX, their answer will be a pretty small as change the software to another is already working with our system!!!!

  8. to be sample, i want to allow only admins to upgrade/downgrade packages in ONLY some groups, and do not offer this to clients . for other groups clients can do that from thier client area .

    the option in the company is applied for all packages if package group has the option allow upgrade/downgrade enabled. if we disable the option in company settings is disabled all the packages in client area . the option should be something like i_n the package group :

    [X] Allow Upgrades/Downgrades between Packages within this Group.
         [X] Admin   [X] Clients

     

     

     

  9. the package groups has the option to Allow Upgrades/Downgrades between Packages within this Group . we want to see a option to allow this only in admin section, and let it disabled for client side .

    some products need some manual intervention (docs signed ...ect)  to be only changed by admin/staff upon a client request. and we don't want to allow client to change it from their account. it would be nice to add a option to restrict this option to admin side only .

  10. sometimes we get a wrong total in the invoice edition or addition, after some investigaion we found the fallowing issue.

    we have the currency format $1 234,56 with precision 2.

    let create a new invoice, with two lines :

    Description     - Qty    -  Unit Cost
    test line 1           1             1
    test line 1           1             2,33

    this return a total of 5,00$ USD.

    after enabling the error reporting we found the fallowing error

     A non well formed numeric value encountered on line 95 in /home/xxxxxxxxxxx/public_html/vendors/blesta/pricing/src/Type/UnitPrice.php 

    the issue come from (2,33) when we put (2.33) we get the exact total $5,66 USD

  11. 18 hours ago, Paul said:

    Is that what you are looking for?

    yes.

    18 hours ago, Paul said:

    but what happens if your invoice number exceed the padding length? For example you have 99999999 what's the  next number? Does it expand to 9 characters?

    the answer :

    17 hours ago, Tyson said:

    It would have to expand to the next digit.

     

  12. Blesta support the tag {num} in invoice, it would be nice to add a numbering format like (0001) or (001) .

    for example if i set the fallowing {year}{num}, the output will be like this (20191, 20192,...... 2019251 .....ect ), we need to add some zeros leading to get a nice numbering like (20190001, 20190002,...... 20190251 .....ect ) . hope we can be gin the new year invoice numbering with this feature. i simple str_pad() or sprintf() functions can do the trick .

     

     

     

     

×
×
  • Create New...