Jump to content
vasil_uhmk

Need help with UnblockMe (or UnBlockIp) addon

Recommended Posts

Hi,

 

We used UnBlockIp module few years, but week ago it stopped works from the client area (from the admin it works fine). As alternative I found UnblockMe module. Downloaded it and uploaded the files according its "ReadMe" file. When I'm trying to unblock IP address I got "Service ID not found" message (error). This code is in the file unblockme.php in the root of WHMCS installation.

 

Does somebody have experience with this module? Every help is welcome and very appreciated.

 

Thanks in advance!

Share this post


Link to post
Share on other sites

unless someone has already done so, I doubt you'll easily be able to make UnBlockMe work in v7 - if we're talking about this thread...

 

https://forum.whmcs.com/showthread.php?31752-UnblockMe-(CSF-cPanel-Unblocker)-Addon

 

from the GitHub, the last updated was from 5 years ago and the first thing I can see is that it uses dbconnect.php - but that got removed from WHMCS v6 in 2015...

 

http://docs.whmcs.com/Version_6.0_Release_Notes#Removal_of_Dbconnect.php

 

6.0 sees the removal of the dbconnect.php file from the root WHMCS directory. This file has been deprecated since WHMCS Version 5.2 and has remained only for backwards compatibility with older modules. As of 6.0 however, any scripts which still rely on including the dbconnect.php file to function will need to be updated to instead include the init.php file. When including the init.php file, it is not necessary to include any other WHMCS files. For reference, the most up-to-date code sample for creating your own custom client area pages which works in WHMCS 5.2.0 and later is available @ http://docs.whmcs.com/Creating_Pages

you might want to try following the above instructions and changing dbconnect for init and see if that gets you any further... though I suspect they'll be more issues than just that one.

Share this post


Link to post
Share on other sites

Thanks for your reply Brian. My version of WHMCS is relatively old, it is version 5.3.14 so it will be ok with dbconnect.php.

 

I tried to make some inspection in the code. In the JavaScript code which sends the AJAX request there is some Smarty variable {$id}. I printed it, it is empty. Where is initialised this variable?

Share this post


Link to post
Share on other sites
I tried to make some inspection in the code. In the JavaScript code which sends the AJAX request there is some Smarty variable {$id}. I printed it, it is empty. Where is initialised this variable?

have you followed all the installation instructions?

 

https://github.com/shalintripathi/WHMCS-Modules/tree/master/unblockme

 

for part 3, you should really be using Language Overrides and not, as those instructions suggest, be editing the original language files. :roll:

 

with regards to $id being initialised, it's part of the code that you manually add to clientareaproductdetails.tpl...

<form>
<input type="text" size="25" name="myip" value="{$smarty.server.REMOTE_ADDR}" style="text-align: center;" readonly /><br />
<input type="button" id="unblockme" value="{$LANG.unblockme_unblock}" class="button" />
</form>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By vasil_uhmk
      Hi,
       
      We are using UnBlockIp free addon module to unblock IP addresses. It was working fine until few days when it stopped to unblock IP addresses blocked on our latest added server and it stopped work from the client area. From the client area it doesn't unblock any IP address.
       
      Version of UnBlockIp addon module is 1.91 and our WHMCS version is 5.3.14.
       
      Can you please suggest me some fix or recommend some other module as alternative of UnBlockIp?
       
      Thanks in advance.
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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