Tag Archive: engineer

WordPress Permalinks Generated But Not Redirected

Introduction

Appalled

Appalled

I’ve had a few site problems whereby my host Site 5, said I was using too many resources and crashing their systems.  Naturally, I was appalled.  I traced this to a variety of plugins plus some errors in php files which must have arrived either during the periodic updates or during editing.  These were errors whereby extra text (either blank space or a carriage return to be precise) were added to the end of the php file, which usually makes it fail.  This a is a Google search on the main error I received,

Warning: Cannot modify header information – headers already sent …  (  This is then followed by error details; usually error on line xx, repeated several times for a variety of xx)

After battling for some time, I just gave up, exported my database key tables (things like posts, comments, etc but omitting plugin inserted tables and the very large options table which I deemed to be very bloated after over five years of continuous WordPress operation…!) and re-installed WordPress as a fresh installation on my server.

Weird Permalink Problem Following Clean Install of WordPress

This is where the weird problem arose….

SP Permalink Settings

SP Permalink Settings

When one installs WordPress for the first time, permalinks are set to the default – so this current post would be:

 http://strangelyperfect.tv/?p=11622

For SEO reasons and for many years I’ve used the format shown in the screenshot from my site shown left.  This current post will thus appear as:

http://strangelyperfect.tv/11622/wordpress-permalinks-generated-but-not-redirected

It’s a “Custom Structure” and the .htaccess file is updated automatically by WordPress when you set it.  You’ll see it’s set to:

/%post_id%/%postname%/

Now, on firing up a post, say this one,

http://strangelyperfect.tv/11428/victory-or-is-it-victory-jesse-willms-surrenders-all-to-ftc-onslaught/ ,

the actual web address I was taken to was:

http://strangelyperfect.tv/%post_id%/victory-or-is-it-victory-jesse-willms-surrenders-all-to-ftc-onslaught/  (error shown in bold)

…which redirected to the homepage of the site, http://strangelyperfect.tv/   This was not what I was expecting!  So I played with the slashes, went back to original simple permalink structure, tried some of the suggested structures – and they all worked!

A custom structure of /%postname%/ worked as well, but not the one I wanted and have used for years.

Weird.   So naturally, I tried Google.

Permalink Redirection Problem Solved.

There’s a lot on the web about this.  Most is about getting .htaccess right with permissions and the code.  But mine was okay, as were all the other suggestions to try.

A real key to resolving my problem was here, Custom Permalinks Generated But Not Redirected in the WordPress forums.  Specifically, it comes from the user, James, a Happiness Engineer!

He suggested adding index.php between the domain name and permalink structure.  So my custom structure changed to:

index.php/%post_id%/%postname%/

WordPress added a leading slash on the save and the website worked!  WAHAY!

However, the best is yet to come….

I thought that the URL was now not pretty, in fact, it was pretty ugly.  The URLs were now being shown like:

http://strangelyperfect.tv/11428/victory-or-is-it-victory-jesse-willms-surrenders-all-to-ftc-onslaught/

So I removed the index.php and reset the custom structure to what I wanted – /%post_id%/%postname%/

It worked!  WAHAY!  All posts’ URLs redirecting  how I wanted!

Conclusion

I’ve no idea, actually.  I’m suspecting some caching, somewhere down the great inter-tubes in the sky, but apart from that…………..?

  • Was it my server?  Dunno.
  • Was it DNS caching?  Dunno.
  • Was it ISP caching? Dunno

All I know is that it’s working now, and the Happiness Engineer’s suggestion sent me on my way, happy.


Postscript – added 22/11/2015

My permalinks in 2015

My permalinks in 2015

Since this time, I have not had to use the index.php fix, and the permalinks are all working correctly.  The flip-flip of adding and removing the fix….just seemed to work!

NoIdeaDeer


 

Enhanced by Zemanta

Related Posts:

All Healthcare is Temporary in America

Healthcare Woes

NHS LogoLying sick in bed this morning listening to a Radio 5 phone-in about the “state” of our Accident & Emergency (A&E) healthcare system here in the UK, I was struck by the failure of the radio show’s producers to engender the expected flurry of tales of woe and poor service.

Happy and Immaculate Professionalism

Far from the engineered curses that the show had hoped to produce – instead, a host of people took the time to phone in and praise the excellent service, waiting times, courtesy and professionalism that they had witnessed, sometimes under conditions of the utmost duress (e.g. during the accident black-spot due to falls on the winter ice).

Proposed Cutbacks

We are now all primed for cutbacks in services in the UK to pay for the banks’ greed.  However, all parties promise to protect the NHS’s frontline services.

The UK spends less on healthcare per capita than the USA.  This is not in doubt.  In fact, the USA spends more per person than any other country.

But now, consider this news article from Philadelphia in Pennsylvania.  See how front-line healthcare staff are treated in the USA and consider the service you are likely to receive from such a system?

Link: Temple hospital, striking workers reach accord

Obama’s Broken Temple Problem

Philadelphia Nurses Strike

Philadelphia Nurses Strike

The nurses at the Temple Hospital in Philadelphia have been on strike since March 31st.  This much is clear.

However, in contrast to the UK (and most of Europe), all the staff appear to be on fixed term contracts which had expired last SeptemberIn the UK, if you are good enough and pass all the tests, you get a job and keep your job (unless you need to move or progress in your career, say), to serve your local community.  As new techniques arrive, you pass more tests etc.  You build up your skills as part of a team.

In the USA, they appear to sack all staff from nurses downwards when their contracts are up, then replace all the staff with temporary staff!  This means that,

Most healthcare USA Workers are temporary…

The trouble is that all the right-wing forces at work there seem to believe that this is a good system and actually mock our NHS with comments like, “have you seen their teeth?”.  This is Obama’s problem with his efforts at healthcare reform.  The real truth is shielded from those in work and with private healthcare insurance, and they are a vociferous lot!

Healthcare?

The real truth is a warning:   Do Not Fall Sick Near Temple Hospital…. After all, what sort of care could one expect from a hospital staffed like that?  No matter how personally caring the staff are, there is no communication, no camraderie, no continuity, no honour.

In the dog eat dog world of America, it’s the last man standing who wins;  but what’s the point of being in a club of one?

Patriotic Battle

In fact, I have to question the sanity of anyone who would fight to defend a country (or it’s overseas interests) that treats it’s own citizens in pain with contempt and it’s caring profession with worthless indifference.

Related Posts:

Comments are closed

Paulson, Like a Bumbling Aristocrat trying to Escape the Guillotine

Guillotine and “The Reign of Terror”

Funny how I missed this during the summer – I was in hospital, I think.

Kaa the Snake

Kaa the Snake

Henry Paulson

Henry Paulson

This video is Henry Paulson, stumbling and squirming, as he struggles to evade quite simple questions for someone in his position.  (I talked about his deceit last year here and here, at the start of the “Credit Crunch”).

Guillotine

Guillotine

His performance reminds me of the terror of the aristocrats during the French Revolution, as they struggled to justify their actions and lives in order to escape Monsieur le Guillotine.

Lives of power, wealth and privilege.

Watch him panic.

Why can’t he answer, simply, the reasons for the various preferential bank collapses, bailouts and the huge sums of money gained by himself and his cronies?

It was his job as a professional, after all…?

Unfortunately, we’ll never know.  The ‘rules of engagement’ for this type of investigation set a time limit on Congressman Stearns‘ questions.

But in a true court of law, there is no time limit to determine a level of satisfactory proof.

And so Paulson walked away, secure with his $200 million tax-free cushion, protectively engineered by a system and rules that he himself set up!

There’s an extra interview, with quotes, of Cliff Stearns in this YouTube clip below that explains much that the Congressman couldn’t ask directly to Paulson.

Related Posts:

Comments are closed

Climate Change and Tommy Cooper

Tommy Cooper

Tommy Cooper

I remember an old  Tommy Cooper gag that went something like this;

I went to the doctor and said,  “Doctor, doctor.  It hurts when I do this”  (Cooper raises his knee upwards to demonstrate)

The doctor said, “Well don’t do it, then

The point is that it’s exactly like our prolific consumption of carbon-based fuels, but even worse,  the now openly thought assumption that Global Climate Engineering is an antidote to global warming. An Elastoplast for the weather!  Ha Ha.

Because of the world’s dependence on burning carbon, no-one wants to stop doing it.  Economic growth, health, prosperity, comfort and status.   We can’t afford to.  No-one can.

A few days without petrol in 2000 in the UK demonstrated that admirably.

Why, oh why, didn´t I take the blue pill ?

Why, oh why, didn´t I take the blue pill ?

So instead of reducing consumption, all the mad-cap ideas ever invented are now being loudly mooted which will put it into people’s heads that not only are they possible, but also that they will happen People will think that climate change is like an illness, and can be treated with an aspirin.

But it’s not.

The trouble is, that all the ideas are possible, but the consequences have never been tested.  Because it’s the climate on the world we inhabit, there is no dummy test run for any of these plans.  And because the Thermo-haline Circulation (THC) in the oceans takes ~1000 years to complete it’s full circuit, and because the THC is a major component of the Earth’s climate (because water and salt are such good heat stores), any changes we make now and have made in the past, will take centuries to smooth out.  In short…..

We’ve got one shot at it.

Royal Society afforability and effectivness graph

Royal Society afforability and effectivness graph

There are host of ideas; wave-powered pumps to speed up ocean circulation; salt crystals in the sky to increase planetary albedo; space mirror to reflect sunlight;  grind up scrap cars for ocean fertilisation to increase algal growth; artificial trees (to replace the ones we’ve chopped down?) – in short, heaps of them.

But none have been tested and none can ever, ever, be tested.  There is no sandbox area.  No roll-back facility.  No system restore.  No Backup.  That’s it.  It’s all or nothing.

Q. Why?  A. Because the climate is a very complex thing and errors done at the macroscopic level will take millennia to work out of the system, if at all.  Remember, the climate doesn’t smoothly vary. It swings wildly between two or more stable states, currently “Ice Age” and “Not quite Ice Age“.

The simplest way to reduce global warming, and at the same time make our nations less strategically dependant on others, and without all the problems of over-compensation, is just as Tommy Cooper’s doctor said,

Don’t Do It!

Don’t burn so much, don’t consume so much.

The tipping point, from the guys at the Royal Society and James Lovelock, will be when I’m about 75.  Reduced pensions in my old age will be the least of my worries!

desolation-wilderness

Further Reading

Related Posts:

Comments are closed

Testing Windows Live Writer

Strangely post on August 28th, 2009
Posted in Technology Tags: , , , , , , , , , ,

Introduction

This is a quick test to see if the Windows 7 Live Writer facility works.  There are a host of formatting options, so let’s see what it’s like?

gordon_logie2_400 The picture is of Blyth Power Station chimneys when they were knocked down.

The significance to myself is that it’s where my father was a Charge Engineer and the care that he and his fellow ‘Charges’ as they were called, and all the Unit Engineers as well, in no small part contributed to the sets in the “A” Station setting operational records in the Guinness Book of Records that are unlikely to be surpassed.

Amazingly, it’s my mum in the left foreground (standing) and my step-dad (seated) watching the chimneys come down.  Myself?  I’m in the bottom left taking my own video of the event.  The smaller person next to me is my son, who’s now bigger than me!

Tens of Thousands turned out to watch.

Related Posts:

Comments are closed

© 2007-2017 Strangely Perfect All Rights Reserved -- Copyright notice by me