subramanya1 / buddypress-media

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

Activating plugin results in white, empty pages everywhere #100

Open GoogleCodeExporter opened 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. Download a nightly version of Buddypress Media.
2. Upload it into the plugins folder.
3. Activate it on the plugins page.

[What is the expected output? What do you see instead?]
Expected: Just as usual, a page confirming that the plugin has been activated. 
Instead, the page is just white, empty.

[What version of BP Media are you using?]
I tried Bp_Media_Nightly_Build-2012-05-09 and Bp_Media_Nightly_Build-2012-06-03.

[What version of WordPress are you using?]
3.4.1

[What version of BuddyPress are you using?]
1.5.6

[What version of PHP are you using?]
5.4.4

[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?]
I am on a root server.

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

[Do you know how to use phpMyAdmin?]
Yes

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

[Please provide any additional information below]
The PHP Error log says:
PHP Fatal error:  Call-time pass-by-reference has been removed in 
/home/[...]/wp-content/plugins/Bp_Media_Nightly_Build-2012-05-09/core/utils/clas
s.utils.debug.php on line 35

Seems to be related to PHP 5.4 which doesn't allow call-time pass-by-reference 
any more?

Original issue reported on code.google.com by markus.s...@gmail.com on 8 Jul 2012 at 6:08

GoogleCodeExporter commented 9 years ago
Same problem in my case. I did manage to activate it after editing (it was very 
annoying), not sure if everything works, but patch (attached) could be useful 
anyway (it is against Bp_Media_Nightly_Build-2012-07-21) :)

Original comment by al21000...@gmail.com on 29 Jul 2012 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
This problem is being caused by a change in the PHP 5.4x interpreter that 
throws a fatal error when a function is called with a pass-by-reference 
parameter. 

Example: foo($bar, &$fail);

We're updating the PHP portions of the plugin as quickly as possible, but it 
requires 5K+ edits over almost 1000 different files. 

Recent updates:

https://code.google.com/p/buddypress-media/source/detail?r=2371
https://code.google.com/p/buddypress-media/source/detail?r=2357
https://code.google.com/p/buddypress-media/source/detail?r=2356
https://code.google.com/p/buddypress-media/source/detail?r=2355
https://code.google.com/p/buddypress-media/source/detail?r=2354

^F^

Original comment by CarlRoett@gmail.com on 29 Jul 2012 at 9:11