Please help, I am running multisite setup, two sites for now and I am running the following code:

<?php
global $user;
profile_load_profile($user);
$varexplode=explode(",",strip_tags($user->profile_admin_town));

It works perfectly on one site, but doesn't want to work on another, the error I am getting is this:

Fatal error: Call to undefined function: profile_load_profile() in /home/content/f/1/v/f1vlad/html/sms/includes/common.inc(1347) : eval()'d code on line 6

Which doesn't make much sense to me :( I reinstalled and cloned two sites and still it works on one site but won't on another.

Comments

f1vlad’s picture

Ok sorry guys I jumped the ship, I posted this here and then wanted to go to bed. Next thing I realised I couldn't get no sleep like that, so I just sat and worked this out. I am a dumb &^%.

The reason it was was not working was because I did not enable "Profile" module in my newly created site.

Well hopefully this will be useful to someone like me in the future.

wyredchris’s picture

Bit of an old and not well-visited thread, but I thought it worth saying thanks that you shared your thoughts having fixed the problem, rather than leaving an infuriating "it's ok I fixed it" ;-)