Jump to content

Paul

Blesta Developers
  • Posts

    6,583
  • Joined

  • Last visited

  • Days Won

    817

Posts posted by Paul

  1. 7 minutes ago, BoardBoss said:

    Okay, my apologies for the misunderstanding. What about the ability to create a new invoice based off of the old invoice, or would the replacement invoice have to be created from scratch? So let's say I have 12 line items on the invoice and I need to add one more after the invoice has already been created. When I cancel the original invoice, can I make a copy of the cancelled invoice as a basis for the replacement invoice (with a new invoice number on it)?

    It's something we would certainly consider adding. I'm not sure if there are any feature requests for it yet https://requests.blesta.com but we do something similar with Packages (the "copy" link next to them can be used to clone them and edit, before saving/creating a new package). I don't see why we wouldn't do it for invoices too, we just haven't had many requests for it as far as I remember.

  2. 6 minutes ago, BoardBoss said:

    If anyone can edit a published invoice, then than violates the law in (at least) many European countries. There have been calls to do the same sort of security in the US; however, I heard QuickBooks would be lobbying against any such changes because they would pretty much have to rewrite their code. Back to Blesta, why would anyone need to modify an invoice after it was sent to a client? I have not gotten that far in my testing yet, so I am basing this on my experience with WHMCS. In it you can create a draft invoice and then once it is ready publish it or publish it and send an email that the invoice was created.

    Yeah, what I'm saying is that you can make it so that nobody can edit an invoice. Disable the staff ACL permission for "Edit Invoice" and enable caching (in 5.1), and invoices will not change at all once they are created.

  3. 3 hours ago, BoardBoss said:

    I also see a problem with the creation of a cached copy of an invoice. Let's say you make changes to an invoice that has already been issued to the client, and then send the changed invoice to them. Now they log in and see the unchanged cached copy of the invoice. How would they know which invoice is superior, or the correct invoice? If you think about an invoice, bill, receipt, or statement of any kind, what's to stop me from using a tool to edit or recreate the content of any of these documents and then claiming that the document I edited is the "real" document? How is that any different from using a cached copy scheme? No company would want to have to, nor could they, defend that position in any legal proceeding.

    A cached invoice insures that the contact details for the client, should they be updated in the system, are not also updated in previous invoices. There is a staff ACL permission called "Edit Invoice". Unless a staff member has access to this, they CANNOT modify an invoice. If a staff member does have access to this, and edits an invoice, it will be re-cached at that time.

    So, I don't think this presents a problem. Do not let staff have edit access to invoices, and enable the invoice cache in 5.1 and invoices cannot change.

    Unless I'm missing something else?

  4. 1 minute ago, aosoft said:

    Similar to sunrisepro here, we fell off the horse keeping up with upgrades a ways back and are wanting to get caught up.  Is it generally safe to jump minor versions when upgrading?  For example, as with the suggestion of upgrading from 4.0.0 to 4.4.2, would it be advisable to upgrade from 4.4.2 (or 4.0.0, for that matter) all the way to 4.12.3, or might that be too big a jump?  Also, is it necessary to upgrade to 4.12.3 before upgrading to 5.0?  We're hoping to avoid having to incrementally upgrade to each minor version along the way.  That would take a while.  Thanks in advance.

    Yes, you can do that, however because there are far more database migrations that need to be performed over such a large jump, there is a higher risk of your web server timing out if you perform the upgrade via web (accessing /admin/upgrade and clicking the button). Upgrading via CLI command, would be less likely to encounter an issue.

    If you are running version 3.x, there are steps needed if upgrading to 4.x. See https://docs.blesta.com/display/user/Upgrading+Blesta We would recommend in that case following these steps, and going to 4.0 then from 4.0 to a newer release.

    Always make a backup of your FILES & DATABASE, and be prepared to restore them if anything goes wrong in the upgrade.

    Also, if upgrading to 5.0.4, note that the System Requirements have increased. If your server doesn't meet the minimum requirements, the upgrade will fail.

  5. /logs_blesta/ is an unusual place for the log directory. Since your docroot is /var/www/html/ it would normally reside in /var/www/logs_blesta/

    The warning about the ownership not being the same, is probably a result of your web server running as a different user as your cron user. The cron should, ideally run as the same user. Then, when it writes log files, they will be owned by the same user, and there won't be any potential for conflict. In v5, we write cron logs with a different name, so it's not a serious issue, but the warning remains.

  6. Just now, hostinct said:

    Sorry Paul, What I mean is making the homepage and subpages feel like they are part of the Blesta software and not separate. So when a client visits my site they get the same feeling when they visit the client area.

    Oh, make Blesta match? That requires integrating your website theme into Blesta. Most of the time people just edit 1 file, /app/views/client/bootstrap/structure.pdt which contains the header and footer for Blesta. If you have any custom CSS we recommend creating a new overrides.css file and loading it in structure at the end, and putting your styles there. You can get more help on this via people on our Discord, and there are companies that can do this integration for you for pretty cheap.

  7. 2 hours ago, alphabetty said:

     

    Hi and thanks for getting back to me,  the logs were not writting to the volumes that were binded so the log i posted was just from portainer (docker GUI).   I didn't notice that they were diffent logs.  Im new to, docker and not done any web tinkering for a few years so i was making some silly errors.  Basically it's all running OK/ with some minor issues now, and it seems the licence is not saying invaild either after a reboot, which it was before.    Just one issue that is unrealted to the original (blank page thread) this so I will start a new thread to keep it tidy. 

    In docker the IP often changes, when that happens the license will need to be re-issued. If you can pin the IP in docker, that should prevent license issues. Glad that you found the cause of the blank pages. :)

  8. 26 minutes ago, hostinct said:

    Hi Paul,

    Thank you for that. With regards to the pages I would like to add would you suggest me adding them ad html pages or buidling these into the theme within the Blesta theme files.

    Simon

    I'm not sure what you mean by adding html pages. If you want to create pages that are part of Blesta, then you may be interested in the 3rd party BlestaCMS plugin. Otherwise, I would recommend keeping your website content pages separate from Blesta. You can create navigation links in Blesta if you want to link to external content from your website under Settings > Look and Feel > Navigation.

  9. 1 hour ago, felipe.rivero said:

    I am working with a blesta, and I have noticed that many amounts work with four decimal places, as you can see in the following image:

    image.thumb.png.1a7894a1ce13a8a6e2c3dfd3ca9fc90b.png

     

    Is there a way in which you can change the decimal amounts to two digits. Make it only two digits in each amount?????

    Under Settings > Company > Currencies > Active Currencies. Edit. Change the precision to the desired value, like 2.

  10. 4 hours ago, hostinct said:

    Hey All,

    So migrating over from a well known billing software due to removing the support and updates packages for owned license holders!

    I have gone ahead and installed Blesta in a sub directory under the name client.

    But I've noticed when visiting the client area the url shows as https://www.domain.com/client/client/login/ my question is can I manipulate the URL so it shows as https://www.domain.com/client/login/ removing one of the client from the url is it a matter of installing Blesta in the docroot.

    Any suggestions are really great full.

    Simon

    We would recommend using a different subdirectory name, or switching to a subdomain like my.domain.com, billing.domain.com, or domain.com/billing/ that way the client area would be at my.domain.com/client/ or domain.com/billing/client

    While you can change the client route, and change the name of the client path, it would be a conflict to load it at the root of the installation.

    Also - welcome! :) 

  11. Attached is an updated version of the import manager. Some users experienced some issues with special characters not being imported correctly from WHMCS. If you experienced this issue, try this import manager. Download, unzip, and replace the default files in /plugins/import_manager/, then install or upgrade under Settings > Company > Plugins. Follow the docs to import here: https://docs.blesta.com/display/user/Migrating+to+Blesta

    UPDATE 4/16/21: Now imports Stripe tokens and adds mapping files for the following Gateways: Stripe Payments, Authorize.net, PayPal Payments Standard.

    UPDATE 5/4/21: Fixed issue importing from WHMCS versions older than 8.0.

    import_manager-2021-05-04.zip

    Some have reported that the link above does not work for them. If not, you can download it at http://blesta.us/import_manager-2021-05-04.zip 

  12. On 4/12/2021 at 2:36 PM, felipe.rivero said:

    I am new using blesta I tried to install  Blesta in a Windows 10 OS using xampp as server.  I  read the  documentation and some tutorials but I am no sure if is possible or not.  i tried but I got this error:

     

    image.thumb.png.005fca95d2f310510260a630b0e562ed.png

    My next step was to execute: "composer install"  but it didnt work, gave me this error:


    image.png.ba623d79adc986ea2d207fad48291137.png
     

    This mi apache/phpp version.

     

    image.thumb.png.165b33fc886a959d95ef4da0abf911b3.png

     

    Can be blesta be installe on windows?

    Yes, Blesta can be installed on Windows. You don't need to run composer, it looks like you are missing some files. Download Blesta 5.0.4 from here https://account.blesta.com/client/plugin/download_manager/client_main/download/180/blesta-5.0.4.zip

    Unzip, the contents of the "blesta" directory should go to where you want to install Blesta, and the uploads directory above your docroot.

     

     

  13. On 4/12/2021 at 2:55 PM, zooky said:

    What would be the best way to check null client_id’s?

    general error log - looks like i may have a permission problem on my copied DB?

    
    [2021-04-10T03:05:30.925713+00:00] general.ERROR: PDOException: SQLSTATE[HY000] [1044] Access denied for user 'XXXXX'@'localhost' to database 'whmcs_copy' in /xxxxx/customers/vendors/minphp/db/src/PdoConnection.php:329 Stack trace: #0 /xxxx/customers/vendors/minphp/db/src/PdoConnection.php(329): PDO->__construct('mysql:host=loca...', 'xxxxx', 'xxxXXxx', Array) #1 /xxxxxxx/customers/vendors/minphp/db/src/PdoConnection.php(114): Minphp\Db\PdoConnection->makeConnection('mysql:host=loca...', 'xxxx', 'xxXXxx', Array) #2 /xxxxx/customers/vendors/minphp/db/src/PdoConnection.php(190): Minphp\Db\PdoConnection->connect() #3 /xxxxx/customers/vendors/minphp/record/src/Record.php(834): Minphp\Db\PdoConnection->query('SELECT * FROM `...', Array) #4 /xxxxx/customers/plugins/import_manager/components/migrators/whmcs/8.0/models/whmcs_products.php(20): Minphp\Record\Record->getStatement() #5 /xxxxx/customers/plugins/import_manager/components/migrators/whmcs/8.0/whmcs8_0.php(157): WhmcsProducts->get() #6 /xxx/customers/plugins/import_manager/controllers/admin_manage_plugin.php(94): Whmcs8_0->getConfiguration(Array) #7 /xxxxx/customers/app/controllers/admin_company_plugins.php(141): AdminManagePlugin->import() #8 /xxxxx/customers/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminCompanyPlugins->manage() #9 /xxxxx/customers/index.php(21): Dispatcher::dispatch('/customers/admi...') #10 {main}  

     

    Other logs attached.

    general-notice-2021-04-10.log 63.77 kB · 0 downloads general-warning-2021-04-10.log 18.15 kB · 0 downloads

    It does appear that the user may be lacking some permissions, check that the user has all privileges. The logs you attached don't seem to be related. What version of PHP are you running?

  14. 23 hours ago, alphabetty said:

    Hello I have an old owned licence so Im not sure im still able to post here for help, but here goes anyway.

    i've aslo got a blanck screen issue too.  I have blesta in a docker container,  tried new install of 4.9 and got a blank screen after a rebbot of the server.  all other containers come back up with out issue.  tried a reinsatll of 4.9, and same issue, did another fresh install of blesta 5, seemed to be running great, setup cron rebooted the server all was fine,  updated to 5.04 and all was fine.  then rebooted a few hours later and got the blank screen.   here is the last few hours of the log.  Not sure if it's related to the Apache2 lines, if yes anyone know hoe to fix it?

     

    172.19.0.1 - - [12/Apr/2021:15:42:11 +0000] "GET /components/modules/direct_admin/views/default/images/logo.png HTTP/1.1" 200 7320 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:15:42:11 +0000] "GET /components/modules/logicboxes/views/default/images/logo.png HTTP/1.1" 200 13620 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    138.185.167.1 - - [12/Apr/2021:15:43:19 +0000] "GET / HTTP/1.0" 200 10714 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"

    216.218.206.68 - - [12/Apr/2021:17:05:07 +0000] "GET / HTTP/1.1" 200 10696 "-" "-"

    71.6.232.4 - - [12/Apr/2021:17:37:01 +0000] "GET / HTTP/1.1" 200 2682 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"

    [Mon Apr 12 18:20:51.828001 2021] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully

    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message

    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message

    [Mon Apr 12 18:21:16.238916 2021] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.14 configured -- resuming normal operations

    [Mon Apr 12 18:21:16.243712 2021] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

    172.19.0.1 - - [12/Apr/2021:18:24:36 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:18:24:40 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:18:25:42 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    205.185.122.102 - - [12/Apr/2021:18:56:28 +0000] "GET /config/getuser?index=0 HTTP/1.1" 200 192 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"

    45.83.66.183 - - [12/Apr/2021:19:04:35 +0000] "GET / HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"

    162.158.166.85 - - [12/Apr/2021:19:49:26 +0000] "GET / HTTP/1.1" 200 229 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com"

    45.146.164.76 - - [12/Apr/2021:20:35:53 +0000] "GET / HTTP/1.0" 200 192 "-" "masscan/1.3 (https://github.com/robertdavidgraham/masscan)"

    172.68.206.58 - - [12/Apr/2021:20:54:47 +0000] "GET / HTTP/1.1" 200 229 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com"

    172.19.0.1 - - [12/Apr/2021:21:46:13 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:21:46:14 +0000] "GET /favicon.ico HTTP/1.1" 200 229 "https://clients.685685.xyz/admin/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:21:47:24 +0000] "GET / HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

    172.19.0.1 - - [12/Apr/2021:21:47:25 +0000] "GET /favicon.ico HTTP/1.1" 200 229 "https://clients.685685.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

    172.19.0.1 - - [12/Apr/2021:21:48:00 +0000] "GET / HTTP/1.1" 200 229 "https://nginxpm.685685.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:21:50:51 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:21:53:03 +0000] "GET /admin/ HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"

    172.19.0.1 - - [12/Apr/2021:21:53:10 +0000] "GET / HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

    172.19.0.1 - - [12/Apr/2021:21:55:35 +0000] "GET / HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

    172.19.0.1 - - [12/Apr/2021:22:05:44 +0000] "GET /admin/upgrade HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

    172.19.0.1 - - [12/Apr/2021:22:05:50 +0000] "GET / HTTP/1.1" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"

     

    Did you run /admin/upgrade after replacing the files? A blank page is most often associated with an error, usually a MySQL error when it happens as a result of upgrading. It's safe to run /admin/upgrade again if you already did.

    If you ran /admin/upgrade and still get the white page, check your error logs, typically at ../logs_blesta/ What is written to the logs when you get the white page?

  15. On 4/10/2021 at 3:12 AM, zooky said:

    [1] => importContacts: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'client_id' cannot be null on line 196

    Did you have any errors in ../logs_blesta/ also, from the import?

    The first error usually kicks off the others. In this case, it looks like a contact is trying to be created that may not be associated with a client_id. Do you have any contacts in your WHMCS database that have a null client_id? Not associated with a client? If so, this is likely the reason.

  16. I believe the service becomes "active" in Blesta if the transfer is initiated and the registrar returns a successful response to the API command. This doesn't mean the transfer has been completed, only that it's been initiated. Your cron command would potentially be useful for checking whether the transfer has failed, but I would expect the service status to be "active" during that process.

    Maybe that's not the best way to do it, but I'm pretty sure other modules behave this way currently.

  17. On 4/3/2021 at 1:11 PM, corriganc said:

     

    Follow up - I read on another forum post about manually editing the template in the database. If I do this, the system refuses to sends emails and just presents a white page.

    A white page indicates an error, it's likely that you've saved something in the template that is not acceptable. If you are using styles, they should be inline.

    Regarding the logo not appearing in emails, many mail clients will not load external images by default unless the user select to do so. If that is not the issue, have you checked the source of the email to see if the image is linked correctly?

  18. I'm not sure I understand, what is the full path to your document root, where is Blesta installed, and where as the logs_blesta directory created?

    logs_blesta should always be created one level above document root.

×
×
  • Create New...