Jump to content

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists()


Tom1s

Recommended Posts

Quote

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/domains/public_html/src/Adapter/EntityMapper.php on line 99

Quote

 

(1/1) ContextErrorException

Notice: Trying to access array offset on value of type null

in scss.inc.php line 1754

at scssc->sortArgs()in scss.inc.php line 1714

at scssc->callBuiltin()in scss.inc.php line 1026

at scssc->reduce()in scss.inc.php line 680

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 420

at scssc->compileBlock()in scss.inc.php line 656

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 420

at scssc->compileBlock()in scss.inc.php line 656

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 420

at scssc->compileBlock()in scss.inc.php line 656

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 420

at scssc->compileBlock()in scss.inc.php line 656

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 1663

at scssc->importFile()in scss.inc.php line 609

at scssc->compileImport()in scss.inc.php line 640

at scssc->compileChild()in scss.inc.php line 512

at scssc->compileChildren()in scss.inc.php line 328

at scssc->compileRoot()in scss.inc.php line 128

at scssc->compile()in spthemeconfigurator.php line 258

at spthemeconfigurator->hookHeader()in Hook.php line 970

at HookCore::coreCallHook()in Hook.php line 359

at HookCore::callHookOn()in Hook.php line 907

at HookCore::exec()in FrontController.php line 556

at FrontControllerCore->initContent()in IndexController.php line 37

at IndexControllerCore->initContent()in Controller.php line 292

at ControllerCore->run()in Dispatcher.php line 515

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

 

 

Quote

Unknown error on the line 99 , file /home/domains/public_html/src/Adapter/EntityMapper.php
[8192] array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

Unknown error on the line 320 , file /home/domains/public_html/classes/module/Module.php
[8192] array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

 

After the release of the new update Prestashop 1.7.6.4
I have problems I can’t solve and I don’t know how.
I want help from you who understands and can help.

Link to comment
Share on other sites

  • 7 months later...
  • 2 months later...

In this case, please open file: public_html/src/Adapter/EntityMapper.php go to line code 99

Change from

if (array_key_exists($key, $entity_defs['fields']) || array_key_exists($key, $entity)) {

To
 if (isset($entity_defs['fields'][$key]) || isset($entity->{$key})) {

Save file and double test.

Link to comment
Share on other sites

10 hours ago, prestamonste said:

In this case, please open file: public_html/src/Adapter/EntityMapper.php go to line code 99

Change from

if (array_key_exists($key, $entity_defs['fields']) || array_key_exists($key, $entity)) {

To
 if (isset($entity_defs['fields'][$key]) || isset($entity->{$key})) {

Save file and double test.

There are 1064 matches with array_key_exists in PS 1.7.7.0. I think it's easier to downgrade PHP version than replacing all the coincidences 😋

  • Like 2
Link to comment
Share on other sites

  • 8 months later...

Hello good afternoon, I have the same error with PS 1.7.7.6 I lowered it to php7.2 because it had 7.4 but it still gives the same error and I cannot enter the order form, I need it to be able to print the shipping label

On 2/2/2021 at 12:14 PM, idnovate.com said:

There are 1064 matches with array_key_exists in PS 1.7.7.0. I think it's easier to downgrade PHP version than replacing all the coincidences 😋

 

Link to comment
Share on other sites

  • 1 year later...

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