WHMCS Integration Plugin Nightmares!!!

Ok – I know everyone starts off with my plugin isn’t working – well it does work, I know mine isn’t configured correctly so ANY help at this point would be greatly appreciated.

I had to trash another whmcs plugin that I tried using because I couldn’t get certain things to work. I’m new to WPMUDev.org AND this is my first site with WP – ever. I tried creating a responsive theme however, during the construction process, it got to be too much and at this point, I really need to get my content online.

The theme I am using is a whmcsthemes.com (php/html) theme. However, the WHMCS I have (installed and operating live at http://members.mypchost.com/) *IS* using the default portal theme. Of course, when its all said and done, I want completely the same theme across the board with this – whmcs through wordpress totally. Currently I have and use NO sidebars because THIS is the MOST important part of this entire operation for me… I need to get it working first!

Within the WHMCS settings I have set the “Domain: http://mypchost.com” for the main site and the WHMCS URL: http://members.mypchost.com/

At this point I’m not using SSL – so no worries or complications there to deal with.

Now – in the WP setup for the WHMCS Integration plugin, I have set the following. Remote WHMCS Host: http://members.mypchost.com/ (identical to the above). Default page = Home. Endpoint: “active”

No problems thus far. The only links on this page right now, which are loading from the WHMCS install are: Portal Home, Client Area and Request a Password Reset.

The links show as redirecting to below:

Portal Home = http://mypchost.com/active/index.php/?

Client Area = http://mypchost.com/active/clientarea.php/?

Request a Password Reset = http://mypchost.com/active/pwreset.php/?

No matter what link I select from above, EVERY one of these links takes me back to my “Home” page as set in the WHMCS Integration plugin at the root domain of http://mypchost.com

Now — here’s the thing, I have attempted many different ways all with the same result. Simply put… the only page that has anything on it right now is the “Domains” page which has the “[wcp_content]” shortcode on it and nothing else. I get to that page while I am NOT logged in, and I get prompted to login, just as expected. I log in successfully and I’m presented with the clientarea.php page (http://members.mypchost.com/clientarea.php) which is identical to the standalone WHMCS site page.

So I log in using my credentials and I am successfully logged in and directed to: http://mypchost.com/domains/ (which is the created page within WHMCS named “Domains”:wink:

I’m thinking ok – great – working. Now I have 3 links here as well.

The links show as redirecting to below:

Portal Home = http://mypchost.com/active/index.php/?

Client Area = http://mypchost.com/active/clientarea.php/?

Submit Ticket = http://mypchost.com/active/submitticket.php/?

So I figure, I’ll click the Submit Ticket link – oooops!!! No go – It takes me back HOME again. to the same thing as the previous links.

Ok – so now I’m logged in – I try to log out, but I have to do so MANUALLY by typing in the url in the address bar: http://mypchost.com/active/logout.php/? — guess what – THAT worked!! Just like logging in – so there’s a breakdown somewhere in between and I’ve had enough of it lol

So this is step ONE of the issue. What is going ON with these links!!??? Why aren’t they working? What have I not set or overlooked? Is it “broke” or is it me!?

I also have several questions regarding this integration plugin too. I can find absolutely no literature on it whatsoever and its very frustrating because it LOOKS so simple, but there are too many issues with it NOT working for someone whom is a novice with WP to attempt to fix alone.

Other questions:

1. When and WHAT is the “Encode URL” for? To encode a url and then put it in a “Link” part of a menu?

2. How do you get different pages from WHMCS to actually display within the framework of WP? The shortcodes are limited to only a few things – is this where the Encode URL comes into play?

3. Does this work on a subdomain as compared to a folder? Is this my problem?

4. I try to use the Encode URL to create a link that WILL work. So I paste the URL to encode as: http://members.mypchost.com/cart.php (which is a WORKING link as a standalone) and click the button to encode. It presents this output: http://mypchost.com/active/cart.php/? (which does NOT work)

5. What the heck is SUPPOSED to go into the “URL to encode:” box???

Man – if I had any hair left – I’d have ripped it out by now – this plugin which APPEARS to be a snap, is a PAIN in the you know what!

Ahhhhhhhhhh HELP!!!!!

Thanks :wink: Matt

PS: I have a test account to the site ready for you to try and log in

  • PC
    • WPMU DEV Initiate

    Hey Matt,

    Thanks for your post.

    Wow, that is big :wink: lol

    No worries, we will take it step by step and see how we can fix things here.

    First of all I need to have a closer look at things so that I can test and see if things are setup properly.

    Can you please send me your login details via our secure contact form

    1: Mark the email to my attention

    Attn: PC

    2: Include a link of this thread in the email

    3: Include FTP and WordPress super admin details.

    4: While filling the form, select “I have a different question” from the list.

    Looking forward for a response on this.



  • Arnold
    • El Macho WP

    Just wandering by.

    I note above that you have the Default content page set to Home. How do you have your Settings > Front Page display set?

    The correct way to get the default content on the Front Page is to create a page with the [wcp_content] shortcode on it. I believe you’ve done this with /domains/?

    Then in Settings > reading > Front page display set it to Static front page and set the Front Page to Domains and the Posts page to whatever you like.

    I got stuck goning any further at this point because you have a maintenance screen blocking access after that. I can get to your Knowledgebase at


    So your plugin is working. I think it’s getting tangled in the maintenance screen and front page setup.

  • Matt
    • New Recruit

    Thanks for the reply Arnold – As I said, I’m new to this – so clarification is key :wink:

    I believe what you are asking is withing WP – what is my Settings > Front page display set? I’m assuming that you mean Settings > Reading > Front Page which is set to “Home”.

    I was not aware (shortage of documentation) that there needs to be a setup like such.

    I’m not sure where you’re seeing any “maintenance” screen?? Where are you getting that (?) because my WHMCS is live and operational.

    I can also get to the knowledgebase – however, I can’t get to simple things such as password reset…. If I follow correctly, the link that SHOULD work for password reset would be http://mypchost.com/domains/active/pwreset.php/ which I DO get that page.

    It appears that there is something causing an issue with the links…. maybe I’m confused about how to properly set this up.

    I would like “My Account” to be the primary page for the WHMCS bridge to work, which is where [wpc_content] would be located I assume? Is this right?

    The problem stems from navigating to through the site then because what I see after each link is “/?” which is confusing me because I don’t know why it is attaching that to the link. How do I get that? I go to the site, click domains (which I’d LIKE to show the domainchecker.php page from WHMCS, but shows the login page instead). So I guess my initial configuration is setup incorrectly with what page needs to have the shortcode placed onto it?

    I’m truly baffled by the “maintenance page” you’re seeing – as I have no idea where that is or where you’re getting that from. You can see that the actual WHMCS is operational at http://members.mypchost.com

    Thanks again for the reply. I will try to make some minor modifications to the site now with links and have the “My Account” page show the shortcode instead of the domains page. A little tutorial would go a long ways here for that plugin to eliminate confusion on the setup, etc. Looking forward to your reply :wink:

  • Arnold
    • El Macho WP

    Below is what your maintenance screen looks like.

    I took from above you were trying to get your Portal page to be your Home page. That was how you do it.

    If you don't want your portal page to be home then a simple page with the wcp_content shortcode works fine.

  • Arnold
    • El Macho WP

    Just noticed this

    I’m truly baffled by the “maintenance page” you’re seeing – as I have no idea where that is or where you’re getting that from. You can see that the actual WHMCS is operational at http://members.mypchost.com

    I think your confusing the WHMCS side with the WordPress side. That url is the WHMCS side. There’s almost nothing on the WHMCS side to configure to get it to work. It’s all on the WordPress side which are your



  • Matt
    • New Recruit

    Right – I understand that the plugin works – as I said in my original post, its simply a configuration issue which is lacking a bit of documentation for people to set it up.

    Maybe what I’m wanting and what I’m doing aren’t working together right?

    I’d like to set up pages that are not pages that are within the WHMCS site. Such as a product pages like reseller hosting, shared hosting, ssl’s, domains, etc. I guess my first question then, is this possible – or is it going to create link problems?

    Secondly, if it will work, then I am assuming that my page “My Account” which I’m trying to set up now (busy workload) should have the shortcode [wcp_content].

    Sorry Arnold, I’m still learning WP, the plugin and design with WP also lol – so I have my hands full on this.

  • Matt
    • New Recruit

    Yes, I am confusing it with the WHMCS side – you said, “I got stuck goning any further at this point because you have a maintenance screen blocking access after that.” and thats where the confusion came into play — give me a few if you will to make a few changes and I’ll ping you back – thanks Arnold for your time!!

  • Arnold
    • El Macho WP

    You can do individual pages but it’s mostly a waste of time. You need the one default content page because when you go to one of your custom pages and your not logged in it’s going to bounce you to the default content page to login. Once you login it will probably stay there and continue to show the changing content in that page.

    Do one default content page. Get it working and then you can worry about learning how to get fancy. Once you have it working you’ll see how it flows. I think your overthinking it.

  • Matt
    • New Recruit

    Arnold – finally – I understand what you’re talking about – I dumped the menus and the pages, created ONE page and threw in the shortcode from the plugin. GREAT!!! Its working – as I had hoped it would.

    I created menus with links based on the method that the site uses (ie: http://mypchost.com/active/filename.php/?) and its working fantastic.

    I did notice that when going to Domains and then clicking on either Bulk Domain Search or Bulk Domain Transfer it wants to send to a link that is not recognized by the plugin. This is what its doing:

    Bulk Domain Search is being sent to: http://mypchost.com/active/domainchecker.php/?search=bulkregister


    Bulk Domain Transfer is being sent to: http://mypchost.com/active/domainchecker.php/?search=bulktransfer

    Any ideas on this? As both links are actually broken at this point.

    Thanks again for everything – I feel much better now!

  • Matt
    • New Recruit

    The most recent version of which? WP or WHMCS? Quite honestly I do have both most current and released versions.

    I already have 5.2.12 of WHMCS and 3.7 of WP – so it can’t necessarily be an issue with versions then unless somethine else is happening here. Could it be that if the WHMCS portal template has not been overwritten and all I do is incremental upgrades which do not include those? The most recent version, including incremental upgrades, make no changes to those WHMCS template files.

    I’ll attempt to update the “portal” theme alone and all files associate with it – and then let you know my findings – however I suspect it will continue to be the case.

  • Matt
    • New Recruit

    Updated as you suggested – still the same result. I am doing a side-by-side

    In WHMCS it works fine:



    In WP it shows THESE links which do NOT work:

    http://mypchost.com/active/domainchecker.php/?search=bulkregister (reloads domains link)

    http://mypchost.com/active/domainchecker.php/?search=bulktransfer (reloads domains link)

    I even tried these (modified by me) to see if they work, but don’t either: (note the ‘?’ being manipulated)

    http://mypchost.com/active/domainchecker.php/search=bulkregister (reloads domains link)

    http://mypchost.com/active/domainchecker.php/search=bulktransfer (reloads domains link)

    http://mypchost.com/active/domainchecker.php?search=bulkregister (post not found)

    http://mypchost.com/active/domainchecker.php?search=bulktransfer (post not found)

    So somewhere – the /? is causing issues – now what do I do?

  • Matt
    • New Recruit

    Ok – it appears that everything (minus the domain bulk register and bulk transfer links) are working correctly!!! Finally!!

    Now – onto the next part – should I open a new subject on this i wonder?

    I’d like to have a home page (in WP) that displays a slider using my layerslider plugin – is this possible? If so, how can I go about doing this when my “home” page for the site is actually pulling through my “home page” from WHMCS. If I add the layerslider to my WP home page where the shortcode [wcp_content] resides, it shows on every page – which is not what I would like unfortunately. Could you advise on this please? Thanks much thus far Arnold – I appreciate your help!!

  • Arnold
    • El Macho WP

    You don’t have to have the portal page be the front page. I just thought that was what you were after.

    Make a normal page for the front page and put your slider on it with what ever else you like. Let them get to the portal page through the Menu.

    Or if you do want whmcs stuff on the front page with the slider but don’t want the slider after the first page, make two pages. One for the front with the slider and wcp_content the second with just wcp_content. Make the second one your default content page setting in the plugin.

  • Matt
    • New Recruit

    Alright Arnold – that is EXACTLY what I wanted – a non-WHMCS front page and a few other pages as well. I’m assuming I’d simply create the pages then using WP just like you’re saying on this with the other pages —- you sir – are a genius. I’m sure you’ve been called that before, but coming from me it should mean something more :wink: Have a great day and I’ll post my update – and a few points for you (learning your site) Thanks Arnold!!

  • Matt
    • New Recruit

    Ok – Arnold I made one change and now its broke? I really don’t understand HOW in the world this changed it unless its in the database completely tied to the “Home” page that

    I created one page “My Account” and placed the shortcode for content on that page. In the plugin, I set the home page to that “My Account” page. Then I went to Appearance > Menus and modified the main menu – removed the link I manually placed with the page option instead. That one page, now nothing is working?

    What I notice now, is that the actual links that work have been changed.

    Before: http://mypchost.com/active/filename.php

    Now: http://mypchost.com/my-account/active/filename.php

    Is that supposed to be the case so that now all menu options I’ve already created must be re-created?

  • Arnold
    • El Macho WP

    The first is the path if you had portal as the home page.

    The second is the path if you working off the my-account page. That’s what you asked for. You should have set the default content page in the plugin to the My Account page.

    You should have un done the static front page settings.

  • Chris
    • New Recruit

    How do you set the wcp_content to display the products instead of displaying the Portal Page.

    Basically all I want to get out this plugin is that on my WP website , on the home it show the cart with the products and the URL as tidy as it can be.

    Curretly as I understand you have to create yourself the table producs, add buttons to link to the cart and the user has to click 20x to ge the product.

    So what I am searching for is to get the


    to be the home page.


    So that when you enter http://www.domain.com ( I have a 1 page website) it loads you the cart.php with the products .( By the way I have the ajax form setup if that makes a difference.)

    Does anyone one how to setup the products page to be the home page.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.