Jump to content

problema de novato


robertocct

Recommended Posts

Buenas a todos, he instalado prestashop con xampp en el ordenador y cuando quiero entrar en al carpeta admin desde el explorador con la direccion: localhost/prestashop/admin, me da el siguiente error:

fatal error exception in admindashboardcontroller.php linea 539

compile error: declaration of admindashboardcontrollercore::setmedia() must be compatible with adminControllerCore::setMetia($isnewTheme=false)

Alguien puede ayudarme?

Link to comment
Share on other sites

buenas,
Mira si el archivo "/controllers/admin/AdminDashboardController.php" la funcion setMedia() esta bien escrita.
debe de ser: 

 

 public function setMedia($isNewTheme = false)
    {
        parent::setMedia($isNewTheme);
        $this->addJqueryUI('ui.datepicker');
        $this->addJS(array(
            _PS_JS_DIR_.'vendor/d3.v3.min.js',
            __PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/nv.d3.min.js',
            _PS_JS_DIR_.'/admin/dashboard.js',
        ));
        $this->addCSS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/css/vendor/nv.d3.css');
    }

 

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...