1

I have CodeIgniter 3.0.6 running with WireDesignz HMVC.

When running

modules::load('page/com_Page')->_GetPage();

I get online a

Call to a member function _GetPage() on null

But locally it is working. The directory structure is as following

application
public_html
public_html/components
public_html/components/page
public_html/components/page/controllers/com_Page
system

in the config I have

$document_root = $_SERVER['DOCUMENT_ROOT'];
$document_root_exploded = explode('/', $document_root);
$document_root_name = end($document_root_exploded); 

$config['modules_locations'] = array(
    APPPATH . '../' . $document_root_name . '/components/' => '../../' . $document_root_name . '/components/',
);

I have no clue why local (Windows Apache) its working and online not (Linux).

PostMans
  • 338
  • 5
  • 18
  • "Class names must start with an uppercase letter." from the tutorial - maybe thats the problem – Atural Apr 18 '16 at 10:53
  • Have you found a solution for this? Because I am also getting the same issue here: https://www.blognow.org/home I don't know what is causing it, its working fine on localhost. Just not working on Shared hosting – Lonare Nov 09 '19 at 22:30
  • @harshallonare: Please see the solution below. Controllers has to start with a capital. – PostMans Nov 13 '19 at 07:49

1 Answers1

0

It has to do with case sensitive. In HMVC the controllers have to start with a capital.

PostMans
  • 338
  • 5
  • 18