# Call to a member function event() on null

**URL:** <https://discourse.cakephp.org/t/call-to-a-member-function-event-on-null/6066>\
**Category:** Need Help\
**Created:** [May 10, 2019, 8:59am UTC](https://discourse.cakephp.org/t/call-to-a-member-function-event-on-null/6066 "2019-05-10T08:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajan\_airbus](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@rajan\_airbus](https://discourse.cakephp.org/u/rajan_airbus)\
**Post date:** [May 10, 2019, 8:59am UTC](https://discourse.cakephp.org/t/call-to-a-member-function-event-on-null/6066/1 "2019-05-10T08:59:25Z")

</div>

Hi,  
I am migrate my cakephp1.3 to 2.9 and I am rename ajax helper to AjaxHelper and javascript helper to JavascriptHelper.i want to used same helper in my form section.  
Form is working fine.But the problem is when I sent Ajax request in AjaxHepler file its give the **error “Call to a member function event() on null”.**  
Please help I want to used same helper in my application.
