RSS - Latest postsThinkRobot

7Jan
2013

WordPress Admin – Insufficient Permissions

Run into a strange issue today. Was setting up a new blog using the cpanel worpress add-on and everything was fine until I tried to login as admin into the backed. Sure enough the details were accepted, but instead of the dashboard I was greeted with this message:

You do not have sufficient permissions to access this page error.

After a bit of searching it seemed it could be a corrupt db, so I reinstalled, but the same thing happened. Then I had a hunch, this was the first time I was trying to setup a custom table prefix. Sure enough changing the prefix back to just “wp” in the installation form fixed it.

WordPress: v3.2.1

Must be something messed up in the install script or somewhere refers to the default prefix where it should use the custom one.

Categories:

18Dec
2012

Text file busy – db/test.sqlite3

Sometimes things are just too obvious…

When trying to setup the test database for my new rails app I kept getting stuck with this error message:

$ rake db:test:prepare

rake aborted!
Text file busy - db/test.sqlite3

Tasks: TOP => db:test:load => db:test:purge
(See full trace by running task with --trace)

Turns out the file was in use… If you have guard running in the background, that needs to be closed down while you run the rake test db commands.

Categories:

22Apr
2012

Quick fix for the Social Counter Widget plugin

I’ve been doing some charity work recently and as they will have a social presence the blog was in need of some social media buttons. I thought the Social Counter Widget plugin looked quite nice (after the slightly prettier Social Impact Widget decided to just error when I did not enter a Google plus account – guess you have to go all or nothing for this plugin).

Unfortunately it wouldn’t even install, giving the following error:

PHP Parse error:  syntax error, unexpected $end in 
/(...)/wp-content/plugins/social-counter-widget/scw_stats.class.php on line 73

A quick check revealed that it was a mistyped php open tag on line 70 that caused the problems. If you need to fix it before the plugin author submits an updated version just change “<?” to “<?php” on line 70 of the wp-content/plugins/social-counter-widget/scw_stats.class.php file.

Categories:

9Aug
2011

Edit BIOS in Lenovo ThinkPad x220t

As it’s changed from the previous model it had me scratching my head for a few minutes. To enter the BIOS setup just use F1 during laptop startup.

Categories:

5Jun
2011

WordPress update permission issues

WordPress can often be such a pain to deal with…

Recently I was trying to get an installation updated as well as some of the plugins. What should have been a straightforward task, turned out to be several hours of messing around with permissions and trying to figure out why even 777 isn’t enough for the updates to NOT fail and what user should own what.

Well it turns out that it’s only partly the fault of WordPress as it is an issue with the FTP server. Still some better messaging would be helpful…

There were mentions about a patch and fixes in potentially in the 3.2 WP version related to the error I was getting:

Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css

However only after stumbling across this page I found an easy and quick solution.

Turns out it was enough to just switch from Pure-FTPD to Pro-FTPD.

Categories: