Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

10 Good

About markc

  • Rank
  1. Thanks brian!, I kept poking around and I'm pretty sure you are right that it's 100% up to whatever is printing the generated page. In this case it's generally Firefox (KDE/Neon desktop on a *buntu/debian OS) by clicking on the Print button when the customer views the invoice in their WHMCS billing area. I've found a very simple workaround that will do the trick... just force the printer dialog to print the first page! Duh! The unknowing end user may get caught out the first time they go to print an invoice via the web page Print button but if I know when queried and add it the the Knowlegebase then that basically solves my problem.
  2. WHMCS 7.4.2-release.1 and I do have a mildly tweaked copy of the six theme as my real theme but I just checked and invoicepdf.tpl is exactly the same size in my theme and the six theme, so, no modifications to that template. Most of my clients run linux desktops so printing via Acrobat Reader is not really an option. Attached is an example, I tried to make the logo smaller but I couldn't get that to work (in case it was pushing the first page over some limit) but there seems to be plenty of space at the bottom of the first page anyway. The pagesize is set to A4. I'm not sure where the page header and footer are coming from, perhaps from the six theme? Any suggestions welcome.
  3. PDF invoice generation works okay but when a client wants to print out an invoice there is a second extra page that is blank... an annoying waste of paper that irritates my clients. I have confirmed this by using the print to file function for my OS (ubuntu) and sure enough there is a second blank page after the first invoice page. What is the simplest way to rectify this problem?
  4. Doh, apologies for the noise. I just found the problem of the old IP in my nginx config as a location block with a deny all and allow old IP. Fixed.
  5. I locked down my admin access by providing my source IP. Unfortunately due to circumstances beyond my control my local workstations IP has changed and now I can't login to my admin area to allow access from my new IP! I've gone through my whmcs database looking for likely entries and the most obvious were tblconfiguration setting = WhitelistedIPs and APIAllowedIPs both of which I have changed values to my new IP but I am still locked out with a "403 Forbidden". Is there another entry I need to change somewhere in the database? Is the procedure to fix a mistake like this documented somewhere (google didn't find anything useful)?
  6. It's hard to find a definitive answer but some google results seem to indicate that PHP 7.1 with the latest Ioncube 10 loader may work with the latest versions of WHMCS. My ubuntu /etc/php/7.1/cli/php.ini has... [PHP] zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so and that 10.0.4 loader is definitely there... ~ ll /usr/lib/php/20160303/ioncube_loader_lin_7.1.so -rw-r--r-- 1 root root 1331112 Nov 2 12:04 /usr/lib/php/20160303/ioncube_loader_lin_7.1.so but I get this when I test cron.php and the website has a similar error under fpm... ~ php /home/u/my.domain/var/www/crons/cron.php PHP Fatal error: The file /home/u/my.domain/var/www/crons/cron.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0 So is it possible to run these versions together? Do I have to tweak something, maybe reinstall WHMCS? Or is it simply not possible and if so when will it be? I'm using the latest version of Ubuntu Artful and one of the php modules I rely on (php-ssh2) no longer provides a module in /usr/lib/php/20151012/ but provides one for /usr/lib/php/20160303/ so I would prefer to move on and standardise on using php 7.1 across all servers as it was released a ~year ago.
  7. Reseller clients

    @brian! Thanks so much for your feedback, really appreciated. After a week to think about things I lean towards paying for the Resellers Center module if I really want to get serious about multi-level admin support.
  8. Can't get to admin/setup/authn/view

    Thanks for the tip. I tried that, and flushing my template cache, but it turns out I did not update my customised six theme along with the recent 7.3 update! It's a pity WHMCS does not adopt the Wordpress child-theme strategy because my only modifications are in css/custom.css. And for anyone using nginx I find this extra rule allows me to go back to "Full Friendly Rewrite" and now /admin/setup/authn/view works... rewrite ^/admin/setup/(.*)$ /admin/index.php?rp=/admin/setup/$1 last;
  9. Reseller clients

    "they've just bought a reseller hosting product for them to manage" I can understand that there is no extra functionality like what the Resellers Center module has to offer otherwise there would be no reason for that module to exist. I guess I simply do not understand the functionality of "Product Type" and how those 4 settings affect interaction between clients and their products. My feeling is that they are almost arbitrary labels or tags to distinguish a few common products types with Other Product/Service being a kind of wildcard for anything other than the first 3. A set of categories without any extra real functionality. I did read this in the docs but that one sentence description does not give me any idea how to use or take advantage of that setting -> Reseller Hosting - for web hosting reseller accounts I guess it means that if one has a module and/or provisioning software that is "reseller" aware then the category/label to distinguish those products is already there as a fundamental part of the WHMCS core code to support any extra reseller modules. I do have a dev setup so I should investigate roles and groups to see if there is anything I can squeeze out of them but, again, the documentation is so brief I might be wasting my time. Thanks for your input.
  10. Reseller clients

    @brian! thanks for confirming what that reseller module offers is kind of what I was hoping WHMCS might do out of the box. Not so. That dedicated reseller module is quite expensive but it's cheaper than the annual lease of a separate WHMCS license and has the advantage that all information is in the same database with the same frontend interface so that point is a major win vs separate leases of WHMCS itself. Just in case I can manually emulate part of what I want to do with admin roles and groups, could you or anyone explain what the meaning of this "Reseller Account" option under Setup -> Products/Services actually means and does (see attachment) and/or exactly where the documentation for this option might be?
  11. Can't get to admin/setup/authn/view

    I've added Twitter and G+ API authentication but nothing is showing up on my Signin page. How would I go about debugging this and trying to figure out why these 2 extra buttons are not showing up?
  12. Reseller clients

    Is it possible to setup a client as a "reseller" within a single instance of WHMCS? If so then any pointers to documentation would be appreciated. I thought it was possible to have a separate admin client that would have their own set of clients to bill and manage and some kind of reseller branding for that admin client but now when I google for any related documentation the only sense of "whmcs client reseller" I can find is for either reselling WHMCS itself or companies using cPanel with it's built in reseller abilities. I do not use WHM/cPanel so I have to build that provisioning side of things myself but I still need to know if it's possible to fully or partially emulate a reseller within WHMCS.
  13. Can't get to admin/setup/authn/view

    Ah, thanks for the reminder about the "Friendly URLs" section. I set it to basic and now I can at least get to the Sign-In Integrations page using this URL... /admin/index.php?rp=/admin/setup/authn/view So now I just have to figure out the nginx equivalent for these 2 lines below (I presume) and I then can go back to using Full Friendly Rewrite. Thank you WHMCS Andrew RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ %2index.php [QSA,L] If anyone has already worked out the nginx equivalent to the above then a hint would be appreciated.
  14. The link I have for Setup > Sign-In Integrations is admin/setup/authn/view but I get a 404 Not Found. I use nginx but it wouldn't matter if I were using apache because without the appropriate rewrite rule it will never work. Would anyone have a suggestion as to the correct rewrite rule? I understand nginx is supported so an apache .htaccess rule would be fine and I'll manually convert it.
  15. Sorry about the double attachments. I thought I removed the large one before uploading a resized smaller one but the first large one is still there, obviously. I couldn't find anyway to edit the post after posting either. 1. I have just done a fresh reinstall and using the standard_cart. The only thing I did, so far, is copy templates/six to another name and now using that theme. I noticed just now I had not edited the theme.yaml file so not sure if that had anything to do with it. 2. Checking now... just six of them until I understand how things are meant to work. The registrar is SynergyWholesale (updated Ventura module I think). Appreciate any suggestion you might have.

Important Information

By using this site, you agree to our Terms of Use & Guidelines