Jump to content
xhoraka@gmail.com

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 xhoraka@gmail.com (see edit history)

Share this post


Link to post
Share on other sites

Zapněte v administraci na stránce výkonu Debug a měl by se zobrazit důvod chyby / hláška čeho se chyba týká.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More