Media manager error in Joomla 1.5.13 PDF Print E-mail
Written by Adam   
Thursday, 30 July 2009 19:08

When I open media manager menu in new joomla 1.5.13 its shown error

Fatal error: Call to a member function authorize() on a non-object in /home/xxxxxx/public_html/administrator/components/com_media/views/media/tmpl/default.php on line 64

Its never happen to my old joomla 1.5.6 site. I found it on the net it was bug carried on this version.

This how to fix it

  1. open this file /public_html/administrator/components/com_media/views/media/view.html.php
  2. edit this line
  3. $this->assign('require_ftp', $ftp);
    $this->assign('folders_id', ' id="media-tree"');
    $this->assign('folders', $this->get('folderTree'));

    // Set the toolbar
    $this->_setToolBar();

    Change it into this one

    $this->assign('require_ftp', $ftp);
    $this->assign('folders_id', ' id="media-tree"');
    $this->assign('folders', $this->get('folderTree'));

    $user =& JFactory::getUser();
    $this->assignRef('user', $user);

    // Set the toolbar
    $this->_setToolBar();

  4. save your edited file

or you can replace the file with this one here

 

Add comment


Security code
Refresh