Menu

MobiForms - Layout default not found

Help
2012-03-16
2013-04-24
  • David Pottier

    David Pottier - 2012-03-16

    Joomla 2.53
    MobiForms 2.0.2

    Clean install,
    Options set
    Category created

    MobiForms - Add New
    returns
    500 - An error has occurred.
    Layout default not found

    Uninstalled, re-installed - same error

     
  • Murray Green

    Murray Green - 2012-03-28

    I got the same message.  Lets us know if you found the solution.
    Same versions, Joomla 2.53 MobiForms 2.0.2

     
  • ZoPi

    ZoPi - 2012-04-07

    The answer to this problem is rather simple, they have made a mistake in Admninistrator/com_mobiforms/views/mobiform/view.html.php. In this file you only have to change this part:
    protected $state = null; // ZoPi: = null is better programming, its not a must.
    protected $item = null;
    protected $form = null;

    function display($tpl = null)
    {
    $this->state = & $this->get('State'); // ZoPi 2012/4/8: & added (by reference and overload operator) to get the right information
    $this->item = & $this->get('Item');
    $this->form = & $this->get('Form');

    // Check for errors.
    if (count($errors = $this->get('Errors'))) {
    JError::raiseError(500, implode("\n", $errors));
    return false;
    }

    $this->addToolbar();

    parent::display($tpl);
    }

    The rest can stay as is.

     
  • Magnus Häggström

    Hi,

    Thanks for finding that bug.

    I created a ticket here: http://sourceforge.net/apps/trac/visitas/ticket/341

    Regards
    // Magnus

     
  • Anonymous

    Anonymous - 2012-10-24

    hi everybody! i have the same error, i am on version 2.57 but the suggested fix didnt work for me. any tipps? thank you

     
  • Bitminer

    Bitminer - 2012-11-21

    Joomla 2.5.7
    MobiForms 2.0.2

    Made changes per Zopi12 suggestions and the issue still exists

    Add New returns 500 - An error has occurred. Layout default not found

     

Log in to post a comment.