We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Falling at the first hurdle: "Please check that the ‘hello_world’ module is installed..."

Development and Programming

Daniel H's avatar
Daniel H
197 posts
15 years ago
Daniel H's avatar Daniel H

I’m following the plugin dev tutorial, and I simply cannot make it work without returning the error:

“The following tag cannot be processed:

{exp:hello_world}

Please check that the ‘hello_world’ module is installed and that ‘hello_world’ is an available method of the module”

This is the code:

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Hello_world
{

    var $return_data = "";

  function __construct()
  {
    $this->EE =& get_instance();
  }

}
?>

in pi.hello_world.php, in the hello_world folder in third_party.

My template simply has “{exp:hello_world}”. I know the plugin is being executed, since if I echo or print_r anything in the constructor, it returns a value. Where am I going wrong?

Dan.

       
Natetronn's avatar
Natetronn
161 posts
15 years ago
Natetronn's avatar Natetronn
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Hello_world
{

    var $return_data = "";

  function __construct()
  {
    $this->EE =& get_instance();
  }

}
?> // <------------- Looks like you should remove the closing tag
       
Daniel H's avatar
Daniel H
197 posts
15 years ago
Daniel H's avatar Daniel H

Thanks but that doesn’t make a difference (nor do I understand why it would make a difference!).

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Untested but try this instead :

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Hello_world
{

    var $return_data = "";

  function Hello_world()
  {
    $this->EE =& get_instance();
  }

}
?>

Best wishes,

Mark

       
Natetronn's avatar
Natetronn
161 posts
14 years ago
Natetronn's avatar Natetronn

I just remembered why the PHP closing tag may make a difference. Just updating this for future reference.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.