Jump to content

z900collector

Member
  • Posts

    23
  • Joined

  • Last visited

Everything posted by z900collector

  1. What is the current state of CORE-13147/13149 - we still have almost all our domains showing as a red padlock in admin and client areas. I can't find any that are not red. tblsslstatus has over 5000 entries in it, most fields are blank. How do we get rid of the ICON?
  2. After some experimentation it appears the error is in another module that is chained/called after mine exits, disabling it allowed mine to return instantly ... so case closed!
  3. G'Day all, I've written a provisioning module which appears to cause WHMCS to freeze when you exit the module_CreateAccount() function, either manually in the admin screen but more importantly, when you make a payment for the product and WHMCS automatically runs module_CreateAccount() I log everything and my modules create function is returning "success" so the issue appears to be AFTER the module exits back to WHMCS. Is WHMCS expecting something else to occur AFTER the CreateAccount method exits? Sid
  4. Any hints on how to rename the buttons.... such as "Create" -> "Create Domain", "Terminate" -> "Remove Domain" Sid
  5. OMG!!! - It works... there is nothing written anywhere on that, the sample code has everything coded as a shell and not a hint that removing the function(s) removes the buttons! Thanks Heaps Sid
  6. Hi, I have written a provisioning module and attached it to a product and when I select "products/Services" for a client which has "purchased" the product, the page shows 6 buttons I don't need +plus my additional buttons the module has added. How do I remove the default provisioning modules buttons such as "Change Package" which have no relevance in my module? I've looked through the API and Hook ref to no avail (or I missed it) and I've looked at templates and can't find where the Product/Service page is defined. Any help would be really appreciated Sid
  7. Although the post is a few years old, did you solve this issue? I am now trying to do something similar and hitting a few roadblocks with the button as well. Sid
  8. I have the same issue, I am trying to disable the same buttons for a product with a module I have written. The buttons make no sense for my provisioning module. Is there an API call or Hook that removes these buttons from the product page? Sid
  9. Further to my last message, this library is very common as a base for a variety of AMQP implementations: https://packagist.org/packages/php-amqplib/php-amqplib I've just used it in a Laravel App using the following library: https://packagist.org/packages/bschmitt/laravel-amqp Can you outline how you intend to use MQ in your app, I'm a big fan of Message Queuing so I may be able to give you more pointers Sid
  10. Hi, There are php-amqp libraries available, you could create a RabbitMQ module which brings the AMQP code into effect, then you could issue produce()/consume() calls in the various hooks....
  11. Hi, I uploaded a fresh copy of the WHMCS code and the issue disappeared. I can't explain how this has fixed the issue as the files are all encoded. I've been slowly replacing the addon modules and custom hooks and so far no issues. I should add, for the custom code there are no calls to init.php.
  12. Hi All, I get the dreaded "Detected attempt to include init.php for a second time. Unable to continue." after I press save on a New Client.... I removed all the modules and hooks and checked all the plain text code to see if there is anything and I just can narrow it down. Its on our Dev System and I think its the latest version. I'm lost for things to try, being a dev systems its been a few weeks since anyone added a client so we don't have any idea why its failed. Sid
  13. I actually could not find any way to easily contact them, however I spent a few hours and have solved it by dropping the cp_* tables, running the modules and the recreating them one by one from the backup I took and manually updating the version info in the module config table. I'd say it failed between the 1.5.5 to 1.5.6 upgrade someone did recently. Sid
  14. We have a licensed copy of the Client Profile Viewer Module but it appears to crash with a missing table error: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_whmcs.cp_person_assigned' doesn't exist I've looked in the DB and we only have the following "cp_xxxx" tables... cp_clients_custom_statuses cp_conf_role cp_conf_widget cp_configuration cp_widget_configuration How do I get back my tables? Do I delete the existing ones and re-run the module? Sid
  15. G'Day all, I need to intercept all domain renewal attempts by the WHMCS engine either just before or just after to track for specific domains (when is not important). Is there a hook available that will give me the domain name WHMCS is trying to renew? Thanks Sid
  16. After much experimentation this has been solved using an AddOrder call: function add_order($clientId, $domainName, $paymentMethod,$regPeriod) { $command = 'AddOrder'; $postData = array( 'clientid' =>$clientId, 'domain[0]' =>$domainName, 'paymentmethod'=>$paymentMethod, 'domainrenewals'=>array($domainName=>$regPeriod) ); $results = localAPI($command, $postData); return $results; }
  17. OMG Solved! - needed to add another field 'domainrenewas'=>array($domainname=>$regperiod)
  18. I'm trying to do something similar but I get a "no items in cart error"... the call states the PID is optional but it seams to indicate you must add at least 1 "product" to the order? Sid
  19. G'Day all, Ultimately I am trying to generate a domain renewal invoice for a single domain via the API for clients who don't have auto-renew and a payment method on file (thats about 2000+ domains). In experimenting with the API calls, I am trying to use the API call AddOrder and I think I need to add the product ID for a domain renewal as the API call is generating an error (as shown below) ( [result] => error [message] => No items added to cart so order cannot proceed ) ..... in order to produce an order and hence trigger a domain renewal when its ultimately paid. The issue I have is I can't find a product of that type in Setup->Product & Services. Where does the PID value come from for a domain renewal? Sid
  20. I am trying to add an order for a domain renewal, How do you work out the values of $pid?
  21. I've cross posted this to the developers section... It should have gone in there originally... sorry.
  22. I have a unique requirement, some of our clients don't want to login and select "renew domain" etc, and they don't want to have auto renew enabled for their domains, but if we send an email requesting then to either click a link and renew (or click another link not to renew) they will do that and the we send them an invoice to pay. I've already built the email renewal request hook and all the associated logic which works well.... but..... I need a way to trigger invoice generation and sending as if they had logged in and pressed the "renew my domain" button. Is this possible via the API? Sid
  23. I have a unique requirement, some of our clients dont want to login and select "renew domain" etc, and they dont want to have auto renew enabled for their domains, but if we send an email requesting then to either click a link and renew (or click another link not to renew) they will do that and the we send them an invoice to pay. I've already built the email renewal request hook and all the associated logic which works well.... but..... I need a way to trigger invoice generation and sending as if they had logged in and pressed the "renew my domain" button. Is this possible via the API? Sid
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated