Author |
Message |
DisposablHero
New Member


Joined: Jan 10, 2006
Posts: 8
|
Posted:
Sat Jan 28, 2006 11:19 am |
|
I have been installing some phpBB mods recently trying to get some more bells and whistles for our forums. I back up the files, install the new ones, and then check to make sure things are working.....unfortunately somewhere along the line I missed an error.
For some reason now whenever you click on someone's name to look at their profile one of two things happens. If they do not have a signature set then you see their profile just fine. If they DO have a sig set then it just brings up a black screen ( screen being where the profile should appear. All the side blocks and headers and whatnot are still there.) It doesn't give me any errors on screen so I am rather at a loss as to how to rectify the problem.
Is there anyway I can check to see what the error is? Or has anyone had this problem before (and I have to assume someone has) and knows a possible fix for it?
Any help would be appreciated. Thank you. |
|
|
|
 |
DisposablHero

|
Posted:
Sun Jan 29, 2006 7:24 pm |
|
I have since found out that noones profiles are accessable from the forum posts and the part with the signature disabling the profile apparently only happens in the member list. Any suggestions or clues as to where I can look for the answer? |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Jan 29, 2006 10:01 pm |
|
Any error messages? Enable error reporting and check your error logs |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
DisposablHero

|
Posted:
Mon Jan 30, 2006 8:08 am |
|
Ah yeah now I see what the errors are but I'm not a coder so I do not know how to fix this. My only choice would be to go back and check the mods I installed to find out which ones edited these files but that would be a bit time consuming. Here is what errors popped up on screen when I endabled the display errors option in the config.php file. I don't know of any other way to get errors reported and logged.
Quote: |
Warning: main(modules/Forums/includes/bbcode.php): failed to open stream: No such file or directory in /home/********/public_html/includes/usercp_viewprofile.php on line 182
Warning: main(modules/Forums/includes/bbcode.php): failed to open stream: No such file or directory in /home/********/public_html/includes/usercp_viewprofile.php on line 182
Warning: main(): Failed opening 'modules/Forums/includes/bbcode.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/********/public_html/includes/usercp_viewprofile.php on line 182
Fatal error: Call to undefined function: bbencode_second_pass() in /home/********/public_html/includes/usercp_viewprofile.php on line 193 |
I put the asterisks there in place of my FTP info/location whatever.
Here are the lines it referst to:
Line 182
Code: include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
Line 193
Code: $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
|
Thanks for your time evaders. If you can't help I'll just go back and see if I can undo anything. |
|
|
|
 |
evaders99

|
Posted:
Mon Jan 30, 2006 8:30 am |
|
What line do you have defined $phpbb_root_path ? |
|
|
|
 |
DisposablHero

|
Posted:
Mon Jan 30, 2006 10:04 am |
|
If you mean in the usercp_viewprofile.php file then the onlyinstance of it is the line
Code: include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
Which newb as I am would seem to indicate that it is not defined anywhere? I need some kind of Code:$phpbb_root_path = something
| kind of line don't I? |
|
|
|
 |
evaders99

|
Posted:
Mon Jan 30, 2006 7:52 pm |
|
Yep, that would see so. Or it could be included from somewhere else.
Try leaving the root path out
Code:
include('includes/bbcode.'.$phpEx);
|
|
|
|
|
 |
DisposablHero

|
Posted:
Mon Jan 30, 2006 11:20 pm |
|
Works perfectly now! Thank evaders I am in your debt. I have one favour to ask you though man:
Can you write a script to slap me upside the head next time I say to myself "WOW that sounds cool! My site really needs that!"
Thanks again evaders. Glad to see there are people like you out there to help people like me. Great community going on here.
Until my inevitable next foul up  |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Jan 31, 2006 6:49 am |
|
 |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
evaders99

|
Posted:
Tue Jan 31, 2006 10:59 am |
|
DisposablHero wrote: | Can you write a script to slap me upside the head next time I say to myself "WOW that sounds cool! My site really needs that!" |
Sure hehe
I try to distinguish between things for the site that I "need" and things that I "want" ... usually putting the needs before the wants. |
|
|
|
 |
DisposablHero

|
Posted:
Tue Jan 31, 2006 1:14 pm |
|
Yeah roger that.
Guess I need to slow down....just redid the site so kinda want to put all the bells and whistles on now that it's up..boys and their toys I guess. Just have to go a lot slower and a lot more carefully from now on. Thanks again man.
And Montego's got the right idea there. Fly the banner proudly. Since I am using the raven distro I have a link up on my site for Raven's. Definitely spreading the word to all the other website admins that I know.
Keep up the good work guys. |
|
|
|
 |
|