raltunyuva Posted July 12, 2020 Share Posted July 12, 2020 When I try to enter the Admin Panel: 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. I get this error. This error occurred after installing a theme. This is the first time I'm making a website. PHP Version: 7.2 PrestaShop Version: 1.7.6.7 Link to comment Share on other sites More sharing options...
Razi Posted July 13, 2020 Share Posted July 13, 2020 Kindly Open config/defines.inc.php file On line 28, you will find this line: define('_PS_MODE_DEV_', false); Replace it with: define('_PS_MODE_DEV_', true); after this you see the 500 error detail 4 3 Link to comment Share on other sites More sharing options...
raltunyuva Posted July 13, 2020 Author Share Posted July 13, 2020 6 hours ago, Razi said: Kindly Open config/defines.inc.php file On line 28, you will find this line: define('_PS_MODE_DEV_', false); Replace it with: define('_PS_MODE_DEV_', true); after this you see the 500 error detail Thank you very much for your reply, I saw that the problem is from a module and I deleted the module. Thanks again. 1 Link to comment Share on other sites More sharing options...
Razi Posted July 13, 2020 Share Posted July 13, 2020 Thanks You can give a like by clicking on the gray heart below the posts. 1 Link to comment Share on other sites More sharing options...
raltunyuva Posted July 13, 2020 Author Share Posted July 13, 2020 4 hours ago, Razi said: Thanks You can give a like by clicking on the gray heart below the posts. Now I am getting the following errors when I switch to Payment (1/1) ContextErrorException Notice: Trying to get property 'link_rewrite' of non-object in ps_legalcompliance.php line 783 at Ps_LegalCompliance->hookTermsAndConditions(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970 at HookCore::coreCallHook(object(Ps_LegalCompliance), 'hooktermsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355 at HookCore::callHookOn(object(Ps_LegalCompliance), 'termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907 at HookCore::exec('termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null, true)in ConditionsToApproveFinder.php line 64 at ConditionsToApproveFinderCore->getConditionsToApprove()in ConditionsToApproveFinder.php line 104 at ConditionsToApproveFinderCore->getConditionsToApproveForTemplate()in CheckoutPaymentStep.php line 85 at CheckoutPaymentStepCore->render(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52 at RenderableProxy->render(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98 at smartyRender(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-payment-step', 'position' => 4, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 13234f88bcbe8d40f5b899a52bb70b875d30e6f0_2.file.checkout-process.tpl.php line 28 at content_5f0caef3a9fc77_35673341(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch()in CheckoutProcess.php line 112 at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52 at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98 at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 31a9223b24ea9fc96fa98e0d1d517ebd54f42514_2.file.checkout.tpl.php line 178 at Block_5585935095f0caef38a8802_93608537->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_5585935095f0caef38a8802_93608537), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_5585935095f0caef38a8802_93608537))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_5585935095f0caef38a8802_93608537', 'cart_summary', 4)in 31a9223b24ea9fc96fa98e0d1d517ebd54f42514_2.file.checkout.tpl.php line 217 at Block_19384949625f0caef38a7f67_78355071->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19384949625f0caef38a7f67_78355071), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19384949625f0caef38a7f67_78355071))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19384949625f0caef38a7f67_78355071', 'content')in 31a9223b24ea9fc96fa98e0d1d517ebd54f42514_2.file.checkout.tpl.php line 71 at content_5f0caef38b2a20_68417038(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/checkout.tpl')in 4a7fadb89c0600e5e8f15ffe6628b0330c317377_2.file.hookDisplayOverrideTemplateFooter.tpl.php line 31 at content_5f0caef387b633_09073699(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
Razi Posted July 14, 2020 Share Posted July 14, 2020 This error is come from module Legal Compliance. kindly disable this module and test again. Link to comment Share on other sites More sharing options...
carinac Posted July 14, 2020 Share Posted July 14, 2020 On 7/13/2020 at 12:23 AM, Razi said: Kindly Open config/defines.inc.php file On line 28, you will find this line: define('_PS_MODE_DEV_', false); Replace it with: define('_PS_MODE_DEV_', true); after this you see the 500 error detail I did this, but I am not sure what I am looking for after I do this? Link to comment Share on other sites More sharing options...
carinac Posted July 14, 2020 Share Posted July 14, 2020 I got this Whoops, looks like something went wrong. (1/1) IOException Cannot rename "/home/doorsh5/virutexparts.com/var/cache/dev/ContainerVhnuanl/getPrestashop_Core_Import_FieldsProvider_CategoryService.phphCsAjb" to "/home/doorsh5/virutexparts.com/var/cache/dev/ContainerVhnuanl/getPrestashop_Core_Import_FieldsProvider_CategoryService.php". in Filesystem.php line 289 at Filesystem->rename('/home/doorsh5/virutexparts.com/var/cache/dev/ContainerVhnuanl/getPrestashop_Core_Import_FieldsProvider_CategoryService.phphCsAjb', '/home/doorsh5/virutexparts.com/var/cache/dev/ContainerVhnuanl/getPrestashop_Core_Import_FieldsProvider_CategoryService.php', true)in Filesystem.php line 694 at Filesystem->dumpFile('/home/doorsh5/virutexparts.com/var/cache/dev/ContainerVhnuanl/getPrestashop_Core_Import_FieldsProvider_CategoryService.php', '<?phpuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.// Returns the public \'prestashop.core.import.fields_provider.category\' shared service.return $this->services[\'prestashop.core.import.fields_provider.category\'] = new \\PrestaShop\\PrestaShop\\Core\\Import\\EntityField\\Provider\\CategoryFieldsProvider(${($_ = isset($this->services[\'translator\']) ? $this->services[\'translator\'] : $this->getTranslatorService()) && false ?: \'_\'});')in Kernel.php line 862 at Kernel->dumpContainer(object(ConfigCache), object(ContainerBuilder), 'appDevDebugProjectContainer', 'Container')in Kernel.php line 659 at Kernel->initializeContainer()in Kernel.php line 135 at Kernel->boot()in Kernel.php line 195 at Kernel->handle(object(Request), 1, false)in index.php line 86 Link to comment Share on other sites More sharing options...
carinac Posted July 14, 2020 Share Posted July 14, 2020 and this (1/1) ContextErrorException Warning: Invalid argument supplied for foreach() in PATools.php line 789 at PATools::assignAttributesGroupsPs17(null, false)in productarrangement.php line 1421 at ProductArrangement->assignSmartyPa(array(object(Product)), 'CategoryController')in productarrangement.php line 1257 at ProductArrangement->hookDisplayOverrideTemplate(array('controller' => object(CategoryController), 'template_file' => 'catalog/listing/category', 'id' => 8, 'locale' => 'en-US', 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970 at HookCore::coreCallHook(object(ProductArrangement), 'hookDisplayOverrideTemplate', array('controller' => object(CategoryController), 'template_file' => 'catalog/listing/category', 'id' => 8, 'locale' => 'en-US', 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355 at HookCore::callHookOn(object(ProductArrangement), 'DisplayOverrideTemplate', array('controller' => object(CategoryController), 'template_file' => 'catalog/listing/category', 'id' => 8, 'locale' => 'en-US', 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907 at HookCore::exec('DisplayOverrideTemplate', array('controller' => object(CategoryController), 'template_file' => 'catalog/listing/category', 'id' => 8, 'locale' => 'en-US', 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in FrontController.php line 1392 at FrontControllerCore->getTemplateFile('catalog/listing/category', array('entity' => 'category', 'id' => 8), 'en-US')in FrontController.php line 1293 at FrontControllerCore->setTemplate('catalog/listing/category', array('entity' => 'category', 'id' => 8), null)in ProductListingFrontController.php line 584 at ProductListingFrontControllerCore->doProductSearch('catalog/listing/category', array('entity' => 'category', 'id' => 8))in CategoryController.php line 137 at CategoryControllerCore->initContent()in Controller.php line 292 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2020 Share Posted July 15, 2020 (edited) Problem is in Product Arrangement Module. Contact the module developer. Edited July 15, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
africanjames Posted May 28, 2021 Share Posted May 28, 2021 (edited) I have spent the whole week working on this store the back end failed to load so I followed instructions above and i got the error shown below I have no idea what to do next? front end has crashed aswell https://shop.princesssoaps.com.au/ back end https://shop.princesssoaps.com.au/james site settings/index.php?controller=AdminModules&configure=ps_customtext&token=b7cf779b67612016d54954fbeb2c6e33 Quote Replace it with: define('_PS_MODE_DEV_', true); Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Whoops, looks like something went wrong. (1/1) RuntimeException Failed to start the session because headers have already been sent by "/home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php" at line 99. in NativeSessionStorage.php line 145 at NativeSessionStorage->start()in Session.php line 57 at Session->start()in SessionTokenStorage.php line 78 at SessionTokenStorage->hasToken('https-ANONYMOUS_USER')in CsrfTokenManager.php line 72 at CsrfTokenManager->getToken('ANONYMOUS_USER')in Router.php line 64 at Router->generate('admin_orders_index', array(), 0)in LegacyUrlConverter.php line 92 at LegacyUrlConverter->convertByParameters(array())in Link.php line 822 at LinkCore->getAdminLink('AdminOrders')in Link.php line 851 at LinkCore->getTabLink(array('id_tab' => '4', 'id_parent' => '3', 'position' => '0', 'module' => null, 'class_name' => 'AdminOrders', 'route_name' => null, 'active' => '1', 'enabled' => '1', 'hide_host_mode' => '0', 'icon' => '', 'name' => 'Orders'))in AdminController.php line 2099 at AdminControllerCore->getTabs('3', 2)in AdminController.php line 2100 at AdminControllerCore->getTabs('2', 1)in AdminController.php line 2100 at AdminControllerCore->getTabs()in AdminController.php line 1969 at AdminControllerCore->initHeader()in AdminLoginController.php line 156 at AdminLoginControllerCore->initContent()in Controller.php line 306 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 93 then i tried again and got this error Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/james867/shop.princesssoaps.com.au/src/Adapter/EntityMapper.php on line 99 Edited May 28, 2021 by africanjames (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted May 28, 2021 Share Posted May 28, 2021 https://www.prestashop.com/forums/topic/1020155-deprecated-array_key_exists-using-array_key_exists-on-objects-is-deprecated-use-isset-or-property_exists/ Link to comment Share on other sites More sharing options...
ethelwulf13 Posted May 1, 2023 Share Posted May 1, 2023 On 7/13/2020 at 3:23 AM, Razi said: Kindly Open config/defines.inc.php file On line 28, you will find this line: define('_PS_MODE_DEV_', false); Replace it with: define('_PS_MODE_DEV_', true); after this you see the 500 error detail thank you very much! 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