KimTech Posted March 19, 2020 Share Posted March 19, 2020 Witam korzystam z wersji 1.7.3 i pojawił się problem przy logowaniu do panelu administratora Got error 'Primary script unknown', referer: https://moja_domena/adminxxxxx/index.php/sell/catalog/products/18?_token= i teraz jest komunikat mam Serwer moja_strona_www nie może teraz obsłużyć tego żądania. HTTP ERROR 500 zastanawiam się czy jest w bazie danych ten token gdzieś żebym mógł go ręcznie usunąć? poza tym nie mogę znaleźć katalogu sell ani catalog skąd w komunikacie taka ścieżka ? Dziękuję za wszelką pomoc. P.S. wersja PHP 7.3 Link to comment Share on other sites More sharing options...
endriu107 Posted March 19, 2020 Share Posted March 19, 2020 Zmień wersję PHP na niższą. Link to comment Share on other sites More sharing options...
KimTech Posted March 19, 2020 Author Share Posted March 19, 2020 Witam. Dziękuję za odpowiedź - niestety to nie pomaga. Wyłączyłem tryb debugowania wczoraj i nie wiem czy to nie spowodowało tych nieprawidłowości. ale teraz nie mam szans włączyć chyba ?? bo jak się mogę dostać do panelu admina ? Link to comment Share on other sites More sharing options...
endriu107 Posted March 19, 2020 Share Posted March 19, 2020 Twoja wersja presty na pewno nie współpracuje poprawnie z php 7.3 to po pierwsze, po drugie tryb debugowania można włączyć edytując pliki: Link to comment Share on other sites More sharing options...
KimTech Posted March 19, 2020 Author Share Posted March 19, 2020 Coś się mieniło Teraz otrzymałem: Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/xxxxxx/src/Adapter/EntityMapper.php on line 99 ContextErrorException Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxx/src/Adapter/EntityMapper.php:99) in Tools.php line 249 at ToolsCore::redirectAdmin('index.php?controller=AdminDashboard&token=7fbb8ba268864c1c67b7a8bd5a11f49c')in Dispatcher.php line 419 at DispatcherCore->dispatch()in index.php line 97 Link to comment Share on other sites More sharing options...
KimTech Posted March 19, 2020 Author Share Posted March 19, 2020 zmieniłem zgodnie z zaleceniem w komunikacie i teraz wywaliło: Quote (1/1) ContextErrorException Warning: property_exists() expects parameter 2 to be string, object given in EntityMapper.php line 99 at EntityMapper->load(14, null, object(Country), array('table' => 'country', 'primary' => 'id_country', 'multilang' => true, 'fields' => array('id_zone' => array('type' => 1, 'validate' => 'isUnsignedId', 'required' => true), 'id_currency' => array('type' => 1, 'validate' => 'isUnsignedId'), 'call_prefix' => array('type' => 1, 'validate' => 'isInt'), 'iso_code' => array('type' => 3, 'validate' => 'isLanguageIsoCode', 'required' => true, 'size' => 3), 'active' => array('type' => 2, 'validate' => 'isBool'), 'contains_states' => array('type' => 2, 'validate' => 'isBool', 'required' => true), 'need_identification_number' => array('type' => 2, 'validate' => 'isBool', 'required' => true), 'need_zip_code' => array('type' => 2, 'validate' => 'isBool'), 'zip_code_format' => array('type' => 3, 'validate' => 'isZipCodeFormat'), 'display_tax_label' => array('type' => 2, 'validate' => 'isBool', 'required' => true), 'name' => array('type' => 3, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64)), 'associations' => array('zone' => array('type' => 1), 'currency' => array('type' => 1), 'l' => array('type' => 2, 'field' => 'id_country', 'foreign_field' => 'id_country')), 'classname' => 'Country'), 1, true)in ObjectModel.php line 264 at ObjectModelCore->__construct(14)in AdminController.php line 2957 at AdminControllerCore->initShopContext()in AdminController.php line 531 at AdminControllerCore->__construct()in LegacyContext.php line 85 at LegacyContext->getContext()in UserLocaleListener.php line 39 at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 2384 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2871 at appDevDebugProjectContainer->ContainerD2y4hjg\{closure}()in EventDispatcher.php line 229 at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61 at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128 at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262 at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 86 Link to comment Share on other sites More sharing options...
KimTech Posted March 19, 2020 Author Share Posted March 19, 2020 Przepraszam mam wersję presty 1.7.6.3 Link to comment Share on other sites More sharing options...
KimTech Posted March 19, 2020 Author Share Posted March 19, 2020 Ok. Działa już wszystko. Właściwie nie wiem dlaczego działa ale działa poprawiłem najpierw w pliku EntityMapper potem pliku definces.inc.php define('_PS_MODE_DEV_', true); i z kolei z powrotem EntityMapper cofnałem jak było pierwotnie i jest ok . najważniejsze że działa Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now