Jump to content


Blesta Developers
  • Posts

  • Joined

  • Last visited

  • Days Won


Community Answers

  1. Paul's post in Cron job problem with Direct Admin was marked as the answer   
    Based on this information, you should use:
    /usr/local/php74/bin/php /home/username/domains/domain.com/public_html/subdomain/index.php cron > /dev/null 2>&1 If this doesn't work and you have SSH access you should try running it manually like this and see if it works:
    /usr/local/php74/bin/php /home/username/domains/domain.com/public_html/subdomain/index.php cron This last command should output to your shell any output from the cron. Take note of what is output.
    If it works, run the following command to check what your cron job actually is:
    crontab -l
  2. Paul's post in Paper billing fee was marked as the answer   
    You can submit a feature request. To do this now, a plugin that ties into the Invoices.add event to append a line item with the fee would be the best way to go about it.
  3. Paul's post in Package question was marked as the answer   
    This depends whether you are creating your own module, or using the Universal Module. For the Universal module, we recommend creating any fields that will not cost extra (like username, password, etc) as a service field on the product. See https://docs.blesta.com/display/user/Universal+Module#UniversalModule-ServiceOptions for docs and an example.
    For any fields that should cost extra, those should be created as Configurable Options, under Packages > Configurable Options.
    If you are creating your own module, then you would code in the service fields. The Extension Generator plugin can help you get started with development, and I believe it lets you define these fields https://docs.blesta.com/display/user/Extension+Generator
  4. Paul's post in order form prices in cart does not show unit price or totals was marked as the answer   
    The currency shows KES, but on the order form it's shown as Ksh. Are these the same? Is your Default Currency set to KES under Settings > Currencies > Currency Setup? If these are not the same currency, then there is something wrong with the exchange rate under Settings > Currencies > Active Currencies.
  5. Paul's post in Possible to enable large text area for client custom field? was marked as the answer   
    You can create a Text Area field using the Universal Module, or as a Configurable Option (Packages > Configurable Options). The first service field in the Universal module serves as the label, so as long as you don't add it first the client will only see it during checkout. If you do it as a Configurable Option, then you can grant add or edit permissions, giving add but not edit means they can add the key but not edit it later.. however, they will always be able to see it.
  6. Paul's post in Manually reseting admin login details? was marked as the answer   
    Here's the steps to reset the admin password in order of simplest to most involved:
    To reset the staff password visit /admin/login and click the "Reset My Password" link. Enter your username, and click the "Reset Password" button. You should get an email with a password reset link within a few minutes.
    If you don't get an email, ensure that your username is correct. In phpMyAdmin or other MySQL database utility, look in the users table. Your username should appear in the "username" column, typically where id equals 1, as the primary staff account is the first user to be created.
    If that still doesn't work, you will need to temporarily enable legacy passwords. Please see [encryption](http://docs.blesta.com/display/user/Configuration+Files#ConfigurationFiles-Encryption) in the user manual, specifically Blesta.auth_legacy_passwords and set it to true.
    Then, in the users table for your username, update the password field to: 5f4dcc3b5aa765d61d8327deb882cf99
    Then, try logging in with your username and the password password. Reset your password.
    Then, change Blesta.auth_legacy_passwords back to false.
  7. Paul's post in How to disable attachment upload feature in support ticket. was marked as the answer   
    This may not be complete, I have not tested it, but in v4.11.1 under /plugins/support_manager_views/default/client_tickets_reply.pdt and client_tickets_add.pdt you could comment out the code that is responsible for the upload feature. Backup the files first and be sure to test.
    In client_tickets_reply.pdt comment out (starting at line 57):
    <div class="form-group"> <?php $this->Form->label($this->_('ClientTickets.reply.field_attachments', true), 'attachment[]'); ?> <div class="dz-message"><i class="fa fa-upload"></i> <?php $this->_('ClientTickets.reply.dropzone_drop_files_here');?></div> <div class="fallback"> <div id="file_attachment"> <?php $this->Form->fieldFile('attachment[]', ['class' => 'martop5']); ?> </div> <a href="#" id="add_attachment_field"><i class="fa fa-plus-circle"></i> <?php $this->_('ClientTickets.reply.text_add_attachment');?></a> </div> <div class="dropzone-previews"></div> </div> In client_tickets_add.pdt comment out (starting at line 50):
    <div class="form-group"> <?php $this->Form->label($this->_('ClientTickets.add.field_attachments', true), 'attachment[]'); ?> <div class="dz-message"><i class="fa fa-upload"></i> <?php $this->_('ClientTickets.add.dropzone_drop_files_here');?></div> <div class="fallback"> <div id="file_attachment"> <?php $this->Form->fieldFile('attachment[]', ['class' => 'martop5']); ?> </div> <a id="add_attachment_field" href="#"><i class="fa fa-plus-circle"></i> <?php $this->_('ClientTickets.add.text_add_attachment');?></a> </div> <div class="dropzone-previews"></div> </div> Again, I have not tested this. Backup your files, comment out that code with /* at the start, and */ at the end and test test test. Any issues, revert.
    Note! This is only intended to remove the attachment feature for clients, staff will still have it.
  8. Paul's post in How Do We Change the Avatar within the Tabs of a Web Browser ? was marked as the answer   
    Browsers show the favicon
    /app/views/admin/default/images/favicon.ico for admin area
    /app/views/client/bootstrap/images/favicon.ico for client area
    Just update to your own favicon.ico files to change.
  9. Paul's post in Adding existing directadmin acounts to customers was marked as the answer   
    Yes, the procedure is the same as for cPanel. Just follow the cPanel docs and substitute DirectAdmin wherever cPanel is mentioned: https://docs.blesta.com/display/user/cPanel#cPanel-ImportingcPanelAccounts
  10. Paul's post in Configure::set('Route.admin', 'foo') not working was marked as the answer   
    The navbar is cached, to clear the cache simply re-save your staff group without making any changes to the ACL perms. Settings > System > Staff > Staff Group: Edit & Save.
  11. Paul's post in How do we Change the Gravatar within the Tickets on Client Front-end was marked as the answer   
    plugins/support_manager/views/default/client_tickets_reply.pdt (client area) and 
    plugins/support_manager/views/default/admin_tickets_replies.pdt (admin area) reference gravatar.com, so if you want to replace the gravatar image with something else, open these files and search for gravatar.com and replace those image tags.
  12. Paul's post in Cron not running was marked as the answer   
    You should try the full path to PHP. Normally this is detected in Blesta and shown under Settings > System > Automation. If your server has multiple PHP interpreters, the full path is absolutely required so that you're running the same version of PHP.
    If you have SSH, you can try running: php -v
    To see what version of PHP is in the default path. Then try using the full path to php with -v to see if it's different.
    Also check your Blesta logs ../logs_blesta/ (Defined under Settings > System > General) to see if any errors are written to disk when the cron run is attempted.
  13. Paul's post in 404 At Install? was marked as the answer   
    Blesta URLs rely on mod_rewrite, an Apache module. Nginx requires a special configuration to rewrite URLs to index.php, otherwise you must add /index.php/ in front of your URLs. See https://docs.blesta.com/display/user/Installing+Blesta#InstallingBlesta-Nginx for a sample config and required steps. If Nginx is running as a reverse proxy in front of Apache, then you shouldn't have to do this.
  14. Paul's post in PHP 7.2 Is blesta compatible and how to enable?? was marked as the answer   
    Make sure you are running Blesta 4.4.2, and apply the hotfix-php71 files included in the zip. These files will work with PHP 7.1 and 7.2.
  15. Paul's post in Product Out Of Stock was marked as the answer   
    What version of Blesta are you running? This was changed in 4.1, see https://dev.blesta.com/browse/CORE-2284
    If you are running 4.1+ try testing with the Wizard List order form, I've personally seen the out of stock button appear on this order form. If it's an issue with wizard boxes we can look into it. If you're not running 4.3.2, you should be.
  16. Paul's post in [SOLVED] Unable to view Invoices on PHP7.1 was marked as the answer   
    You might try increasing the memory limit from 32M to say 128M. The message in the logs mentions the temp directory. It's just a notice, so I'm not sure if it's indicative of a problem but you may want to check your temp directory as defined under Settings > System > General: Temp Directory. By default it's the system temp directory (/tmp/) and some servers do not allow access, or there are permissions issues. You could create a new temp directory within your users home directory and update the setting to see if it helps.
  17. Paul's post in How to remove the name from Ticket Support System was marked as the answer   
    /plugins/support_manager/views/default/client_tickets_reply.pdt  is the file you want to edit. Search for the term "gravatar". You'll want to comment out that line to not display any gravatar associated with your email. Then, comment out the line 2 lines below that one that contains $this->Html->concat('  ', $first_name, $last_name);
    That should do it, I think, but you may need to comment out more lines below that, I haven't tested it.
  18. Paul's post in Blesta invalid email. How to fix? was marked as the answer   
    It's not a bug, and not something we intend to change. If the email address provided cannot receive email, they will never receive their order information or any other correspondence. This helps a lot of people who misspell their own domain during checkout.
    However, if you'd like to disable the DNS check, you can do so by editing ~/vendors/minphp/input/src/Input.php. Look for this:
    /** * Checks if the given string is a valid email address * * @param string $str The string to test * @param boolean $check_record True to check DNS/MX record * @retrun boolean True if the email is valid, false otherwise */ public static function isEmail($str, $check_record = true) { $check = array(); // Verify that the address is formatted correctly if (isset($str) && preg_match( "/^[a-z0-9!#$%\*\/?\|^\{\}`~&'\+=_.-][email protected][a-z0-9.-]+\.[a-z0-9]{1,63}$/Di", $str, $check )) { // Verify that the domain is valid if ($check_record) { // Append "." to the host name to prevent DNS server from creating the record $host = substr(strstr($check[0], '@'), 1) . "."; $mxhosts = array(); if (function_exists("getmxrr") && !getmxrr($host, $mxhosts)) { // This will catch DNSs that are not MX if (function_exists("checkdnsrr") && !checkdnsrr($host, "ANY")) { return false; } } } return true; } return false; } And change to
    /** * Checks if the given string is a valid email address * * @param string $str The string to test * @param boolean $check_record True to check DNS/MX record * @retrun boolean True if the email is valid, false otherwise */ public static function isEmail($str, $check_record = true) { $check = array(); // Verify that the address is formatted correctly if (isset($str) && preg_match( "/^[a-z0-9!#$%\*\/?\|^\{\}`~&'\+=_.-][email protected][a-z0-9.-]+\.[a-z0-9]{1,63}$/Di", $str, $check )) { // Verify that the domain is valid /* do not check dns if ($check_record) { // Append "." to the host name to prevent DNS server from creating the record $host = substr(strstr($check[0], '@'), 1) . "."; $mxhosts = array(); if (function_exists("getmxrr") && !getmxrr($host, $mxhosts)) { // This will catch DNSs that are not MX if (function_exists("checkdnsrr") && !checkdnsrr($host, "ANY")) { return false; } } } */ return true; } return false; } It's possible this is different in your version of Blesta, so it's better if you apply the change rather than copy/paste.
  19. Paul's post in What are Email Mobile Templates? was marked as the answer   
    Just to add, if for no other reason than to take a few more wacks at this dead horse:
    My mobile email is set to my phone number @ my cell provider. Many cell providers provide an email to SMS gateway. Email the address, get a text message. In this way, the mobile emails go to my phone as a text message. Great for emergency support and orders.
  20. Paul's post in Find client contacts to delete in db was marked as the answer   
    Look in the "contacts" table where client_id matches the client ID as displayed in the URL. contact_type should NOT be "primary", or you'll end up deleting your client and not the contact.
  21. Paul's post in Invoice Logo Missing was marked as the answer   
    I miss-typed, I meant PNG without transparency. If you send me your logo in JPG, I can try saving in Photoshop as PNG for you to see if it works.
  22. Paul's post in Recurring item without a package was marked as the answer   
    You can create a recurring invoice. To do that, create a manual invoice and look for the recurring options. The invoice will be used like a stamp for stamping out invoices going forward. Clients > Select a Client, click the [+] icon in the invoices widget or under the Actions section on the left.
    If you did go with a package and you are setting these up for clients yourself, you can set a price override and use the same package. If a price override, create the service using the package (uncheck invoice option), then edit the service and set a price override. You may need to bill the initial month manually (or let Blesta invoice and modify the invoice right away).
  23. Paul's post in Installation Error: BLESTA_VERSION Undefined was marked as the answer   
    Do you have special characters in your MySQL password? You may need to escape them in the /config/blesta.php config file with back slashes \ or use a password that does not have special characters.  You should be able to correct the issue by updating your config file, and then you can complete the setup.
  24. Paul's post in Service Pending was marked as the answer   
    Module log is under Tools > Logs > Module tab in Blesta. Click the row to expand and show the input/output logs.
    Have you made any customizations to the cPanel module, or are you running a 3rd party cPanel module?
    It sounds like some data is missing, and that the domain may already exist on your cPanel server. I would suggest noting the domain and username, and delete the pending service, and add it back with "use module" unchecked (since it exists in cPanel already). Under Account Actions > Add Service. Deleting the existing, and creating a new service may resolve whatever data is missing in that record.
  25. Paul's post in Licensing Addon Question was marked as the answer   
    All licensing can be circumvented. Replacing keys with your own keys is not simple, most people do not have the expertise to do that and to spoof a license server. And, none of that can be done without decoding the files first. Files must be decoded for that. (in the case of Blesta, the 3 license files) Reverse engineering the code for ANY software product allows for nulling the software. It's much easier to null it than to spoof a license server, so nobody is going to do that unless for research.
    If you find a way to prevent piracy 100%, let me know privately and let's become billionaires together.
    We have circumvented 2 of our competitors (one ryhmes with wimps and the other thinks they are an executive) without decoding. None of the techniques required to circumvent their licensing work on Blesta.. and once the code is reversed engineered, it's trivial to null - any software.
  • Create New...