Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] cno_replace_file
Seems like they changed the form tag in 4.0.5…
Try to edit the plugin and replace <form action="index.php" method="post"> with <form method="post" action="index.php">
Last edited by chriloi (2007-10-16 10:36:23)
Offline
#32 2007-10-18 20:16:46
- ferenczi
- Member

- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
That did the trick! All is well now. Thanks, chriloi.
Offline
#33 2007-10-18 20:28:57
- ferenczi
- Member

- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
Ah. But, when I try to replace a file, I get:
“Notice: Undefined index: file in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 64
Notice: Undefined variable: filename in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 69
Notice: Undefined index: file in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 69”
and I am unable to upload the replacing file.
Last edited by ferenczi (2007-10-19 00:44:08)
Offline
#34 2007-10-19 06:32:33
- ferenczi
- Member

- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
chriloi wrote:
First check if you have enabled output buffering for textpattern.
Can someone please explain to me (in somewhat simple terms because I’m a designer and not a programmer) how I can check to see if I have enabled output buffering for textpattern?
I guess what stumps me is that from what I can see your plugin calls the function; I don’t understand what I’m supposed to do beyond that. Or how to check.
Last edited by ferenczi (2007-10-19 06:46:01)
Offline
Re: [plugin] [ORPHAN] cno_replace_file
Forget the output buffering. This was a misleading hint from me, since output buffering is used by textpattern by default. You wouldn’t see the “Replace file” input field, if output buffering wasn’t working.
Let me see, if I can fix your problem…
Offline
Re: [plugin] [ORPHAN] cno_replace_file
Try this one: http://www.cnowak.de/works/txp_plugins/cno_replace_file_0.2.txt
If the error still appears, please post your php configuration.
Offline
#37 2007-10-19 21:01:56
- ferenczi
- Member

- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
YESSSSS! It works. Sorry it took me so long to get to this. Thank you so much.
Offline
Re: [plugin] [ORPHAN] cno_replace_file
This works for me now with one exception… when I try to narrow the list with the go button I get errors and no list… Ideas?
Remember I am running the facelift and a late 4.05
Warning:
Error: '' is not an integer
textpattern/include/txp_file.php:290 assert_int()
textpattern/lib/txplib_misc.php(534) : eval()'d code:95 file_edit()
cno_file_replace()
textpattern/lib/txplib_misc.php:570 call_user_func()
textpattern/index.php:118 callback_event()
in /users/home/mrdale/domains/winery.textdriven.com/web/public/textpattern/lib/txplib_misc.php on line 1922
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 select *, unix_timestamp(created) as created, unix_timestamp(modified) as modified from txp_file where id = in /users/home/mrdale/domains/winery.textdriven.com/web/public/textpattern/lib/txplib_db.php on line 84
Last edited by mrdale (2007-10-30 16:23:24)
Offline
Re: [plugin] [ORPHAN] cno_replace_file
This one should work:
http://www.cnowak.de/works/txp_plugins/cno_replace_file_0.3.txt
Last edited by chriloi (2007-10-30 21:30:44)
Offline
Re: [plugin] [ORPHAN] cno_replace_file
I’ve just uploaded it to v 4.0.6 and it’s working fine — imagine just thinking of something useful and it’s already available — thanks.
Offline
#41 2008-03-01 01:56:34
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] cno_replace_file
jnhuval,
the ability to replace a file is already present by default in version 4.06
so you don’t need to use the plugin
Offline
Re: [plugin] [ORPHAN] cno_replace_file
redbot schrieb:
jnhuval,
the ability to replace a file is already present by default in version 4.06
so you don’t need to use the plugin
But it’s really nice to hear, that it is still working. ;)
Offline