Archive for March, 2007
WordPress Error: “Cannot modify header information – headers already sent”
There was important security update of WordPress recently. In upgrade instructions it is suggested to delete old files on the server, and then upload new files, and I did as they suggested.
A few days ago I wanted to upload an image and got this error message.
The uploaded file could not be moved to [...]/wp-content/uploads/[...].
Warning: Cannot modify header information – headers already sent by (output started at [...]/wp-admin/admin-functions.php:1879) in [...]/wp-includes/functions.php on line 1219
94
I searched for that error message, but did not find anything useful. I looked at source files mentioned, but I am not very familiar with PHP, so no luck there too.
Then I remembered that I had problems previously after upgrading because WordPress did not have permission to write to upload folder. I checked it and yes, that was the problem. I fixed permissions and upload worked again.
I am just surprised how error message did not say that WordPress does not have permission to write to a folder, but something about headers. I thought that not having permission is one of the common scenarios.
Repeat Feature of Microsoft Excel
While I am in “tip mode”…
I found out something very useful in Microsoft Excel. There is feature called repeat (Ctrl+Y). It is not only the opposite of undo. With it you can repeat action you have just performed.
Time for an example. I will not go into detail. I had a lot of data in one row, a few hundred cells (if I remember correctly, maybe even over thousand), and I wanted to move some cells to the right.
| dog |
| cat |
| elephant |
| … |
I had to visually look at that data and some of it move to the right column. In this example, I would move elephant. (I leave it to you, dear reader, to figure out why.) I could cut elephant and paste it in the cell to the right. Let’s count keyboard actions. (Remember, I had to do it a lot, so every keyboard or mouse click counts.)
- Ctrl+X
- Right Cursor
- Ctrl+V
Three actions. Now table looks like this.
| dog | |
| cat | |
| elephant | |
| … | … |
I could get the same result with inserting cell and moving original cell to the right. Right click “elephant” cell, from context menu select Insert… > Shift cells right > OK. (I used mouse to do that, but there is also “right click” key on your keyboard. It is just to the right of “any” key. Just kidding. It is to the left of right “Ctrl” key on my keyboard. Really.) A lot of clicking. But, after you do it once, Excel remembers that you have just inserted cell and moved previous content to the right. And you can repeat that action on another cell with Ctrl+Y.
So, when you have to repeat some action that requires a lot of clicking (mouse or keyboard), you can do it just once, and that repeat that action with Ctrl+Y. It saved me a lot of time.
Capitalization of Titles
Another very useful feature of Microsoft Word is capitalization of titles. If you need a quick way to correctly capitalize your title, type
capitalization of titles
in Microsoft Word, select it, Format > Change Case… > Title Case > OK.
It will change to
Capitalization Of Titles
Run spell checking and it will tell you that “Of” should be “of”. Change it, and you are done.
Capitalization of Titles

