{"id":1118,"date":"2010-10-19T09:09:13","date_gmt":"2010-10-19T13:09:13","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1118"},"modified":"2013-03-20T08:43:57","modified_gmt":"2013-03-20T12:43:57","slug":"drupal-php-fatal-error-call-to-undefined-function-user_access","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/drupal-php-fatal-error-call-to-undefined-function-user_access","title":{"rendered":"Drupal: PHP Fatal error: Call to undefined function user_access()"},"content":{"rendered":"<p>An update\/upgrade on the existing Drupal website may result in a following error message on the website:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">\"PHP Fatal error:\u00a0 Call to undefined function user_access() <\/span>\r\n <span style=\"color: #0000ff;\">in \/home\/user\/modules\/ad\/ad.module on line xxx\"<\/span><\/pre>\n<\/blockquote>\n<p>The solution is to update a &#8220;status&#8221; entry in the Drupal Database. Access your Drupal database either from the Mysql prompt OR using a 3rd party application like phpMyAdmin.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>1)<\/strong><\/span> Open the table called <strong>&#8220;System&#8221;<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>2)<\/strong><\/span> Search for the <strong>entry &#8220;modules\/user\/user.module&#8221;<\/strong> in the <strong>&#8220;filename&#8221; column<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>3)<\/strong><\/span> Change the value of <strong>&#8216;status&#8217; variable from 0 to 1<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>4)<\/strong><\/span> Save.<\/p>\n<p>This is it. <strong><\/strong><\/p>\n<p><strong>Note: <\/strong>If the value of &#8216;status&#8217; variable is already 1, change it to &#8216;0&#8217; and then reset back to &#8216;1&#8217;. It should fix the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An update\/upgrade on the existing Drupal website may result in a following error message on the website:<\/p>\n<p>&#8220;PHP Fatal error:\u00a0 Call to undefined function user_access()<br \/>\n in \/home\/user\/modules\/ad\/ad.module on line xxx&#8221;<\/p>\n<p>The solution is to update a &#8220;status&#8221; entry in the Drupal Database. Access your Drupal database either from the Mysql prompt OR using a 3rd party application like phpMyAdmin.<br \/>\n1) Open the table called &#8220;System&#8221;.<br \/>\n2) Search for the entry &#8220;modules\/user\/user.module&#8221; in the &#8220;filename&#8221; column.<br \/>\n3) Change the value of &#8216;status&#8217; variable from 0 to 1.<br \/>\n4) Save.<br \/>\nThis is it.<br \/>\nNote: If the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1105,1102,1104,1103],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1118"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1118"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions"}],"predecessor-version":[{"id":2276,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions\/2276"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}