How to resolve my 404 error when using hook menu? I've a custom module named workingmodule. I get a 404 when  visiting domain.com/workingmodule.

My module is enabled, and I cleared the cache. This id the code I am using in workingmodule.module.

/**
* Implements hook_menu().
*/
function workingmodule_menu() {
  $items = array();
  $items['workingmodule'] = array(
    'page callback' =&gt; 'workingmodule_blank_page_callback',
    'page arguments' =&gt; array(),
    'access arguments' =&gt; array('access content'),
    'type' =&gt; MENU_CALLBACK,
  );
  return $items;
}

/**
* Display the tagboard/custom content for page.
*/
function workingmodule_blank_page_callback() {
  print_r("test");
}


Why does domain.com/workingmodule return a 404 error?
I tested the code by adding that path and it works.

I suggest the following steps debug:


Make sure that Drupal is able to flush the cache without any problem by checking if there is any errors at admin/reports/dblog
If you didn't find any errors when you flushed the cache, try to add a die('checking hook_menu') on your hook_menu implementation to see if the hook is being executed.
If you are not going to pass any arguments to that callback I suggest you to remove the line 'page arguments' =&gt; array(),
Check your Apache/NGINX settings, it could contain something that is affecting that path.