Jump to content

Links not working.


Recommended Posts

Muhajir, 

I noticed last night if you change back to Six or Twenty One the links work. 

The url is exactly the same though but it just won't load cPanel. 

I don't know if this is a whmcs problem or a theme issue. Either way updating it in the past never broke it. 

Edited by Wharfdale
Link to comment
Share on other sites

19 hours ago, Wharfdale said:

Hi, 

From the client area the "Login to cPanel" and "Email" are no longer working.  From the actions sidebar. 

Has anyone else had this issue? 

The cPanel quick links below work fine.

Thanks in advance. 

When you click on either button, do you get a spinning icon beside it? Or does the end of the URL in your web browser show a # sign?

If possible, open the developer tools in your web browser and go to the Console. Click on either link again and check the console to see if any errors are defined. Pass them on if so.

Please also open the network tab and check to see if the following request is being made when you click on either link: index.php?rp=/clientarea/service/[ID]/custom-action/cpanel

The Response tab should state:
 

{"success":true,"redirectTo":"[SERVER URL WITH TOKEN]"}
Link to comment
Share on other sites

49 minutes ago, leemahoney3 said:

When you click on either button, do you get a spinning icon beside it? Or does the end of the URL in your web browser show a # sign?

If possible, open the developer tools in your web browser and go to the Console. Click on either link again and check the console to see if any errors are defined. Pass them on if so.

Please also open the network tab and check to see if the following request is being made when you click on either link: index.php?rp=/clientarea/service/[ID]/custom-action/cpanel

The Response tab should state:
 


{"success":true,"redirectTo":"[SERVER URL WITH TOKEN]"}

Hi Lee, no spinning just a #. I will inspect it when I get home and update you. 

 

Thank you 

Edited by Wharfdale
Link to comment
Share on other sites

1 minute ago, Wharfdale said:

Hi Lee, no spinning just a #. I will inspect it when I get home and update you. 

If it's just a hash then it's likely the JavaScript isn't being called for some reason. Take a look at the Console in your dev tools and see if anything shows, if not check the Network tab to see if any resources are showing a 404 or 500 error.

Link to comment
Share on other sites

Hi Lee, 

When I got home my installation was corrupted apparently. I attempted to do a restore from backups but that fail too. 

Anyway I have now got a fresh whmcs install and clients etc are all back. However accounts are not showing registered domains that have been purchased through me. Will this sort its self out with the 48hr cron sync or do I need to force it some how. 

Any advice is appreciated. 

Matt

Link to comment
Share on other sites

On 10/17/2022 at 4:27 PM, Wharfdale said:

Let me know if you figure it out. @muhajir

In my case, finally I keep using my existing theme and add a hook scripts below. It's working.

<?php

use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar)
{

$service = Menu::context('service');
$id = $service->id;
$domain = $service->domain;
$servertype = $service->product->servertype;

# Not cPanel, no links added
   if ($servertype!="cpanel"){
       return;
   }

   if (!is_null($primarySidebar->getChild('Service Details Actions'))) {
            $primarySidebar->getChild('Service Details Actions')
                           ->getChild('cpanel')
                           ->setUri('/clientarea.php?action=productdetails&id='.$id.'&dosinglesignon=1');

            $primarySidebar->getChild('Service Details Actions')
                           ->getChild('webmail')
                           ->setUri('https://webmail.'.$domain.'/');

   }

});

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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