Project Module from the Tutorial (http://localhost/showcase/project/{slug}) - Page Not Found

edited June 2016 in Modules
Hi everyone,

Hope you could help. I've followed the guide with the module tutorial. Which works fine, except it doesn't display the projects on the front end.

I've created a test project, but when I click on view, I get the infamous Error 404.

As in another discussion, enabling ['auto_search_views'] helped someone, but doesn't work for me.

There are no additional functions or lines of code in my module, besides the instructed ones.

Any ideas on what could be wrong?

Comments

  • edited June 2016
    Hi, you probably should add entry to MY_fuel_modules:
    $config['modules']['projects'] = array(
    'preview_path' => 'project/{slug}',
    'model_location' => '',
    ... ... ... ...
    );

    and then create a view file project.php with opt-in controller logic like in the docs:
    http://docs.getfuelcms.com/modules/tutorial#views

    also, you could try to change fuel_mode in MY_fuel.php to auto or views:
    $config['fuel_mode'] = 'auto';
  • edited 2:19PM
    Thanks Andrew,

    I've followed your suggestions, but the CMS seems to get into a loop. I've tried all 4 ways(separately) for FUEL to find the view. Every time I get the following:

    PHP Fatal error: Out of memory (allocated 452984832) (tried to allocate 443809792 bytes) in \fuel\modules\fuel\core\Loader.php(351) : eval()'d code on line 8

    If I don't have any of them enabled, I get 404.
  • edited 2:19PM
    I've downloaded the example of the module and everything is fine. I must of messed up somewhere when was going through the tutorial.
Sign In or Register to comment.