Jump to content

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

Migrated to Another Server And Gives an Hook Error Rate Topic   - - - - -

 
  • sertaconay
  • Member
  • Members
  • Join Date: 29-Dec 11
  • 18 posts

Posted 22 March 2013 - 01:57 PM #1

Hello.

I migrated my store to another server and it gives an error.
First error was "Hook fn_access_restrictions_user_init is not callable". I renamed access_restrictions addon to something else and that error gone. But then it gave an different error

Hook fn_random_products_get_blocks is not callable

I searched it and there was no result and i decided to ask it in the forum. I cleared files in var/cache and var/compiled but no luck. Why is it happening?


 
  • sertaconay
  • Member
  • Members
  • Join Date: 29-Dec 11
  • 18 posts

Posted 22 March 2013 - 02:46 PM #2

I renamed random_products module and that error gone but i have another error.

Fatal error: Call to undefined function fn_top_menu_form() in /home/globalsa/public_html/controllers/customer/init.php on line 64


 
  • sertaconay
  • Member
  • Members
  • Join Date: 29-Dec 11
  • 18 posts

Posted 22 March 2013 - 03:25 PM #3

I replaced controller file with the backup and all done. Thanks.

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

Posted 23 March 2013 - 06:49 AM #4

I'm guessing you have permissions/ownership issues left over from your move. Each of those addons will have a fn_register_hooks() function in the init.php file in their directories. Usually those functions are defined in the func.php file.

So it would seem that the init.php file is able to be read but either the func.php files don't exist or there are permissions issues where it can't be read.

Contact your hosting provider and ask them for help in straightening out your ownerships/permissions based on the mode PHP runs in only your server (DSO or suPHP).

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.


 
  • sertaconay
  • Member
  • Members
  • Join Date: 29-Dec 11
  • 18 posts

Posted 25 March 2013 - 08:02 AM #5

Unfortunately, i was the hosting provider. ( :

Thank you for your reply.