Jump to content

Page blanche dans la console d'administration des modules


loki_13

Recommended Posts

[Résolu]

Bonjour,

 

Après avoir désinstallé/supprimé Paypal et réinstallé ce module j'ai une page blanche lorsque je veux voir les modules dans la console d'administration.

Si je supprime Paypal j'ai de nouveau accès à la liste des modules. Le problème c'est que j'ai besoins de ce module.

 

Ou peut-on telecharger une ancienne version de Paypal?

 

Voila l'erreur.

 

( ! ) Fatal error: Cannot make static method ModuleCore::display() non static in class PayPal in C:\wamp\www\prestashop\modules\paypal\paypal.php on line 1362 Call Stack # Time Memory Function Location 1 0.0018 754952 {main}( ) ..\index.php:0 2 0.2815 12380128 AdminModules->display( ) ..\index.php:114 3 0.2815 12380128 AdminModules->displayList( ) ..\AdminModules.php:371 4 0.2838 12380584 ModuleCore::getModulesOnDisk( ) ..\AdminModules.php:526

 

dans paypal.php

 

 

 

$domain = 'http://'.$domain;

return $domain;

}

 

/**

* getShopDomainSsl returns domain name according to configuration and depending on ssl activation

*

* @param boolean $http if true, return domain name with protocol

* @param boolean $entities if true,

* @return string domain

*/

public static function getShopDomainSsl($http = false, $entities = false)

{

if (!($domain = Configuration::get('PS_SHOP_DOMAIN_SSL')))

$domain = Tools::getHttpHost();

if ($entities)

$domain = htmlspecialchars($domain, ENT_COMPAT, 'UTF-8');

if ($http)

$domain = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').$domain;

return $domain;

}

 

public function display($file, $template, $cacheId = NULL, $compileId = NULL)

{

if (substr(_PS_VERSION_, 0, 3) != '1.3')

return parent::display($file, $template);

 

global $smarty;

$previousTemplate = $smarty->currentTemplate;

$smarty->currentTemplate = substr(basename($template), 0, -4);

$smarty->assign('module_dir', __PS_BASE_URI__.'modules/'.basename($file, '.php').'/');

if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.basename($file, '.php').'/'.$template))

{

$smarty->assign('module_template_dir', _THEME_DIR_.'modules/'.basename($file, '.php').'/');

$result = $smarty->fetch(_PS_THEME_DIR_.'modules/'.basename($file, '.php').'/'.$template);

}

elseif (Tools::file_exists_cache(dirname(__FILE__).'/'.$template))

{

$smarty->assign('module_template_dir', __PS_BASE_URI__.'modules/'.basename($file, '.php').'/');

$result = $smarty->fetch(dirname(__FILE__).'/'.$template);

}

else

$result = Tools::displayError('No template found');

$smarty->currentTemplate = $previousTemplate;

return $result;

}

 

} = ligne 1362

 

Merci pour votre aide.

Link to comment
Share on other sites

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...