BlackNovaDesigns-Kyle Posted November 15, 2017 Share Posted November 15, 2017 Hello Guys, A module I'm using has gone dead with support for nearly a year now, so looks like the author has gone. The basic issue I get is that if using a WHMCS 7.1.2 index.php the module works perfectly if I use WHMCS 7.2/7.4.1 index.php it fails to work. What I seem to see that's not working is that the variable "m=??" is not working. I know WHMCS 7.3 started to use new SEO URLS for like the Sign-in integrations which doesn't work, either, so my question really is what has changed to how the index.php has changed between the versions? The module is looking for a "m=whmcs_cms_plus" but doesn't seem to be passed, because as soon as you put in the website URL with the appending parameter in the URL it works e.g. http://www.yourdomain.com/testpage?m=whmcs_cms_plus - the page will load correctly if i was to load the following http://www.yourdomain.com/testpage - the page would just 404 error. I tried just putting a quick fix something like <input type="hidden" name="m" value="whmcs_cms_plus" /> but doesn't seem to fix the issue. The module loads the SEO URLs by doing the following: <?php $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI']; $_SERVER['SCRIPT_NAME'] = $_SERVER['REQUEST_URI']; $_REQUEST['m'] = 'whmcs_cms_plus'; require(dirname(dirname(dirname(dirname(__FILE__)))).'/index.php'); print $_REQUEST['m']; Thanks, Kyle Link to comment Share on other sites More sharing options...
BlackNovaDesigns-Kyle Posted November 15, 2017 Author Share Posted November 15, 2017 I have just done a test using print $_REQUEST['m']; When using the old Index.php it shows the whmcs_cms_plus but when using the new index.php it is not - so i then tried outputting hello print $_REQUEST['m']; print 'hello'; And the hello didn't appear either but on the old index.php it did. Link to comment Share on other sites More sharing options...
Recommended Posts