Rewrite output works fine on my test server which is running php 5.2.8, but not on live server running php 4.3.9.

I'm using [created]   [title] as the rewrite template, but all that comes out in the page is '   '.

or ... might it be a permissions thing perhaps?

Comments

merlinofchaos’s picture

Hmm. I haven't tested the rewrite features on PHP4, so it is possible. We'll have to look into this. PHP4 is a pain for me to test, so it may be awhile before I can look into it.

alpirrie’s picture

No problem. I've scheduled a php update on our live server for this weekend. If the rewrite 'suddenly' works on Monday I guess we'll know the answer. :-)

Anyway, I'll let you know what happens....

alpirrie’s picture

I can confirm that after upgrading to PHP Version 5.2.9 (from 4.3.9) the rewrite output worked as expected. I hadn't changed anything else on the site. Under PHP4, it looks like it was stripping out the tokens fine, but they were not then replaced. Anyway, I hope this helps.

joshmiller’s picture

Status: Active » Fixed

Sounds like this issue was addressed.

For anyone experiencing the issues, upgrade to PHP 5 or use views templates.

merlinofchaos’s picture

Title: Does Views need php5 for 'Rewrite the output of this field' feature of Fields? » Views needs php5 for 'Rewrite the output of this field' feature of Fields?
Status: Fixed » Active

Sadly no, i haven't fixed this for PHP4 yet.

justinchev’s picture

Sorry to be a pain but has there been any luck with a fix for the PHP4 issue?

Unfortunately the site I've created on my local machine with php5 uses the 'rewrite' feature a lot, and just uploaded it to the live server which uses PHP4 and come across this problem :(

[edit] I found I was able to rework what I had done using view templates.

dawehner’s picture

Wasn't there a commit for 2.10?

iamjon’s picture

Status: Active » Closed (fixed)

I'm marking this as fixed. Please update if it has not been addressed.