You do not have sufficient permissions to access this page.

Well, I finally got around to upgrad­ing Word­Press again. I made a fairly prodi­gious leap from 2.5(.somethingsomething) to 2.8 in one step, with pleas­antly few hiccups.

In fact, the only sig­nif­i­cant hic­cup I faced pre­vented me from log­ging in at all (fairly sig­nif­i­cant), giv­ing a charm­ing error: “You do not have suf­fi­cient per­mis­sions to access this page.”

This hap­pened after I went to update my wp-config.php file to incor­po­rate a circa-2.6 inno­va­tion, Secu­rity Keys. AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY and NONCE_KEY added to my wp-config, I attempted to login to the admin area again (it auto-logged me out, fair enough) to be greeted with the afore­men­tioned non-negotiable error!

Turns out it was a pretty stu­pid prob­lem I had… If you get this, check you have inserted the key def­i­n­i­tions before the “Stop edit­ing” com­ment in the doc­u­ment (I think the com­ment is dif­fer­ent in later ver­sions — my wp-config is seri­ously ancient, I’ve been upgrad­ing since 0.73 and would only have started from scratch if at some past point it was required!)

Once I did this the errors went away entirely and I was able to login.

# by Josh on June 16th, 2009 Tags:
| 1 Comment »

Nginx

Must play with this HTTP server/load-balancer/mail proxy/bundle of awe­some some­time soon. Looks like a pretty awe­some option for VPS envi­ron­ments and other places where there isn’t heaps of spare resources going around! My cupboard-bound SSH oasis and occa­sional web­server is, of course, a likely can­di­date… but I’m a tad con­cerned I’ll screw myself over with PHP. Not because it par­tic­u­larly gets used for that (there’s like… a few wikis and a hand­ful of lines of PHP code eas­ily replaced by some­thing else that get semi-regular atten­tion) but mostly for the “just in case” I wanna test run some­thing. And yeah, I know, that’s what vir­tu­alised stuff should be for… but I still haven’t quite caught up to that. I’ve got an Ubuntu thing run­ning in a vir­tual PC instance on the com­puter I use most of the time, but it just doesn’t cut it for actu­ally try­ing to test some­thing out with, you know, other users and real Inter­net con­nec­tiv­ity. In other news, can-we-have-IPv6-moar-plx? Just because it’s absurd to have to pay more to run real SSL on ded­i­cated IPs when there is SO MUCH SPACE just wait­ing for us to broaden our hori­zons and start to fill it. I’m not heaps fussed if pre-Windows XP users can’t use it, actu­ally, because they’ve likely got big­ger secu­rity prob­lems on their hands from their network-connected 10-year-old OS than any reg­u­lar web inter­ac­tion is likely to give them, prop­erly secured or not — that is, even if their web traf­fic is secured, their desk­top is prob­a­bly a bot­net zom­bie with key­log­gers and tro­jans abounding.

Google Sitemaps–

I’ve had to dis­able Google Sitemaps for this site in a bid to stop post and com­ment form sub­mis­sions result­ing in a blank page. Prob­a­bly gonna negate a bit of the Google Love but that’s okay, the blank pages have been dri­ving me batty! Word­Press plu­gin Google Sitemaps basi­cally uses too much mem­ory (I think… PHP error report­ing isn’t turned on on this server so I can’t be 100% sure)… last time it suc­ceeded it wrote a 3MB file I think. Could also be a gzip related issue but I doubt it (gzip works fine for other things IIRC).

So enjoy com­ment­ing again with­out a hor­ri­bly blank screen greet­ing you!

# by Josh on March 2nd, 2007 Tags: ,
| 3 Comments »

Seek IT: Web Programmer for new Christian youth site

Fancy that.

Please be pray­ing we find some­one good (or, suit­ably sin­ful but repen­tant and appro­pri­ately tal­ented, because there’s nearly no such thing as a good person).

Ad proper after the break: Read the rest of this entry »

Josh vs. the Snake

I’ve been bat­tling a Python for the bet­ter part of a week now. Mostly just in terms of cre­at­ing a nice habi­tat for it to inhabit, so that we can gather all man­ner of use­ful infor­ma­tion about the habits of pythons and inter­ac­tions of humans with things that the python does. I’d been win­ning most fights and attribut­ing the fact they arose at all to my slowly becom­ing famil­iar with the way it worked at all.

I’d been doing some research on this par­tic­u­lar kind of snake for a cou­ple of months before I decided it looked like a GoodThing™ to be wrestling with, so I knew a bit about it rel­a­tive to some­thing else that I knew a bit about (enough to be dan­ger­ous, as is appar­ently the case with 95% of the world’s PHP devel­op­ers). I knew that it was slightly more strongly typed than PHP, but didn’t really think that was some­thing I’d have to know about.

Ba-baauummm.

Error in formatting:__str__ returned non-string (type int)

Oh, come on, just play with the pretty lit­tle num­ber. Grum­ble grumble.

I am in the strangest place right now. It’s 1.30 in the morn­ing on a week­night and I’m writ­ing code, but I’ve spent most of the day going between Pho­to­shop and a cock­tail of a cou­ple of shell ses­sions mixed with php­MyAd­min and a bit of Django doc­u­men­ta­tion. It’s cool being able to write use­ful code again (and, bet­ter still, I am work­ing on code to solve prob­lems I’d be itch­ing to solve for our own min­istry con­text at TACKLES/Matthias but am being paid to do it under the aus­pices of the CYIADA project, which means I can afford to spend more time and do it prop­erly!), but it’s pos­si­bly even cooler to have ready access to great design tools at home since last week — qual­ity tools are an awe­some blessing!

# by Josh on February 13th, 2007 Tags: ,
| No Comments »

Django on .Net

You can run Django in Iron­Python under .Net. Awe­some. A Windows-based server is sud­denly a choice again, which is… fan­tas­tic. Mostly for pip­ing doc­u­ments through MS Office prod­ucts for index­ing and PDF gen­er­a­tion, because OO.o is great with Word docs but not so great — font siz­ing issues, etc. — with other things, espe­cially Pow­er­Point, which could account for up to a quar­ter of the con­tent con­tributed by users, I’d say. So I can run native MS Office -> Post­Script export -> ps2pdf processes, and MS Office -> Hor­ri­ble XML -> Scrub markup fil­ters -> Search index, with­out hav­ing to bat­tle with Wine, etc.

Of course, the sec­ond process would prob­a­bly ben­e­fit from using OO.o as a pro­cess­ing envi­ron­ment, but that’s equally achiev­able on a Win­dows or *nix platform.

So many fears about plat­form (OS and lan­guage) have been suf­fi­ciently allayed. Which is kind of annoy­ing, because, all of a sud­den, .Net is actu­ally an option. I’m still con­fused over data­bases though, so there’s plenty of befud­dle­ment to go around. Ulti­mately it doesn’t mat­ter a great deal if we find the right devel­oper (for what­ever lan­guage… except obscure things like Smalltalk and Ruby … oh did I say that? … doo be doo — just for future-proofing/maintenance rea­sons), which, hope­fully, we will. Another meet­ing about money for this thing is hap­pen­ing on Decem­ber 13th, so prayer is very wel­come for that! I want $35,000 to spend over about two and a half months to pay one other devel­oper and out­source design, as well as myself, of course (the front-end dude). By the end of that time we’ll hope­fully have an absolutely fan­tas­tic solu­tion that will mag­i­cally pro­pel (not that I really want to use Pro­pel, because that’s for PHP ;-)) itself for­ever… yeah, right.

We’ve got a half-baked busi­ness plan for this thing (by half-baked, I mean it’s all stuff I’ve writ­ten and the real gurus haven’t had any­thing to do with the num­bers, etc., so it’s not really autho­r­a­tive) that should get it out of the red by a cou­ple of months in (which is ridicu­lously quick… another rea­son to think it’s half-baked) and allow for clean­ing up all the bits we missed in the hec­tic two and a bit months it was orig­i­nally thrown together in, but, at the same time, it’s going to be par­tially depen­dent on licensed, pub­lished (dead tree) con­tent (i.e. not just user-contributed stuff, which, longer term, will hope­fully account for the bulk of sales — the profit mar­gin is lower, but it’s also eas­ier to move more units because of the sheer scope of con­tent we’re hop­ing will be available) — so because we’re licens­ing that rev­enue is going to be eaten into by pub­lish­ing divi­sion and other con­tent sources.

All of that is, of course, depen­dent on peo­ple want­ing to use these things (they do, but from there it’s a ques­tion of mak­ing the prod­uct known to them and mak­ing adop­tion easy) and being okay with shar­ing stuff they’ve writ­ten. Some knee-jerk reac­tions have been neg­a­tive to that, but the objec­tions were accom­pa­nied by acknowl­edge­ment of a need to think more about what shar­ing con­tent is doing — that is, why we’re both­er­ing to cre­ate this site anyway.

Which, I have realised, I have not shared here yet. I want to write it another time because I think I’m get­ting clearer at explain­ing what we’re try­ing to do every time I try, so it’s no bad thing repeat­ing myself. Here’s a brief overview of what Josh does (or, is try­ing to do) at Youth­works.

# by Josh on November 30th, 2006 Tags: , , , , , ,
| No Comments »

Eclipse rocks my socks and covers my ass

I just had my butt saved mas­sively by Eclipse.

I’m not even using it with SVN/CVS but local ver­sion­ing fixed an acci­den­tal over­write. Best. App. Ever. It just secured its place as my markup devel­op­ment tool of choice. I used to be ambiva­lent about it where there wasn’t any PHP (using the excel­lent PHP Eclipse plu­gin) involved, because of lack of syn­tax high­light­ing and what­ever else (this can be reme­died very quickly using the Eclipse Web Stan­dard Tools (WST) sub­pro­ject, but it isn’t installed by default), but for every­thing else it offers, and for the inevitable tran­si­tion into a pro­gram­ming lan­guage once projects reach a cer­tain stage, it’s so worth using ear­lier in the process anyway.

*happy-relieved sigh*

# by Josh on November 3rd, 2006 Tags: , , ,
| No Comments »