subramanya1 / buddypress-media

Automatically exported from code.google.com/p/buddypress-media
0 stars 0 forks source link

do_action( ‘bp_album_featured_sitewide’ ); show nothing #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*** YOU MUST ANSWER ALL QUESTIONS. IF A QUESTION IS NOT RELEVANT YOU MUST
WRITE "NOT APPLICABLE" IN THE QUESTION FIELD. ***

[What steps will reproduce the problem? (We need detailed, specific steps.
If we cannot reproduce the defect on a dev machine, we cannot fix it.)]

1. do_action( ‘bp_album_featured_sitewide’ ); doesn't work in newer nightly 
builds (in the nightly of July it worked though). I used the code in php tags 
correctly, but nothing shows no matter where I put the code. It doesn't show 
the divs where the code is in.

2. Setting BP-Album+ options -> Template Loops -> Item selection method to 
‘random’ cause an error:
Warning: call_user_func(BPA_Media_Module::get_preview_image) 
[function.call-user-func]: First argument is expected to be a valid callback in 
/home/myname/public_html/wp-content/plugins/bp-album/includes/featured_content/s
ub-featured-templatetags.php on line 379

However, it shows the divs which contain the do_action( 
‘bp_album_featured_sitewide’ ); code, but it gives an error (mentioned 
above)

[What is the expected output? What do you see instead?]
Expected output: Random images from users.
Instead: Error message (mentioned above)

[What version of BP Media are you using?]
Nightly Build 09.13.

[What version of WordPress are you using?]
3.0.1

[What version of BuddyPress are you using?]
1.2.5.2

[What version of PHP are you using?]
5

[If the problem is layout related (broken page layout, etc) or browser
related (page just freezes, cannot connect to server) ...what happens when
you load the page in AT LEAST TWO of the following browsers:]
1.FireFox - (Report version number)
2.Internet Explorer - (Report version number)
3.Safari - (Report version number)
4.Google Chrome - (Report version number)

[What is the URL of your web host?]
http://www.hostgator.com

[If you are running a public site, what is the URL to a page that shows the
problem?]
NOT APPLICABLE

[Do you know how to use phpMyAdmin?]
yes

[Do you know how to edit PHP code?]
yes

[Please provide any additional information below]

Original issue reported on code.google.com by levente....@gmail.com on 14 Sep 2010 at 5:39

GoogleCodeExporter commented 9 years ago
This issue has been successfully reproduced on a dev workstation. 

Reporting user: please note that you are using the wrong type of apostrophe on 
your sample code. WRONG: do_action( ‘bp_album_featured_sitewide’ ); RIGHT: 
do_action( 'bp_album_featured_sitewide' ); This will probably cause your 
template to malfunction when the defect is corrected.

Original comment by CarlRoett@gmail.com on 14 Sep 2010 at 6:41

GoogleCodeExporter commented 9 years ago
I use the right type of apostrophe in my PHP file. I don't know why the issue 
reporter shows other type of apostrophe, but I wrote the code with copy/pase 
and I checked in PHP, too. Unfortunately, the problem is not the apostrophe, 
but thanks for replying.
Any other idea?

Original comment by levente....@gmail.com on 14 Sep 2010 at 8:10

GoogleCodeExporter commented 9 years ago
This defect has been fixed in revision 81 
http://code.google.com/p/buddypress-media/source/detail?r=81 

The modified code will appear in nightly build 0.1.9_2010-09-14. 

Thanks for the excellent bug report.

Original comment by CarlRoett@gmail.com on 14 Sep 2010 at 8:22