Jump to content

Přechod na presta v1.7.x se mi nepodařil


Recommended Posts

Upgradoval jsem prestuna verzi 1.7.4 a administrace mi funguje, tedy alespoň z části, ale front neběží.

Zapnul jsem debug a administrace přestala fungovat taky.

Mohl by mi prosím někdo pomoci?

 

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
Edited by [email protected] (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 2 months later...

Tohle je výpis debugeru na stránkách:

(1/1) ContextErrorException

Runtime Notice: Declaration of BWDisplay::setTemplate() should be compatible with FrontControllerCore::setTemplate($template, $params = Array, $locale = NULL)

in Display.php
at ErrorHandler->handleError(2048, 'Declaration of BWDisplay::setTemplate() should be compatible with FrontControllerCore::setTemplate($template, $params = Array, $locale = NULL)', '/disk_1/www/cz/kralovehradeckybazarek/www/modules/ganalytics/backward_compatibility/Display.php', 0, array('this' => object(GAnalytics)))in backward.php line 38
at require_once()in backward.php line 38
at require('/disk_1/www/cz/kralovehradeckybazarek/www/modules/ganalytics/backward_compatibility/backward.php')in ganalytics.php line 50
at GAnalytics->__construct()
at ReflectionClass->newInstance()in Container.php line 130
at Container->makeInstanceFromClassName('ganalytics', array('ganalytics' => true))in Container.php line 163
at Container->doMake('ganalytics', array())in Container.php line 176
at Container->make('ganalytics')in ServiceLocator.php line 65
at ServiceLocator::get('ganalytics')in Module.php line 1137
at ModuleCore::coreLoadModule('ganalytics')in Module.php line 1116
at ModuleCore::getInstanceByName('ganalytics')in Hook.php line 880
at HookCore::exec('displayHeader')in FrontController.php line 555
at FrontControllerCore->initContent()in IndexController.php line 37
at IndexControllerCore->initContent()in Controller.php line 281
at ControllerCore->run()in Dispatcher.php line 509

at DispatcherCore->dispatch()in index.php line 28

 

A Tohle je výpis debugeru v administraci:

evel Channel Message
DEBUG 15:36:46 doctrine SELECT name FROM ps_module WHERE active = 1
INFO 15:36:46 request Matched route "admin_performance".
DEBUG 15:36:46 security Read existing security token from the session.
DEBUG 15:36:46 security User was reloaded from a user provider.
DEBUG 15:36:46 doctrine SELECT name FROM ps_module WHERE active = 1
DEBUG 15:36:47 doctrine SELECT * FROM ps_memcached_servers
DEBUG 15:36:47 doctrine SELECT * FROM ps_memcached_servers
CRITICAL 15:36:47 php Fatal Compile Error: Access level to Packetery::fetch() must be public (as in class ModuleCore)
CRITICAL 15:36:47 request Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Access level to Packetery::fetch() must be public (as in class ModuleCore)" at /disk_1/www/cz/kralovehradeckybazarek/www/modules/packetery/packetery.php line 0

 

Mohl byste mi prosím někdo poradit v čem je chyba?

Link to comment
Share on other sites

  • 5 weeks later...

Jsou to 2 různé chyby.

U první musí být ve třídě BWDisplay funkce setTemplate defonována jako setTemplate($template, $params = Array, $locale = NULL)

a ve druhé v souboru /modules/packetery/packetery.php musí být před funkcí fetch uvedeno "public function fetch".

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