If the button Upload Media is used, this function 'media_manager' calls the popup uploadimage.php which itself calls the josSpoofValue().

But if this is done, following error comes from the function josSpoofValue():
Fatal error: Call to a member function getCfg() on a non-object in xxxx\includes\joomla.php on line yyyy.

The line is: $validate = 'j' . mosHash( $mainframe->getCfg( 'db' ) . $random . $my->id );

The error comes because $mainframe->getCfg( 'db' ) is called not as object.
Would that be instead:

$validate = 'j' . mosHash( mosMainFrame::getCfg( 'db' ) . $random . $my->id );

the function works as it should.
Opened On:
20 Sep 2008, 14:22 by mic p.

Filed Under

  • Administrator
  • Apache 2.2.x
  • Authentication & Login
  • Firefox 2.x
  • MySQL 5.2.x
  • PHP 5.2.x