| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| getting a php error | |
|---|---|
| Tweet Topic Started: Mar 8 2005, 02:01 AM (386 Views) | |
| dbzlotrfan | Mar 8 2005, 02:01 AM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Call to undefined function: topic_password_field() in sources/lib/post_new_post.php on line 384. and Call to undefined function: topic_password_field() in sources/lib/post_poll.php on line 486. //----------------------------------------- // D2-Password Protected Topics //----------------------------------------- if ($this->class->forum['allow_passprotected'] == 1) { $this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : ''), $this->class->output); } and //----------------------------------------- // D2-Password Protected Topics //----------------------------------------- if ($this->class->forum['allow_passprotected'] == 1) { $this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : ''), $this->class->output); } Can't figure out what it('s) talking about. |
![]() |
|
| Seth | Mar 8 2005, 02:05 AM Post #2 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You're calling a function that doesn't exist. |
![]() |
|
| SkItZo | Mar 8 2005, 07:30 AM Post #3 |
|
Support Volunteer
![]() ![]() ![]() ![]() ![]()
|
Yep...did he have you edit out the functions.php file? and did you upload it yet? |
![]() |
|
| dbzlotrfan | Mar 8 2005, 01:11 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
actually if any of you know a dean of Invizionze that's made a lot of IPB mods this is actually one of his. files I had to edit for this to work: sources/topics.php sources/admin/ad_forums.php sources/admin/ad_groups.php sources/lib/post_edit_post.php sources/lib/post_new_post.php sources/lib/post_poll.php lang/en/lang_post.php lang/en/lang_topic.php sources/lib/post_new_post.php sources/lib/post_poll.php are where I had to find " //----------------------------------------- // START TABLE //----------------------------------------- $this->class->output .= $this->class->html->table_structure(); " and add below: //----------------------------------------- // D2-Password Protected Topics //----------------------------------------- if ($this->class->forum['allow_passprotected'] == 1) { $this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : base64_decode($this->topic['password'])), $this->class->output); }. I did everything corretly, incase not i'll try again. |
![]() |
|
| FearKiller | Mar 8 2005, 05:53 PM Post #5 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
PHP allows you to make your own functions. The function called topic_password_field() is not a predefined function, therefore it must be defined. Hence the reason why you are getting the error. In order to fix the error you must define the function. |
![]() |
|
| dbzlotrfan | Mar 8 2005, 06:11 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I didn't create the code dean/matt mecham did. all I can do the "hello world" code. i've read alot of php but I never had a server so I could never write anything, I guess i've foggoten the php now. |
![]() |
|
| Gornakle | Mar 8 2005, 06:36 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try backing up your files and redoing the process. If you're sure you're not making any mistakes, post in its support topic on IZE. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
10:14 PM Jul 10
|



![]](../../../../0/1/0/p601690/pipright.png)



10:14 PM Jul 10