Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-10 09:49:17

simonbalthazar
New Member
Registered: 2007-07-10
Posts: 3

Super weird problem - saving presentation redirects to root

Hi

I’ve used TXP for quite a while and have developed a number of TXP based sites before. After installing it on a new webserver I got the weirdest problem:

Whenever I submit a form in the presentation tab (like a page or a form) I get redirected to the root directory of the website. I.e. if my txp install is at domain.com/textpattern I get redirected to domain.com. Also if the whole site + txp install is located in a subdirectory like domain.com/newsite I still get redirected the root directory.

So for example if I do a fresh install of txp and go to presentation tab and then Pages and just click Save for the default page, nothing is saved and I get redirected. It does not happen if I save an article or save changes in admin tab, or anywhere else except in the presentation tab.

Also, to make it even stranger, it does not happen if I submit plain text. So if I change a page to contain just “Hello” it works, but if I add “<txp:title />” I get redirected again.

Could this have to do with the webserver? The only reported problem in the diagnostics is:
“The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: system,passthru,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,highlight_file,escapeshellcmd,define_syslog_variables,posix_uname,posix_getpwuid,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,posix_uname,ftp_exec,ftp_connect,ftp_login,ftp_get,ftp_put,ftp_nb_fput,ftp_raw,ftp_rawlist,ini_alter,ini_restore,inject_code,syslog,openlog,define_syslog_variables,apache_setenv,php_uname,mysql_pconnect”

I can’t see anything unusual in the error logs except some 404s, but I’m not sure if they are unrelated.
Any idea what’s happening or how I could debug this??

HELP!!

Simon

Last edited by simonbalthazar (2007-07-10 09:50:16)

Offline

#2 2007-07-10 10:05:06

simonbalthazar
New Member
Registered: 2007-07-10
Posts: 3

Re: Super weird problem - saving presentation redirects to root

As a follow up… further investigation shows that textpattern.php/index.php doesn’t seem to be loaded at all when submitting something that contains html tags.

I put the following code at the top of index.php: print_r($_POST); exit();

When I submit anything that doesn’t contain html tags I get a printout at top of page, but otherwise I’m still getting instantly redirected, it’s almost as if it was trying to submit to a file that didn’t exist! Clicking on tabs etc loads for a bit, but the failing submits are instant!

Last edited by simonbalthazar (2007-07-10 10:15:15)

Offline

#3 2007-07-10 13:29:56

simonbalthazar
New Member
Registered: 2007-07-10
Posts: 3

Re: Super weird problem - saving presentation redirects to root

Hmm… it seems like this might be a server configuration issue. Putting a dummy page unrelated to txp up posting html to itself has the same problem. Duh.

Offline

Board footer

Powered by FluxBB