Jump to content
thirty bees forum
  • 0

Updating to 1.06 - Error with "Address::isDeleted"


Question

Posted

I've just updated from 1.03 to 1.06 and whenever I try to checkout as a logged in user the following happens in debug mode: Fatal error: Call to undefined method Address::isDeleted() in /public_html/controllers/front/ParentOrderController.php on line 509

It also happens on line 517.

When I out comment the two lines, it works.

7 answers to this question

Recommended Posts

  • 0
Posted

@b_otho method Address::isDeleted was introduced in 1.0.4. Could you please verify that *all* files have been updated correctly - Simply open Configuration Information to see if there's any changed file. It is possible that updater could not update Address.php file, for example because of wrong owner or file permissions.

  • 0
Posted

@Peter: I don't believe I would be able to update to 1.0.6 without updating the updater.

@datakick: Dyou mean Advanced Parameters > Configuration Information? I cannot see that anything should be wrong.

  • 0
Posted

@datakick said in Updating to 1.06 - Error with "Address::isDeleted":

@b_otho said in Updating to 1.06 - Error with "Address::isDeleted":

Dyou mean Advanced Parameters > Configuration Information? I cannot see that anything should be wrong.

If there are no changed files listed than it should definitely work -- the only other explanation is that the php APC cache wasn't flushed, so it's still uses the original php file.

I just tried clearing APC cache through the module. Didn't help.

  • 0
Posted

@b_otho said in Updating to 1.06 - Error with "Address::isDeleted":

I just tried clearing APC cache through the module. Didn’t help.

Please open file classes/Address.php and ensure that it contains method isDeleted, it should be somewhere around the line 385.

``` public static function isDeleted($idAddress) { $row = Db::getInstance(PSUSESQLSLAVE)->getRow( (new DbQuery()) ->select('a.deleted') ->from(bqSQL(Address::$definition['table']), 'a') ->where('id_address = '.(int) $idAddress) ); if (!isarray($row) || !isset($row['deleted'])) { return true; }

    return (bool) $row['deleted'];
}

```

If the method is there (as it should, otherwise this file should be mentioned in Changed files list), then the issue really must be with the php cache.

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