GitHub PR

edited July 2016 in Bug Reports
Made a PR to the Form module on GitHub to fix the error
A PHP Error was encountered

Severity: Compile Error

Message: Cannot redeclare class Base_module_model

Filename: models/base_module_model.php


  • edited 6:27AM
    A few questions:

    1. What version of FUEL are you running (check the fuel/modules/fuel/config/fuel_constants.php file for the FUEL_VERSION constant)?
    2. Does the problem go away if you don't include the forms module in the $config['modules_allowed'] array in the MY_fuel.php config?
    3. Is the fuel/modules/fuel/models/Base_module_model.php file uppercase or lowercase the "B"?
  • edited July 2016
    Using Fuel 1.4

    In the form module models it uses require_once(FUEL_PATH.'models/base_module_model.php');

    The errors go away when changing it to require_once(FUEL_PATH.'models/Base_module_model.php');
  • edited 6:27AM
    Yeah, it was an alternative proposal to my PR to keep it backwards compatible. I posted here after making the PR, because I wasn't sure if it was going to go unnoticed.
Sign In or Register to comment.