Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-05-01 00:19:24

chume
Member
Registered: 2009-12-03
Posts: 27

Constant txpath already defined in ../private/config.php on line 10

I am using the multi-site configuration and the log is filled up with “Constant txpath already defined” error.
It looks like the “define(‘txpath’, $txpcfg[‘txpath’]);” statement added to the config.php file was also defined somewhere else.

Please I need help to resolve this error because the log is filling up..

Thank you.

Chume

Last edited by chume (2010-05-01 00:20:15)

Offline

#2 2010-05-01 12:26:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Constant txpath already defined in ../private/config.php on line 10

See http://ipsedixit.net/txp/118/textpattern-multisite-setup and the comments in http://txptips.com/multi-sites-setup. There are some errors in the README file.


Code is topiary

Offline

#3 2010-05-03 14:27:59

chume
Member
Registered: 2009-12-03
Posts: 27

Re: Constant txpath already defined in ../private/config.php on line 10

Thank you jsoo.
Replacing the index.php file resolved the issue for me.

Last edited by chume (2010-05-03 14:28:46)

Offline

#4 2010-05-04 02:07:07

chume
Member
Registered: 2009-12-03
Posts: 27

Re: Constant txpath already defined in ../private/config.php on line 10

After swapping the index.php file, I get “File does not exist: /var/www/sites/site1/images, referer: http://domain.local/site1/public/css.php?n=default” error.
I know that the image folder exists and has a write permission.
Has anyone else this experience?
Thank you everyone

Offline

#5 2010-05-04 15:03:00

chume
Member
Registered: 2009-12-03
Posts: 27

Re: Constant txpath already defined in ../private/config.php on line 10

I found out that this last error was caused by a misconfiguration in the virtualhost directive.
Thanks everyone.

Chume

Last edited by chume (2010-05-04 15:03:39)

Offline

Board footer

Powered by FluxBB