status shows php code

portait - July 1, 2009 - 15:54
Project:Facebook-style Statuses (Microblog)
Version:6.x-2.0-rc1
Component:Code - Functionality
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

when clicking on statuses on a user profile with no status, it shows the php code.

see screenshot: http://i39.tinypic.com/ac398x.png

#1

igorik - July 1, 2009 - 16:47

same problem whole last month, after clicking on status tab on user profile I got this:

arg(1))); if (!$account->uid) { echo t('This user has no statuses yet.'); return; } $count = facebook_status_has_status(arg(1)); if (!$count) { global $user; if ($user->uid == $account->uid) { echo t('You have no statuses yet.'); } else { echo t('@name has no statuses yet.', array('@name' => check_plain($account->name))); } } ?>

The code I got is not the same as yours, and there is missing <?php on the start of a code, but I am not sure if it is reason of the problem

Igor
http://www.somvprahe.sk

#2

IceCreamYou - July 1, 2009 - 17:55
Status:active» fixed

This will be fixed in the next dev, but you will need to refresh your Views cache in order to see the change.

For now, you need to go to the View that generates that page and make sure that the input format for the "Empty" text is set to "PHP code." If you don't have the PHP input filter module enabled, you should either enable it or write your own empty message in a different input format.

#3

batux1617 - July 3, 2009 - 16:57

Hi, I tried that and entered my own empty text, however its still not pulling any data (it only shows my empty text even though I have several user mentions).... any guidance will be appreciated.

Regards,

#4

IceCreamYou - July 3, 2009 - 19:30

My answer is going to be almost the same as in your question here. I assure you that the view works; if you're having problems with it, it's because something with your installation is wrong, or you've modified the view incorrectly, or you're using @userreferences incorrectly (capitalization matters, for example). Delete your facebook_status folder, download the latest dev, revert your views, and run update.php.

#5

System Message - July 17, 2009 - 19:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.