Project:Facebook-style Statuses (Microblog)
Version:6.x-2.0
Component:Code - Functionality
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

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

Comments

#1

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

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

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

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

Status:fixed» closed (fixed)

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

#6

Version:6.x-2.0-rc1» 6.x-2.0
Status:closed (fixed)» active

New users still have this issue. When clicking on statuses on a user profile with no status, it shows the php code.

<?php
$account
= user_load(array('uid' => 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)));
}
}
?>

Tried full reinstall of FBSS, but didn't help. Also refreshed all the cache on site including views. Tried to find a view, that is generating standard profile page, but it looks like there is no such view. I didn't touch any FBSS view, so there is nothing to revert.

#7

Status:active» closed (fixed)

http://drupal.org/node/551698#php

#8

i was having the same problem - the reason was because i have the default input method set to 'messaging - plain text' - nothing wrong with the install, but the 'empty text' default text for the status views assumed that you have 'plain text' set as your default input method, which caused the error to be reported.

simply following the above instructions (go to your admin/build/views page, select each 'status' view and set empty text input method to use 'php' mode instead of whatever they are set to) works fine and resolves the issue.

nobody click here