internal fuel bug

edited August 2012 in Bug Reports
Basically the problem is that when you post a big content via the module which has the column(field) type 'text', all data in the admin panel(dashboard) gets rendered as html and crashes the whole dashboard by breaking layouts and so on.
I want to prevent showing content from being rendered as an html in the dash board.
The screenshots are attached.
http://shadestyles.dk/fuel_error.png
http://shadestyles.dk/html_ren.png

Comments

  • edited 2:54AM
    Look at the fuel/modules/fuel/models/blocks_model::list_items method as a way to deal with that.
  • edited 2:54AM
    Strange, but it did not helped, when I open some modules the fuel dashboard simple crashes. Any suggestions? Maybe I should specify different SQL columnt type for the big content?
  • edited August 2012
    For some reason it place the main_panel div into the fuel_left_panel, but I have honestly no ideas how to fix that
    The screen shots are included:
    http://shadestyles.dk/left_panel.png
    http://shadestyles.dk/main_panel.png
  • edited 2:54AM
    What did you change your list_items method to in your model?
  • edited August 2012
    I have added strip_tags() to content sql column in the model
  • edited 2:54AM
    Can you post your model please?

    I've got multiple versions of your problem working fine. This is not an internal fuel bug.
  • edited August 2012
    I fixed that by simple disabling in left panel "recent viewed" tab. And the problem vanished. Actually I got this problem even with older versions of the fuelCMS.


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

    require_once(FUEL_PATH.'models/base_module_model.php');
    class Contents_model extends Base_module_model {
    public $parsed_fields = array('content');
    function __construct()
    {
    parent::__construct('content');
    }
    function list_items($limit = NULL, $offset = NULL, $col = 'id', $order = 'desc')
    {
    $this->db->select('id,content,page', false);
    $data = parent::list_items($limit, $offset, $col, $order);
    foreach($data as $key => $val)
    {
    $data[$key]['content'] = strip_tags($val['content']);
    }
    return $data;
    }


    }

    class Content_model extends Base_module_record {

    }
  • edited 2:54AM
    Is the content field your display field? Pay to post your module config too.
Sign In or Register to comment.