vasil_uhmk Posted June 18, 2017 Share Posted June 18, 2017 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! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 19, 2017 Share Posted June 19, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
vasil_uhmk Posted June 19, 2017 Author Share Posted June 19, 2017 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 19, 2017 Share Posted June 19, 2017 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. 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> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.