Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Urgent Site Completely Down Hook Not Callable Rate Topic   - - - - -

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4641 posts

Posted 19 August 2019 - 03:06 PM #1

Had issues installing an addon and now this, can anyone help please. Cant access admin to uninstall addon or access front end.

 

JOhn

 

 

Hook fn_product_stickers_dispatch_assign_template is not callable

 

 

Tygh\Exceptions\AException Message

Hook fn_product_stickers_dispatch_assign_template is not callable

Error at

app/functions/fn.control.php, line: 140

Backtrace File: app/functions/fn.control.php Line: 453 Function: fn_set_hook File: index.php Line: 25 Function: fn_dispatch


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3829 posts

Posted 19 August 2019 - 03:39 PM #2

Disable the addon in the data base table cscart_addons.



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 852 posts

Posted 19 August 2019 - 03:59 PM #3

Hello

 

Add this function to the /app/addons/product_stickers/func.php file
function fn_product_stickers_dispatch_assign_template ($ controller, $ mode, $ area, $ controllers_cascade)
{
      return true;
}
 
Best regards
Robert

Team of SoftSolid
cs-cart.pl

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11362 posts

Posted 19 August 2019 - 04:09 PM #4

Or comment out the 'dispatch_assign_template' line in the fn_register_hooks() call in app/addons/product_stickers/init.php

 

Or contact the supplier of 'product_stickers' and have them help you with their code.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4641 posts

Posted 19 August 2019 - 04:25 PM #5

Thanks for the replies, none seemed to work each time I just get the errors or more back.

Its the conflict between the 2 same type of addon as far as we can tell. The only thing that works is renaming the directory in

app/addons

 

Then the front end works fine with no errors reported and we get the 404 screenshot below, on each page change in the admin and when logged in as root user we can process orders (but not any other user),

so it is useable for now and Im waiting for the developer of the new addon to get rid of the old devs addon and install the new one .

 

but at least Im back open and taking orders,

 

https://prnt.sc/oupo80

 

Same old story, I should have installed on dev first :)


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4641 posts

Posted 20 August 2019 - 08:05 AM #6

Thanks for the replies Quick run down,if anyone else is silly enough to do similar :)

.

 

I installed a product stickers addon whilst having and older version from another company disabled.

This caused some conflicts somewhere, and the new dev renamed the func file of the old addon which seemed to work, but when trying to use the addon not all parts worked, (adding stickers manually) 

I uninstalled and reinstalled in admin, and this is what caused the site to go completely front end and back end, )Previoulsy it was just back end and we could cope with that till a fix)

 

Everytime I tried one of your replies above the service error still appeared.

 

I went though all the directories on the server of the old addon and remaned the old one in apps/addons to something else. 
 

This got the front and back working but with the 404 error like above.

 

So I duplicated the whole site to my dev zipped up all the old addon files and deleted them, reinstalled the new companies addon and it worked. (note it didnt upload and work via admin upload correctly, I had to manually unzip files via ftp)

 

All seems well, and I like the new addon, very flexible.

 

I think in general, make sure you uninstall all previous similar addon, if using a new one, and not just disable. 

 

JOhn


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2