Jump to content
X2Community Forums

PHP Fatal error Call to a member function getUrl() Events.php


Recommended Posts


Environmental Info

  • Apache version 2.2.15
  • PHP version 5.4.43
  • X2Engine version 6.5.2
  • X2CRM Version 6.5.2

Issue Description

I receive this PHP Fatal Error (Internal Server Error 500) on various pages (main feed page, when adding an action with a calendar assignment on the contact page, etc). The page loads fine (there is no visual feedback on the page itself, however, in looking at the server logs and the Java Console, I can see that it is failing.  Very specifically, if I click on a contact and then create an action for that contact with a calendar assignment, when I click the SUBMIT button, nothing happens. In digging around I see the info contained below. All page errors point to the same PHP file, but I just can't figure it out!

 

Please help!

 

Apache Error Log (showing multiple pages, same error)

[Thu Jan 19 21:57:39 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/133

[Thu Jan 19 22:15:15 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in/protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/profile/activity

[Thu Jan 19 22:17:27 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/id/132

[Thu Jan 19 22:18:17 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/profile/activity

[Thu Jan 19 22:18:38 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/calendar/index

[Thu Jan 19 22:18:55 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/calendar/update/id/2

[Thu Jan 19 22:19:06 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/calendar

[Thu Jan 19 22:19:24 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/accounts/index

[Thu Jan 19 22:19:32 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/marketing/index

[Thu Jan 19 22:21:28 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/index

[Thu Jan 19 22:21:35 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/lists

[Thu Jan 19 22:23:41 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/list/id/2

[Thu Jan 19 22:23:55 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/updateList/id/2

[Thu Jan 19 22:24:11 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/list/id/2

[Thu Jan 19 22:24:45 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/contacts/list/id/2

[Thu Jan 19 22:25:32 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/profile/3

[Thu Jan 19 22:25:41 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/profile/activity

[Thu Jan 19 22:26:12 2017] [warn] [client 192.168.3.1] mod_fcgid: stderr: PHP Fatal error:  Call to a member function getUrl() on a non-object in /protected/models/Events.php on line 307, referer: http://www.castrarealty.com/subjects/index.php/profile/activity

 

 

Java Console Details

Navigated to http:/ /www.castrarealty.com/ subjects/index.php/profile/3             jquery.min.js?1482441776:4

 

GET http:/ /www.castrarealty.com/ subjects/index.php/notifications/get?lastNotifId=0&lastEventId=0&lastTimestamp=0 500 (Internal Server Error)

 

send @ jquery.min.js?1482441776:4

 

ajax @ jquery.min.js?1482441776:4

 

$.ajax @ jQueryOverrides.js?1482441776:72

 

x2.Notifs._getUpdates @ notifications.js?1482441776:423

 

x2.Notifs._checkMasterId @ notifications.js?1482441776:356

 

x2.Notifs._setUpNotifRetrieval @ notifications.js?1482441776:166

 

x2.Notifs._run @ notifications.js?1482441776:138

 

x2.Notifs @ notifications.js?1482441776:71

 

(anonymous) @ 3:5896

 

j @ jquery.min.js?1482441776:2

 

fireWith @ jquery.min.js?1482441776:2

 

ready @ jquery.min.js?1482441776:2

 

J @ jquery.min.js?1482441776:2
Link to post
Share on other sites

Hello,

 

Have you tried signing into a different user and doing the same tasks? Your error seems to have to do with the user object, so that may be the issue.

 

First, thank you for your help!

 

I tried a different user and it worked correctly. To fix the issue, I deleted the user with the issue and then recreated them. The error seems to have gone away.

 

So now the question would be, what could CAUSE that to happen? All users were created exactly the same.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...