Warning: The author of this contribution does not provide support for it anymore.

Hide profile in viewtopic

Error debug when creating a new topic - Hide profile in viewtopic

Error debug when creating a new topic

by theallzaz » Sun Jun 23, 2013 6:29 am

I have activated the debug info. When editing message its ok, but when creating a new topic, i receive this error:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/posting.php on line 1473: Undefined index: post_profile


The line 1473 on posting.php refer to this:

Code: Select all

//MOD: hide profile in viewtopic
$post_profile      = $post_data['post_profile'];
//END: hide profile in viewtopic


What should I do?
Last edited by theallzaz on Fri Jul 12, 2013 12:15 am
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm
Contact:

Re: Debug when creating a new topic

by theallzaz » Tue Jul 09, 2013 2:10 am

I contacted the mod author and this is the bug fix:

root/posting.php
Find:

Code: Select all

//MOD: hide profile in viewtopic
$post_profile      = $post_data['post_profile'];
//END: hide profile in viewtopic


Replace with:

Code: Select all

//MOD: hide profile in viewtopic
$post_profile      = (!empty($post_data['post_profile'])) ? $post_data['post_profile'] : '';
//END: hide profile in viewtopic 


Working fine!
Last edited by theallzaz on Fri Jul 12, 2013 11:27 pm
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm
Contact:

Re: Debug when creating a new topic

by theallzaz » Fri Jul 12, 2013 12:10 am

Bug fix above.
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm
Contact:

Re: Error debug when creating a new topic

by Geolim4 » Wed Jul 31, 2013 1:47 am

I will do an update for this shortly.
Thanks for confirmation.

Regards.
phpBB-fr Former MOD Team Leader / Website Team Member
User avatar
Geolim4
Former Team Member
Posts: 1965
Joined: Sat Sep 11, 2010 3:28 pm
Location: Nantes, France
Name: Georges
Contact: