Jump to content

Whmcs Index.php changes?


Recommended Posts

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

Guest
This topic is now closed to further replies.
  • 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