Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I moved a site from a development server to a production server. It turns out that for some reason on the development server, the ctools module is located in sites/all/modules**/contrib**/ctools - where on the production server the ctools module is located at sites/all/modules/ctools.
I am developing a module, which was working fine until earlier today. In the module I use the user_load() function. But all the sudden, every time I try to run this function, it results in this error: Call to undefined function user_load(). I tried clearing the cache, with no luck.
If I run the function from a basic page, with the php_filter enabled, it works fine! So it is only when called from a module it fails.
Content types:
1. business_page
Title: Business name
Body: Business description
Comments: Turned off
2. customer_comment
Title: Comment title
Body: Comment
Comments: Turned on
Use case:
A visitor to "Bob's Hammers" (content type: 1), wants to post/add a comment. Visitor will click on "Add comment" link (content type: 2), displayed on this business page. The only thing I want the visitor to input into the form is "Comment title" and their "Comment" in the body. Easy so far.