× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Custom Drupal pages are not displaying.

Matt Glaman
Feb 17, 2015
<p>You've created your first module and implemented your first <em>hook_menu()</em>! However you visited your <em>mysite.com/awesome-page</em> and are getting a 404 or blank page.</p> <p> </p> <p>Make sure of these two things:</p> <ol> <li>If you're accessing the clean URL, make sure clean URLs are enabled (mod_rewrite enabled in Apache.)</li> <li>Make sure <em>page_callback</em> is a valid function. If it's in a file outside of your .module, specify the <em>file</em> attribute.</li> </ol>
comments powered by Disqus