Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2007-10-16 10:34:35

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

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

#35 2007-10-19 09:00:58

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

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

#36 2007-10-19 10:15:26

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

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

#38 2007-10-30 16:22:35

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#39 2007-10-30 21:29:37

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

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

#40 2008-02-29 20:35:45

jnhuval
Member
From: Houston Texas USA
Registered: 2007-01-22
Posts: 30
Website

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

#42 2008-03-01 21:19:48

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

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

Board footer

Powered by FluxBB