Title: PHP 5
Last modified: August 19, 2016

---

# PHP 5

 *  [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/)
 * I’ve been trying to move to a new server with PHP 5, and I’ve installed WP and
   reinstalled but have ended up once more with an installation that doesn’t quite
   work.
    Everything looks OK and the speed is much faster, but the internal links
   on the blog become unstable. Perhaps 20% of the time a link is followed it registers
   correctly in the address bar but the actual link on the page goes elsewhere. 
   If I click on, say ‘about’ the link might take me to the rss feed, or to the 
   archives, anywhere but where I wanted to go. Now, if I hit F5 I usually go to
   the correct link, but when I hit F5 repeatedly, the link is liable to go astray
   again. I cannot detect a pattern here, the wrong links seem to happen erratically.
   If anyone has a clue what’s happening here I’ll be might grateful. The current
   installation which demonstrates this behaviour is at: http://www.govindbaker.
   co.uk

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-993719)
 * Sorry, I’ll give that link again:
    [http://govindbaker.co.uk/](http://govindbaker.co.uk/)
   And the links which should demonstrate the problem are in the footer, under the
   heading: Info On This Site.
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-993722)
 * This is a very interesting case. This could be caused by three things. The mod_rewrite
   on your server (most likely), wordpress’s redirects getting muddled up or a weird
   plugin bug (least likely). To be able to find the problem you may wish to carry
   out some diagnostics tests. I don’t have time to detail these now but essentially
   you need to find out where mod_rewrite is rewriting your urls to on each request.
 *  Thread Starter [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-993728)
 * Thanks for getting back to me on this. All the plugins have been disabled, so
   it’s not down to that.
    Would be really good if you could give me some idea how
   to do these diagnostic tests . . . The blog is running fine on the old server,
   but I really need some PHP5 functionality.
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-993749)
 * A quick test to start off would be to disable the pretty permalinks and resort
   to the default ie. index.php?p=45.
    This doesn’t use mod_rewrite so if the problem
   stops occurring we can conclude that it is mod_rewrite playing up. Could you 
   open up your htaccess file and see if there is anything abnormal in it that could
   be causing this problem.
 *  Thread Starter [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-993982)
 * If I disable the pretty permalinks the site functions correctly.
    The HTaccess
   file looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * # END WordPress
 * Any help with this problem would be greatly appreciated.
 *  Thread Starter [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-994013)
 * Is there no help for this problem?
    I don’t know where to go from here.
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-994020)
 * Seeing as it works with permalinks disabled it means the error is an internal
   wordpress error. Try adding `$wp_rewrite->flush_rules();` into functions.php 
   in your theme. Visit your site once and then remove that line of code. This should
   force wordpress to refresh its internal redirect system. I have no idea whether
   it’ll work.
 *  [Oscar Gonzalez](https://wordpress.org/support/users/rakxzo/)
 * (@rakxzo)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-994021)
 * If tomontoast’s suggestion doesn’t do it… then maybe this can steer you in the
   right direction.
 * > new server with PHP 5
 * Is this your own server? if so, you have access to the raw apache logs presumably…
 * Or maybe its hosted but you you have access to the raw apache logs, you could
   tail the logs and see if any of the requests give you a clue. But this of course
   depends on access to those logs.
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-5-6/#post-994022)
 * Rakxzo,
 * We’ve figured out this is definitely an internal wordpress error. There is no
   need to look at apache logs!
 *  Thread Starter [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * (@johnbakeronline)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/php-5-6/#post-994069)
 * Still the same problem here. I tried your solution, Tomontoast, but it didn’t
   make any difference.
    Does anyone have any other ideas? As it is we’re going 
   to reinstall once again, but this is getting quite tiresome.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘PHP 5’ is closed to new replies.

## Tags

 * [links](https://wordpress.org/support/topic-tag/links/)
 * [PHP 5](https://wordpress.org/support/topic-tag/php-5/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [johnbakeronline](https://wordpress.org/support/users/johnbakeronline/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/php-5-6/#post-994069)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
