Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-09-16 18:56:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Textpattern Forms outside of Textpattern

driz wrote:

this is the config file:

$txpcfg['db'] = 'driz_wordpress';

!!! x


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#17 2008-09-16 19:34:25

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

I was using WordPress before, I decided to call the database wordpress, it hasn’t got any correlation with my errors. x


~ Cameron

Offline

#18 2008-09-16 19:38:53

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Textpattern Forms outside of Textpattern

Driz,

All I can tell you is to keep troubleshooting the path – I don’t really use this method (outside of my index.php) so I’m afraid you are in uncharted territory. Please be sure to report back if you figure it out.

Offline

#19 2008-09-16 19:39:05

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

renobird wrote:

Sorry driz – can’t help you much further with this one – check the control panel or help docs with your host to see if there’s more to the path that you need to include.

Well that is the whole path, it’s working fine with Textpattern, so it’s clearly correct, I wonder why it’s saying it’s incorrect :S


~ Cameron

Offline

#20 2008-09-16 19:58:49

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

Are we sure the code is correct? Because if we look at the error it says something about a variable on txp-one.php not being correct?

Warning: include(/home/driz/public_html/www/textpattern/config.php) [function.include]: failed to open stream: No such file or directory in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Warning: include() [function.include]: Failed opening '/home/driz/public_html/www/textpattern/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Notice: Undefined variable: txpcfg in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Warning: include(/publish.php) [function.include]: failed to open stream: No such file or directory in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Warning: include() [function.include]: Failed opening '/publish.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Fatal error: Call to undefined function parse() in /home/driz/public_html/forum/include/user/txp-two.php on line 1

~ Cameron

Offline

#21 2008-09-16 20:04:44

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Textpattern Forms outside of Textpattern

Everything after the the first error is irrelevant. It can’t find the config file – so everything else is going to error out.

I’ve been using that code snippet since ’05 and it def. works. (troubleshoot the path to config. and you will have it.)

Offline

#22 2008-09-16 20:11:24

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

Okies fixed the config error with this code, apparently it doesn’t want the /www/ even so my config file uses it for the txp install :S

<?php define("txpinterface", "public"); include '/home/driz/public_html/textpattern/config.php'; include $txpcfg['txpath'].'/publish.php'; ob_start(); ?>

but i’m still having issues with the publish.php file now? I’ve tried using the same path etc but it doesn’t help :S here is the error:


Warning: include(/home/driz/public_html/www/textpattern/publish.php) [function.include]: failed to open stream: No such file or directory in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Warning: include() [function.include]: Failed opening '/home/driz/public_html/www/textpattern/publish.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/driz/public_html/forum/include/user/txp-one.php on line 1

Fatal error: Call to undefined function parse() in /home/driz/public_html/forum/include/user/txp-two.php on line 1

If I try and change my config file to ALSO have no /www/ the forum spits this error instead:

Fatal error: Cannot redeclare escape_cdata() (previously declared in /home/driz/public_html/forum/include/functions.php:48) in /home/driz/public_html/textpattern/lib/txplib_misc.php on line 112

Last edited by driz (2008-09-16 20:19:09)


~ Cameron

Offline

#23 2008-09-16 20:20:47

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Textpattern Forms outside of Textpattern

include $txpcfg['txpath'].'/publish.php'

If it’s finding the config file, then that should work.

Offline

#24 2008-09-16 20:21:59

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

renobird wrote:

include $txpcfg['txpath'].'/publish.php'

If it’s finding the config file, then that should work.

Well the publish.php is linking from the config file, which had the /www/ but taking that away complains about txp_misc :S Please read my previous post it shows the NEW error created. x

Last edited by driz (2008-09-16 20:24:34)


~ Cameron

Offline

#25 2008-09-16 20:28:40

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Textpattern Forms outside of Textpattern

Are you including that code in a punBB page?

Offline

#26 2008-09-16 20:29:23

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

the code is in the top of a PunBB template file


~ Cameron

Offline

#27 2008-09-16 20:32:54

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Textpattern Forms outside of Textpattern

Try using it in a test PHP document. I’m not sure how this might cause TXP and punBB to interact.
That might be the problem (in which case this is out of my league).


T

Offline

#28 2008-09-16 20:35:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Textpattern Forms outside of Textpattern

Looks like a function in a Textpattern conflicts with a function bearing the same name in the forum software.

Offline

#29 2008-09-16 20:41:18

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

Okies good news and bad news, the good is http://www.simplecandy.com/test.php proves the code works and is NOW correct!
the bad news being ruud is probably and most likely correct in thinking that their is conflicting functions, the big question is how do i fix this? x

EDIT: I’ve posted over at the forum support forums to see if I can safely change the name of that function, to stop it conflicting

Last edited by driz (2008-09-16 20:47:04)


~ Cameron

Offline

#30 2008-09-16 20:50:39

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Forms outside of Textpattern

ruud wrote:

Looks like a function in a Textpattern conflicts with a function bearing the same name in the forum software.

Is it possible to change the name of this function in Textpattern?


~ Cameron

Offline

Board footer

Powered by FluxBB