Leaderboard
Popular Content
Showing content with the highest reputation on 02/05/2015 in all areas
-
Send Notify Email About General Blesta's Cron Task Locked Or Stalled
Blesta Addons and 4 others reacted to serge for a topic
Attached to this post, a poor man's cron script to check "health" of Blesta cron Basically it's check in Blesta log being in Blesta database & table log_cron what is the max of end_date when `run_id` ='0' run_id` ='0 in table log_cron is matching to such Blesta cron output: "Attempting to run all tasks for ? XXX-COMPANY ? XXX-COMPANY.. All tasks have been completed." so this cron script definite an acceptable last cron end_date ($Accepted_last_end_date) from time now, it's (timeNow -30mins) but you can change it as explained in bellow instruction, so if Blesta end_date in table log_cron was older(inferior) than this $Accepted_last_end_date, you will receive an email (by smtp), and no more email will be sent until Blesta cron back to normal (this to prevent you to received a lot of warning email in your email box....) ------------------- Require Pear & Pear Mail -( ever installed by default on most servers). in console, check if pear is there, type: pear version install on debian: --------------------- apt-get install php-pearl pear install mail pear install Net_SMTP pear install Auth_SASL pear install mail_mime ---------------- optional, require php cli (php5-cli) , for testing & see echo messages. --------------- Decompress zip archive and place "check_blesta_cron" dir at one level above of your public_html dir , example, if you have path: /home/YOUR-USER/public_html place "check_blesta_cron" dir here: /home/YOUR-USER/ -------------- Be aware that putting "check_blesta_cron" dir inside "public_html" is NOT SECURE. If you want to do it, for doing WEB CRON, create a directory protected by password. -------------- 1/ "open_custom_blesta_db_connection.php" file & at top from line 5 to 8: fill your Blesta database connection details 2/ "CRON_check_blesta_cron.php" : - make time zone definited at line 7 be same as time zone chosen in Blesta admin area & menu: /settings/company/general/localization/ - check/fill from line 103 to 115 , with your email address & smtp parameters - for TESTING if the sending of email work, read test instruction at line 64 3/ run "CRON_check_blesta_cron.php" : 3a/ - if you have console (command line access) use php CLI in console, to run test, type: cd /PATH-TO/check_blesta_cron/ php CRON_check_blesta_cron.php 4/ For create a recurrent run (cronjob) 4a/ - use crontab & in console, type (if your user is not root just change root to your-user): crontab -u root -e Next ad this line in crontab: */15 * * * * php /PATH-TO/check_blesta_cron/CRON_check_blesta_cron.php OR 4b/ create the cron job using your server control panel menu N.B.: Depending of your OS, use: */15 * * * * php /PATH-TO/CRON_check_blesta_cron.php OR */15 * * * * /usr/bin/php /PATH-TO/CRON_check_blesta_cron.php ----------------------------------- So the this cron will be runing every 15mins & will check that last Blesta's cron was not more old that 30mins from date-time-now. Please, read line 10 in CRON_check_blesta_cron.php if you want modify this value. When you are ready to use this script in PRODUCTION, Please read instruction at line 66 in CRON_check_blesta_cron.php file HAPPY CRON! check_blesta_cron.zip5 points -
Eu (Proforma) Invoicing Critical Bug
lukasP and one other reacted to blesta_tester for a topic
Hello, When a proforma invoice is issued, the date of a real invoice (not proforma) should be the date the payment is received. Currently we have numbers/dates like that: Invoice 80 2015-02-02 (proforma 3) Invoice 81 2015-01-30 (proforma 1) Invoice 82 2015-02-01 (proforma 2) And our taxman visited us today... because it looks like a fraud in EU. Newer invoices with date older than old invoices. I hope you can get it fixed very soon, because no invoicing could be done in EU like that.2 points -
[Gateway] Paypal Payments Universal
kikloo reacted to Blesta Addons for a topic
Hello All . The Gateway is no longer offered for free , you can check the pro version that has all the working features and the bug-fix . This Gateway allow you to accept paypal payment with any used currency in your site . as always the installtion steps is : 1 - order the file http://blesta-addons.com/plugin/store/main/item/14/. 2 - upload paypal_payments_universal folder inside components/gateways/nonmerchant directory . 3 - Goto gateways and install it , configure the paypal setting and select the currency to be used instead of no accepted currencies . this Gateway require a Pro Subscription Best regards1 point -
Is it set to be Manual Accept on the order form? If yes, have you accepted the order on billing > order widget > check box and click accept?1 point
-
Eu (Proforma) Invoicing Critical Bug
a.daniello reacted to Blesta Addons for a topic
i have not yet tested or reproduce it , but from the OP i have this remark . the date showed is the date of proforma creation . i think it should have the date of the day converted from proforma to invoice . i have other scenario . some of our client pay with bank transfert , and some transfert take 2 or 3 days to appear in our account , if we apply the date of the payment recieved it will have 2 days ago , and can be a probleme also , what i suggest to to make the date of the conversion from proforma to invoice . proforma created (PR22) with date 2-1-2015 client pay by wire transfert in 5-1-2015 we recieve the payment in our account 7-1-2015 (7-1/8-1 is saturday and sunday not working in office) 8-1-205 a client has made order and pay it with online payement invoice created auto with date 8-1-2015 INV-10 ) we apply payment 9-1-2015 fro proforma PR22 and INV-11 is created with date 7-1-2015 . so in this exemple we have also INV-11 has date older than INV-10 . what is suggest is to make the date as the date of converting from proforma to invoice (in our exemple is 9-1-2015)1 point -
The license manager is made up of 2 parts: License Manager (plugin): http://docs.blesta.com/display/user/License+Manager License Module: http://docs.blesta.com/display/user/License+Module The license plugin serves as the license server. The module creates licenses. Blesta includes an Import Manager plugin, that allows migrating from WHMCS. See http://docs.blesta.com/display/user/Migrating+to+Blesta The importer should import license services from WHMCS, however they will be imported using the Universal Module. Their method of licensing is not compatible with ours, which is not possible to circumvent without decoding and nulling. It's much better designed overall. You may find this an interesting read - http://www.blesta.com/2012/03/30/blesta-3-0-software-licensing/1 point
-
Blesta does have one you can find information here: http://docs.blesta.com/display/user/License+Module and http://docs.blesta.com/display/user/License+Manager and there's even pictures there . I'm not sure about the Importer for Blesta from WHMCS imports licenses Paul and the guys will know I will point them here for you. I don't work for Blesta, but Blesta selling point(s) for me are: Security, usability and clean code. When I used WHMCS before 2013, their consent updates and breaking stuff was too much, their security was awful which is why I moved to Blesta. As for ClientExec, when I was helping a client move over (due to no importer) I had to keep asking her stuff because I couldn't find anything, it just was confusing and I didn't want to break anything. Hope it helps.1 point
-
Cron Task Locked Improvements
LukesUbuntu reacted to serge for a topic
Just posted in the contribute section, : http://www.blesta.com/forums/index.php?/topic/4073-send-notify-email-about-general-blestas-cron-task-locked-or-stalled/1 point -
All departments except "Staff". Are you sure you are authenticated with that same user? Sometimes people migrate from another system and end up with 2 similarly named staff accounts in Blesta. If the correct one is not assigned to the ticket system, then this can happen. If you are certain that the staff user you are authenticated with, has been added as a staff member for the support system with access to the proper departments.. then I would suggest deleting the staff user in the ticket system, and re-creating it. I can think of no other cases where this is an issue, in all similar reports the issue was that the staff user was not added to the support system or did not have the proper permissions for the department.1 point
-
Support > Staff. Your staff user must be added as a staff member for the ticket system, and assigned to all necessary departments.1 point
-
Tax Not Showing In Form
Michael reacted to Blesta Addons for a question
the tax is shown when the user is loged or registred . and normally it should be shown in all proccess with the default value of tax, if the user is logged and are illigible for tax exempt it should be exempted .1 point -
This has already been requested: http://www.blesta.com/forums/index.php?/topic/3285-terminate-suspended-services/?hl=terminate and a similar one here: http://www.blesta.com/forums/index.php?/topic/2981-cancel-orders-that-are-days-old-automatically/ It is under: CORE-1360 no ETA yet.1 point
-
[Components] Html Invoice
PauloV reacted to Blesta Addons for a topic
i have found a solution . but it need some change in the code . in the final it work perfectly1 point -
Cron Task Locked Improvements
Blesta Addons reacted to serge for a topic
1. send notify via email about cron task locked or stalled (staff member can try to fix the problem, if present, asap); I just created a poor man's script that's work fine for that, I will be posting it tomorrow in the contribution forum section.1 point -
Thxs to Tyson about explanation on Cron task Lock in Blesta. Just to share, as my concern was to have a safe 2 mins cron frequency, (my above previous script & lock was not good) I finally found more deadly easy solution using solo, and that work fine on blesta cron: http://timkay.com/solo/ Naturally this beats working with lock/PID files, because an open port is directly tied to a running process, and chances of inconsistency and having to detect and cleanup orphaned PID files, are zero. and regarding 2mins cron frequency VS 5mins recommended by default, I'm not a believers it will consume a lot of resources, if we should avoid using php resources, we should be also afraid when customers load website pages as powered all by php. Solo, need you have Perl installed on your server to create the solo file from console (if you do not have console access ? see my below post): ----------------------------------------------------------------------------------------------------- curl -q http://timkay.com/solo/solo -o /usr/local/bin/solo \ && chmod a+x $_ CREATE THE CRONJOB: ------------------------------- open crontab as root in console(if your user is not root just change root to your-user): ------------------------------------------------------------------------------------------- crontab -u root -e Next ad this line in crontab: -------------------------------- */2 * * * * /usr/local/bin/solo -port=5001 php /PATH-TO-BLESTA/index.php cron OR Create the cron job using your server control panel menu N.B.: Depending of your OS, use: */2 * * * * /usr/local/bin/solo -port=5001 php /PATH-TO-BLESTA/index.php cron OR */2 * * * * /usr/local/bin/solo -port=5001 /usr/bin/php /PATH-TO-BLESTA/index.php cron N.B.: ---- As root you can use any available port above 1023. The maximum allowed port number is 65535, but use only one port by cron. In above case, cron frequency is 2 mins. Next, -------- Check in Database Table cron_task_runs table, take note of what are the task_id you want to speed the cron interval. In my case it was task_id : 4, 5, 18 as I want new ordered service when paid, be fast activated And open Table task_id in database, and edit row where task_id & company_id you want to speed interval, & update interval, In my case I have updated all above task_id to interval 2 . (2mins) -------------------------- Ref.: http://kvz.io/blog/2012/12/31/lock-your-cronjobs/ The Flow Can it open your port ? so it's will be starting Blesta cron script Can't open your port?Never mind, Blesta cron script is probably still running, will try again next time Naturally this beats working with lock/PID files, because an open port is directly tied to a running process, and chances of inconsistency and having to detect and cleanup orphaned PID files, are zero. ------------------------1 point
-
[Components] Html Invoice
PauloV reacted to Blesta Addons for a topic
Thanks i have found a tip for this question , i can now downloading the pdf invoice from the html view nearly i will update the components ... now realy if blesta can help , i help for this two question How i can add link to blesta section using the core class "base_uri" ? (or use the template system ) how i can force open the html template in a new page ?1 point