Welcome to all phpBB2 Refugees!This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area. |
|
Author |
Message |
drawup Board Member
Joined: 25 Mar 2015
Posts: 4
|
Posted: Wed Mar 25, 2015 4:34 pm Post subject: profile.php is a blank page |
|
|
I have had this problem for quite a while and have been searching for a solution off and on. My latest search discovered this forum; I'm hoping if anyone can help me with this someone on here could.
I have a phpbb forum that has developed some problems. Most of it works fine, but some of the pages are now not loading, they are just blank.
My forum is phpbb 2.0.14, I need to stay at that version if at all possible because of multiple mods that are installed.
My host upgraded their server from php4 to php5 (the exact version is currently 5.4.25) and that is when I first noticed this happening, so I think that must have been what caused it. Something is likely incompatible with the new version. I am just unable to figure out what.
The only page that seems to be having problems is profile.php; when you load it either at profile.php?mode=editprofile or profile.php?mode=register it just goes to a blank white page. So new members cannot register, and current members cannot edit their profiles.
Any advice on this would be greatly appreciated! It's not a huge problem, as for being time sensitive, the forum is small so it isn't affecting use at the moment; but it is frustrating and will cause problems eventually if someone new wants to join.
|
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
|
Back to top |
|
|
drawup Board Member
Joined: 25 Mar 2015
Posts: 4
|
Posted: Thu Mar 26, 2015 6:33 pm Post subject: Re: profile.php is a blank page |
|
|
Thank you for the response! I greatly appreciate it!
Unfortunately that didn't fix my issue. I added the wrapper to common.php and replaced htmlspecialchars with htmlspecialchars_wrapped in every php file that used it, but profile.php still comes up blank.
What really confuses me about this is that profile.php?mode=viewprofile works just fine, it's only mode=editprofile and mode=register that refuse to load.
It was my thinking that perhaps rather than an actual problem in the code there may be an error on the page that is being thrown, stopping the template from loading, but I can't find an error being logged anywhere. I have all reporting options that I know of on but get nothing, so I contacted my host and asked them to check the server log but they also had no errors.
They said: "The webserver is not showing any errors when loading this page:"
Sent me a log that says: Resolving, Connecting, then "HTTP request sent, awaiting response... 200 OK"
And said: "This indicates that your script is not giving any output."
I used View Source on the page, and sure enough it's completely empty.
|
|
Back to top |
|
|
nostro Board Member
Joined: 16 Jul 2012
Posts: 54
|
Posted: Sat Mar 28, 2015 10:22 am Post subject: Re: profile.php is a blank page |
|
|
Profile.php also failled in this forum, it was fixed and I think in this case it was not that htmlspecialchars error, but I don't known the exact changes that were done:
http://www.phpbb2refugees.com/viewtopic.php?p=7957#7957
|
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Sat Mar 28, 2015 11:03 am Post subject: Re: profile.php is a blank page |
|
|
Says it was due to Dave starting with an old version of phpBB2 and a file that contained a "&&" that he just edited to "&"
What version of phpBB2 are you running?
Jim
_________________ The truth is out there.
Unfortunately they will not let you anywhere near it! |
|
Back to top |
|
|
drawup Board Member
Joined: 25 Mar 2015
Posts: 4
|
Posted: Mon Mar 30, 2015 5:17 pm Post subject: Re: profile.php is a blank page |
|
|
Yes, I saw reference to that incident here: http://www.phpbb2refugees.com/viewtopic.php?t=1199p=8023#8023
I hoped it was a related issue to mine, since it is just my profile page that isn't working, but I tried the fix that was mentioned and it didn't work for me. Unless maybe I wasn't changing the correct line.
Jim, I am at phpbb 2.0.14
|
|
Back to top |
|
|
baerenwurm Board Member
Joined: 22 Jul 2011
Posts: 5
|
Posted: Tue Mar 15, 2016 5:48 pm Post subject: Re: profile.php is a blank page |
|
|
Hi.
I have the exact same issue on my phpBB 2.0.24. :/
|
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Tue Mar 15, 2016 9:46 pm Post subject: Re: profile.php is a blank page |
|
|
What I believe I had to do was remove anything called by &$ in the function display_avatar_gallery() in usercp_register.php. All of the arguments are passed with only $ in my current code. This is the standard function call in phpBB
Code: | display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $phpbb_id, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, |
The code is truncated, but you get the idea... here's the altered version
Code: | display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $new_password, $cur_password, $password_confirm, $icq, $phpbb_id, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, |
_________________ phpBBDoctor Blog |
|
Back to top |
|
|
StarWolf3000 Board Member
Joined: 10 Jun 2010
Posts: 175 Location: Germany
|
Posted: Wed Mar 16, 2016 3:31 am Post subject: Re: profile.php is a blank page |
|
|
This is due to the deprecation/removal of "Call-time pass-by-reference". Depending on your PHP settings and version, this leads to blank pages or warnings or errors.
|
|
Back to top |
|
|
baerenwurm Board Member
Joined: 22 Jul 2011
Posts: 5
|
Posted: Wed Mar 16, 2016 3:56 am Post subject: Re: profile.php is a blank page |
|
|
Thanks! I just checked the profile.php though: The call by reference in the function doesn't seem to be the problem here. All "&$" in usercp_register.php have been removed already.
Description: |
|
Download |
Filename: |
usercp_register.txt |
Filesize: |
61.41 KB |
Downloaded: |
1943 Time(s) |
|
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Wed Mar 16, 2016 9:33 am Post subject: Re: profile.php is a blank page |
|
|
You may need to turn the error level up (or down, depends on how you look at it) and see if you can get some sort of message that indicates where the issue is. It has been a long time since I had to look at this, and I don't remember what else I may have had to change.
_________________ phpBBDoctor Blog |
|
Back to top |
|
|
baerenwurm Board Member
Joined: 22 Jul 2011
Posts: 5
|
Posted: Mon Apr 11, 2016 6:37 am Post subject: Re: profile.php is a blank page |
|
|
I just tried a clean usercp_register.php - and it works without any edits = it seems to be caused by some mod I installed.
|
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Mon Apr 11, 2016 12:27 pm Post subject: Re: profile.php is a blank page |
|
|
... so then the fun begins. How many modifications have you installed that touch the file? If you can apply them individually, you can see which one breaks the process.
_________________ phpBBDoctor Blog |
|
Back to top |
|
|
baerenwurm Board Member
Joined: 22 Jul 2011
Posts: 5
|
Posted: Mon Apr 11, 2016 3:33 pm Post subject: Re: profile.php is a blank page |
|
|
Loads. I have no clue, where to start. These are the ones, that might affect the usercp_register.php:
Gender Hack 1.2.8
Custom Profile Fields 1.2.0
Online/Offline/Hidden 2.2.8
Email Confirmation 1.0.0
Mass Email Opt-Out Mod 0.0.1
mega_mail_v096b
Fix message_die for multiple errors MOD 1.0.4
Remove COPPA 1.0.4
Prune Inactive Users 0.5.0
Disable Post Count Increase 1.0.1
TextualConfirmation-1.0.7 / The Humanizer 1.2-0
No Flood Limit For Admins & Mods
No Search Flood Limit for Admins & Mods
Stop Author View Increase
Topic calendar
|
|
Back to top |
|
|
drawup Board Member
Joined: 25 Mar 2015
Posts: 4
|
Posted: Fri Oct 21, 2016 3:13 pm Post subject: Re: profile.php is a blank page |
|
|
drathbun wrote: | What I believe I had to do was remove anything called by &$ in the function display_avatar_gallery() in usercp_register.php. All of the arguments are passed with only $ in my current code. This is the standard function call in phpBB
Code: | display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $phpbb_id, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, |
The code is truncated, but you get the idea... here's the altered version
Code: | display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $new_password, $cur_password, $password_confirm, $icq, $phpbb_id, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, |
|
That was my problem! Everything appears to be working again finally; thank you so much!
|
|
Back to top |
|
|
|
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.1010 seconds using 18 queries. (SQL 0.0170 Parse 0.0110 Other 0.0729) |
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com
|
|