Jump to content

Back office hooks not being called, no logging from admin controllers

Recommended Posts



Admitting defeat on this one.  I have a custom module, works as expected in my dev environment but when I put it live, not all the hooks are being called.  It's confusing because some do.


For clarity:  All code is valid on server, all hooks have been correctly registered (checked via back office positions, and in the DB)


Full list of hooks below, but at the moment actionCustomerAccountAdd, and actionObjectCustomerUpdateAfter, are both called fine when I make a change via the front office.  They are not called when I make an edit via the back office, neither are actionProductAdd/Update. 


Seems to me that it's hooks called via the back office that aren't being called, although actionAdminControllerSetMedia is being called as the custom tab I have is being added to the product.


On top of this, I added some custom logging to the AdminProduct/CustomerControllers to see what was happening, and this is not being logged to file.  BUT, logging from my actionObjectCustomerUpdateAfter is (called via front office).  So it all points to a back office issue, but I cannot figure out what.


All in all, a confuddlement.  Any help will be greatly received.


Full list of hooks:


$this->registerHook('createAccount') &&
$this->registerHook('actionCustomerAccountAdd') &&
$this->registerHook('actionObjectCustomerUpdateAfter') &&
$this->registerHook('actionValidateOrder') &&
$this->registerHook('cancelOrder') &&
$this->registerHook('actionOrderStatusUpdate') &&
$this->registerHook('actionObjectProductUpdateAfter') &&
$this->registerHook('actionCarrierProcess') &&
$this->registerHook('displayAdminProductsExtra') &&
$this->registerHook('actionProductAdd') &&
$this->registerHook('actionAdminControllerSetMedia') &&
$this->registerHook('actionProductCancel') &&
$this->registerHook('updateProduct') &&

Link to comment
Share on other sites

Related?  I get a LOT of warnings when I go into the products admin section from back office:


Warning on line 1150 in file /home/xxx/public_html/classes/Tools.php
[2] preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid range in character class at offset 24

Edited by nhelliwell (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • Create New...