Undefined variable:...
 
Notifications
Clear all

Undefined variable: path_to_smf in Profile.php [Solved]

2 Posts
2 Users
0 Reactions
1,220 Views
(@mikodragonfly)
Posts: 69
Trusted Member
Topic starter
 

URL to your eFiction: http://www.escape-ism.com/ourstories
Version of eFiction:3.4.3.
Have you bridged eFiction, if so with what?:SMF 1.1.5  [with Tinyportal v0.9.8]
Version of PHP: 5.2.3
Version of MySQL: 5.0.24a
Have you searched for your problem: (yes)
If so, what terms did you try:path_to_smf, Undefined variable: path_to_smf

State the nature of your problem:
I'm getting this error when anyone clicks on a author's name to view their stories:

Notice: Undefined variable: path_to_smf in /home/.jeanette/miko27/escape-ism.com/ourstories/user/profile.php on line 27

Any idea why I'm getting this error? or rather - where and how would I need to set the path correctly?

The line is question from profile.php is this one:

$tpl->assign("image", "<img src=""".$path_to_smf."avatars/".$userinfo['avatar'"]."">");

Do you have a test account for us?test_2008  Pass:crashtest2008 (Let me know before you try to access)

*Edit:

I think I've solved this but ended up removing that line. 

The fix had been to replace the code with the direct url to the smf avatars folder - however, it would only reflect avatars selected from those stored on site.  most of our users use uploadable avatars and remote linked avatars so that feature becomes redundant for us.


I'm here...

 
Posted : 08/06/2008 8:52 am
(@tammy)
Posts: 2577
Member Moderator
 

Should be assigned in one of the bridge files for smf.


 
Posted : 08/06/2008 11:48 pm
Share: