Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => Installazione, migrazione e aggiornamento => : andry11 24 May 2011, 15:50:53

: spl_autoload_unregister
: andry11 24 May 2011, 15:50:53
Ciao a tutti ragazzi,
oggi stavo caricando un sito su un provider che usa "PHP Version 5.0.4".... carico tutto da ftp, faccio il dump del sql.. vado a fare il test.. e mi spunta quet'errore...:


Fatal error: Call to undefined function spl_autoload_unregister() in
/var/www/vhosts/nomedominio.it/new/plugins/system/shsef.php on line 224

La funzione che mi da errore è questa:

:
/**
   * Register our autoloader function with PHP
   */
  function _registerAutoloader() {

    // get Joomla autloader out
    spl_autoload_unregister("__autoload");

    // add our own
    include JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_sh404sef' . DS . 'helpers' . DS . 'autoloader.php';
    $registered = spl_autoload_register(array('Sh404sefAutoloader', 'doAutoload'));

    // stitch back Joomla's at the end of the list
    if(function_exists("__autoload")) {
      spl_autoload_register("__autoload");
    }

  }

}


E fa riferimento al plugin sh404sef.. spero in un vostro riscontro.
Grazie,
buona giornata