Addicted to Technology! [en]

[fr] Une longue tirade, malheureusement pas vraiment traduisible vu l'heure et la longueur, sur la dépendance à internet, qui est à mon avis un faux problème. J'y parle de notre définition de la technologie (une voiture, c'est aussi de la technologie, et on ne s'alarme pas des gens qui seraient "dépendants de leur voiture" comme on le fait de ceux qui sont "dépendants de leur ordinateur"), de la valeur (petite) généralement accordée aux rapports humains qui passent à travers un ordinateur, de l'insuffisance de la "déconnexion" pour résoudre un problème d'utilisation excessive de cet outil, puisqu'il reste un outil valable et même indispensable pour certains, même si c'est un lieu privilégié de fuite.

Help! we’re all becoming addicted to technology! Think of it… we’re soon going to be merged to our computers and cellphones, and we already have a hard time living without them. Heck, we can’t even spend a day without chatting or checking our e-mail! Or our blog comments! Where is the world going?

What technology?

Let’s take a few steps back, shall we? First of all, please define technology. Do we consider that we are “addicted” on our cars? Our clothes? Our flats? The postal system, goods manufacturing and distribution, the newspaper? Oh, but those things are actually necessary, not superfluous like all this internet/computer/techy stuff. That’s what we mean by “technology”. People could communicate very well without IM and cellphones and e-mail, couldn’t they? So, shouldn’t we strive to remember that “real” human relationships happen outside the realm of all this “technology-mediated” communication?

Wrong.

Cars are technology. The banking system, and similar infrastructures our world relies on, are in their way a form of technology, and certainly, built upon technology. People who argue that cars, fixed landlines, or shoes are more “necessary” than IM are simply stuck with views on what “technology” is and its value that are dictated by the state of the world when they came into it. (Read original material by Douglas Adams.)

We consider things like fixed phones and the postal system like something we need because they have been around for so long that our society and the individuals inside it have completely adapted to having them around, relying upon them, and using them. It is “normal” to feel uncomfortable or jittery if your phone landline is cut or if your watch breaks down. But somehow, it is not “normal” to feel uncomfortable or jittery when we can’t check our e-mail for 24 hours.

Computers, the internet, and the various programs we use are tools, like the phone and our vehicles. They allow us to get things done, interact and connect with others, and also enjoy some recreation. Of course, they can be over-used. Of course, some people will have an unhealthy or even pathological utilisation of them. But they differ from the classical objects of “addiction”, like drugs, which (usually) do not serve a directly constructive purpose.

Addicted to our cars

I find it very problematic to speak about “addiction” regarding computers or the internet, partly because it makes it look like the problem is with the tool (instead of the person), and partly because it is very difficult to draw the line between healthy and unhealthy use of the tool without taking in many environmental and personal factors.

I think that making a comparison between computer and car usage is quite enlightening in that respect. They have in common that they are a form of technology, they have a use, and can be abused. Yet we worry about addiction to computers, but not so much about addiction to cars. Let’s have a closer look.

A car is not a vital necessity. Before cars existed, humanity managed to survive for quite a long time, and wasn’t necessarily worse off (I guess that judgement depends on one’s view of progress). However, nowadays, depending on where you live and what your lifestyle is, it’s hard to get by without a car (though possible by making some arrangements). Would we consider somebody who uses their car everyday “addicted”? Most certainly not, because probably the main reason the car is needed is to commute to work. But what if one likes going to drive around in the countryside every week-end? Or takes the car to drive to the store when it is 5 minutes away on foot? Or uses the car for comfort, when public transport could be used? What about the distress one can end up when a car breaks down and has to be taken to the garage? Would anybody dream of speaking of addiction here?

Just as the car allows us to easily cover long distances, the computer allows us to do things we could not normally do without. It’s technology. Now, if the way we live tends to require or expect us to do these things, the technology becomes “necessary”, and not “superfluous”. Makes sense?

Nurturing online relationships has little value (not)

One problem with applying the reasoning I did for the car to the computer has in my opinion been touched upon in the LIFT’07 panel I mentioned previously: the blurring of the distinction between what is “work” (ie, “necessary”) and “personal” (“not that necessary”). Aimlessly chatting on IRC can actually be very important for my professional life. In general, taking care of one’s network (really: taking care of the relationships we have with other human beings we know) is something which should not be considered “superfluous”. During the panel, Stefana Broadbent mentioned that technology allowed us to actually keep alive (“manage”) a greater number of relationships than what we would be capable of without. Which leads us to the second problem: human relationships which take place “through the internet” are less valued in today’s world than the “real” ones which take place face-to-face.

What’s missing here is that “virtual” (how I hate that word in this context) interaction is not there to “replace” face-to-face interaction, or traditional communication technologies like the written letter, the fax, or the phone. IM, chat, blogging and e-mail most often keeps people in touch when they would not be communicating at all. I would not be keeping friendships alive across the Atlantic without my computer. And some of these friendships are no less valuable than the relationships I have with people I get to see in the flesh more often because they live in my hometown.

But more than that, these “poorer” channels of communication open up different dimensions in the way we relate to others. I’ve heard this said twice recently (though I’ve been aware of it through personal experience for years). First by Regina Lynn in her (well worth reading) book The Sexual Revolution 2.0. At some point, she explains that for those who are used to texting and IMing in the context of a romantic relationship, the absence of these “channels” makes it feel like there is something missing in the relationship. Second, Stefana Broadbent (again on the LIFT’07 panel, link above) mentioned that the arrival of Skype and VoiP did not kill chat — people are still chatting even though they could use the richer communication channel and actually talk.

This is not surprising. We know that some things are easier to say or more adapted to this or that communication channel. It’s not news either — using letters or the phone rather than face-to-face is not always a choice made for questions of distance or availability.

If not addiction, then what?

Of course, as I mentioned, there are unhealthy uses of computer technology. And computer technology has characteristics that help us get “hooked”, so it won’t be surprising that people might use it compulsively or excessively. And for people who for a reason or another (and I at times can include myself in that lot) need to “escape” life/reality/pain, goofing around aimlessly online or chatting for hours with random strangers can be used as an alternative to getting drunk/stoned/passing out in front of the TV/reading all Harry Potter books cover-to-cover without interruption. But is it right to talk about “addiction” in such cases?

Whatever you call it, the problem here is that you can’t just tell the people to “unplug” as a solution. For most people who have built part of their life around the internet, the computer is a valuable tool for work and social life. And anyway, even with substance abuse addictions, going “cold turkey” does not solve the real problem, though it’s usually better for your health. (I have personal experience from “the other side”, here: I have never in my whole life even tried smoking a cigarette, because I sense that if I did, there are high chances I would turn into a heavy smoker. I’m not free. One could say I have an addiction problem, even though it is not manifest in substance abuse. It’s latent and finds an expression in total abstinence.)

If the computer is used excessively, it is necessary to address the real underlying problem. The “thing” that makes people need to escape to somewhere. Because the line between “normal use of the tool” (I need to chat to some extent to keep in touch with my friends/family/collegues) and “excessive use” (I spend all my free time chatting, forget to eat, and don’t go out anymore) is drawn in quality rather than quantity and does not comprise a clear border like a different environment, schedule, or tool, the “easy” solution of “quitting” does not work.

Then, how does one determine if one’s use of the computer is excessive? I like to say that the main defining criteria for this kind of problem is pain. Is the intensity with which one uses the computer (or cellphone, or whatever) a source of suffering? Does the person feel that it’s out of control, and would like to do something about it? Is it having concrete effects like work loss, strain on relationships, or is there dissimulation regarding the time spent at it, hinting at a general unease about the time that is used on the computer? The secondary criteria would be purpose. Addiction or escape serve a purpose (shields one from something). Is it the case? What is this purpose? It’s not a simple question, and it often doesn’t have a simple answer, and addressing it might even involve a therapist.

Not that addicted…

I find that the mainstream press and certain specialists (doctors or teachers I’ve met) are a bit quick to shout “addiction” when faced with the importance the computer and the internet have taken in our lives. I’m not an “addict” because I get uncomfortable if I haven’t accessed my e-mail in 24 hours. I’m not an “addict” because I chat to my friends from the other side of the pond every day. I’m not an addict because when I think of something interesting, I feel an urge to write about it on my blog. I’m not an addict because I need my computer to take notes during a conference, rather than a paper and pen with which I’m illegible and which hurts me. I’m not an addict because I sometimes choose to stay in and catch up with what people I know are saying on their blogs rather than go out clubbing.

Yes, when I’m not doing too well I will easily turn to my computer to escape from the world or myself. Before I had a computer and a social life on the internet, I used to turn to the TV in such occasions, or drown myself in books or music. One isn’t better than the other. But here, clearly, the problem is me, and not the nasty technology.

If you’ve read all this, let me know what you think. I suspect I might have taken a few shortcuts here and there, and I’ll be more than happy to make them explicit if you point out what isn’t convincing.

Creative Commons and Ads on Blogs [en]

[fr] L'utilisation de contenu Creative Commons comportant une licence permettant uniquement une réutilisation non-commerciale des oeuvres n'est pas autorisée si le site a du contenu publicitaire. Logique, mais j'ai bien peur de ne pas avoir fait assez attention à ça jusqu'ici...

Creative Commons and the limit between personal and commercial use came up in the conversation in the LIFT panel moderated by Philippe Mottaz.

Over the last months, I’ve had this question nagging at me in the background: if you put ads on your blog, are you allowed to use NC Creative Commons content or not? I kind of suspected the answer would be “no”, but kind of preferred not knowing for sure. A little chat with Stowe just lifted my last doubts (LIFT is good at lifting stuff).

Now: “ouch, have I made my clients aware of this or not? have I led them to mistakenly believe the answer was ‘yes’?” Need to check on that. And also take a closer look at third-party CC content I might have included on this blog…

Lara Srivastava [en]

Lara Srivastava

Mobile phone everywhere in our life.

We’re at the beginning of the “digital revolution”.

Much of human relationships is now mediated by some form of technology. We spend more time consuming digital media than any other media.

Acceleration: what on earth are the next ten years going to bring?

Social networks: added value to the individual, especially when the social network is visible by others.

Connectedness and the marginalisation of space and time in our interactions.

We keep our social contexts separate because of space and time. With technology, we get to merge them.

Boundaries.

Shared experiences create friendship and intimacy. *steph-note: great minds meet*

We don’t live by scientific methods or statistics.

Ambiguity of communication: open-endedness (e.g. who ends the conversation, bye-bye ping-pong)

Need to re-create ourselves online. => “who am I?” Shadows of ourselves everywhere we go. Painting ourselves online. We fragment our identity online. Where do we find our “true” identity in there?

Managing online identity is a bigger and bigger challenge (not talking about privacy or legal issues here). What design to facilitate this?

“Vivons heureux, vivons connectés!”

More LIFT Notes: Sampo Karjalainen, Lee Bryant (and Stowe again) [en]

As always, can contain inaccurate material.

Sampo Karjalainen

Habbo: hang-out place. You get a character, you can configure it. steph-note: looks like a very lo-res version of Second Life

Sampo Karjalainen

There are games inside Habbo.

What makes people come back? People can create their own room/spaces. Can buy furniture (in-game credits), pets, kissing booths, armies, banks. steph-note: this really looks like pixelised Second Life. Question: can you create stuff and objects as you can in Second Life? People seem to be having a ball in Habbo, in any case.

Playful environment, though people might find it “uncool” to say they’re “playing” in there. A part of unexpected in what people did with Habbo.

Provide building/playing blocks. Intuitive interaction. Get people in the mood for play.

Lee Bryant: Collective Intelligence for the Enterprise

Brain Leak

Original photo by Violator3 on Flickr.

Basic problem: wasting a lot of brain power in large organisations.

Our IT systems don’t understand how we work. People are great at pattern matching. We don’t go “yellow object, subset with large hairy objects, teeth => lion” — we just shout “Lion!”.

We need to feed our minds, not the machine. steph-note: Lee has got much better at slides since BlogTalk 2004

Many intelligent people inside organisations are surprisingly open to using social tools.

Lee Bryant

Usually, enterprise tools get worse the more people use them. Social tools get better the more people use them.

There is no such thing as a global collective intelligence. Collective intelligence exists only within a defined community.

Large large companies (>1k) have enough scale to make these things work, and do internal versions of these tools.

Bottom line for doing social stuff:

  • potential cost savings if we work in a smarter way
  • multiplier effect on productivity
  • greater peripheral vision
  • less duplication of effort
  • closer, more responsive client relationships

Basic principles: reading, writing, filtering.

Over time, information starts to find you. If I miss something in my news reader, it’ll probably pop up again, because somebody else in my network is going to blog/link/del.icio.us it.

Concretely:

  • feeds everywhere
  • feed library management
  • filtering tools
  • clipstream tools
  • social search

Importance of engagement and context. There is no magic tool. Adapt the solution to the context and situation.

Engaging people with new ways of working is not easy.

There is perception of dangers, risks, security — and the “real” evalutation.

Stowe Boyd

This is a shorter version of the workshop notes, so I’ll send you there. Or read [Bruno’s notes], which, as always, are quite complete.

Stowe Boyd: Building Social Applications [en]

Warning: these are my notes of Stowe‘s workshop at LIFT, meaning my understanding and interpretation of what he said. They might not reflect accurately what Stowe told us, and might even be outright wrong in some places. Let me know if you think I really messed up somewhere.

Update 05.2007: enjoy the slideshow and the video of his presentation (not the workshop!).

Questions to play ball with:

  1. What makes social applications social (or not)
  2. How can we make applications more social?
  3. What are the common factors in successful social applications?
  4. What is worth building?

  5. iTunes vs. Last.fm; also non-social applications which implement, at some point, some social component.

“Software intended to shape culture.” Stowe Boyd, in Message, August 1999

steph-note: a step further than “groupware”

LIFT'07... Stowe Boyd

Applications which are qualitatively different. But they haven’t replaced the rest: people are still building applications which allow people to buy stuff online. But we’re looking for ways to stick the humans back in there (“what do the top 10 authorities on cellphones recommend?”)

Read: The Great Good Place by Ray Oldenburg (Third Place, not home and not work)

Decreasing affiliation in the USA (Putnam — sp?). People spend less time “hanging out” with people. steph-note: cf. danah/MySpace More TV. Commuting isn’t that significant, but hours in front of the TV is. The light at the end of the tunnel, the only hope we’ve got left, is the internet. Social hours spent on the internet are hours not spent watching TV (steph-note: yep!)

TV is not involvement in people, but in this “entertainment culture”. TV reached lowest numbers in the USA since ’50s.

One way we can measure the success of a social application is how much it moves us in that direction.

Social: me first. Put the individual in the centre. Look at the difference between traditional journalism (disembodied third voice) and blogging (first person, you know who’s writing and who’s reading). Need to start with needs and desires of the people using it (?).

Adoption happens in stages. First, the application needs to satisfy the needs of an individual, in such a way that he/she comes back. And then, there needs to be stuff to share that encourages the individual to invite his friends in.

my passions — my people — my markets

Start with the people. Put the people in the foreground (but how?) Easy to fail if you don’t do that right. How are people going to find each other? Second, support their networks/networking.

Only third: realisation of money — markets — shipping etc.

Give up control to the users: “the edge dissolves the centre”.

To review a social app, you need to use it “for real” over an extended period of time.

Xing: the edge doesn’t dissolve the centre. E.g. can’t create a group. Need to ask them by e-mail, and they try to control group creation and management.

Build an environment in which people are “free”. Allow them to find each other.

Success factors for a social application: me first and bottom up. Otherwise, it won’t spread.

Blogging: primary goal is social interaction and networking (steph-note: half agree, there is the “writing and being read and getting some recognition” goal too — and that is not necessarily social interaction and does not necessarily lead to network contacts)

What suicide girls get right: low price, real people, real lives, social stuff like chat, pictures, etc. They have the connections between the people as the primary way to go around.

Semi/a-social

  • iTunes
  • Bestbuy.com
  • Pandora (until recently)
  • After the fact (eBay: reputation, Netflix: friends in a tab, Amazon: recommendations from other users, Basecamp: not that social, fails some of the critical tests)

The Buddylist is the Centre of the Universe…

A case against IM being disruptive: the user chooses how disruptive the client is (blings, pop-up messages, etc… same with e-mail)

Totally acceptable to not answer on IM. But also, maybe at times your personal productivity is less important than your relationship with the person IMing you.

“I am made greater by the sum of my connections, and so are my connections.”

(Give to others, and they’ll give to you. Help your buddies out, be there for them, and others will be there for you when you need them.)

List of hand-picked people who are on your list.

Groups help huge communities scale, in the way they bring them down to manageable sizes for human beings again. (Dunbar constant, roughly 150 people.)

Six degrees of connection doesn’t work. People are strangers. Even second degree is really weak.

Difference between people you really talk to, and “contacts” (often people will have two accounts => should build this kind of thing into the service — cf. Twitter with “friends” and “people you follow”).

Me, Mine, and Market.

Market: it’s the marketplace where the application builders are going to be able to make money by supporting my interaction/networking with “mine”.

You can’t “make an app social”, you need to start over most of the time.

Think about the social dimension first, and then what the market is. E.g. social invoicing app, what could the market be? Finding people to do work for you. And then you can invoice them using the system.

E.g. Individual: “I need a perfect black dress for that dinner party.” => who knows where to shop for the most fashionable stuff? => market = buying the perfect black dress, with commission to the recommender. (New social business model!)

Facebook profile: all about flow, it’s not static. It’s a collection of stuff going on in my world. Information about my blog (posts), friends… I don’t have to do anything, and it changes.

It represents my links to the world. People want to belong. Be in a context where what they do and say matters. Make it easy for users to find other people who will care about them.

Orkut failed because it was just social networking for the sake of social networking. Not targeted at a specific group of people. Nobody who cares! Disease-like replication and then died down. Nothing to do there.

Swarm intelligence. People align around authority and influence. Some people are more connected then others. Inevitable. Swarmth = Stowe-speak for measure of reputation. As soon as reputation brings something to those who have it, charlatans step in and try to figure out how to game the system. Need to be aware of that, to discover those cheating mechanisms and counter them.

General principle: things are flowing, and we want to support the rapid flow of information (ie, stuff that goes in my profile). “traffic”: do you make it possible for people to get information from a variety of sources delivered quickly to them? (e.g. Facebook bookmarklet) (traffic=possible metric).

The media hold the pieces, but not the sense of the conversation. You need to immerse yourself into the flow to get it. How transformative is it to get a constant flow of information from people you care about? Can’t evaluate that from the outside.

Tags

cf. David Weinberger: tags matter for social reasons. The power of classification is handed out to the users. They use it to find information and to find each other. They define implicit social groupings.

If people don’t “get” tags, the interface isn’t good. Because the concept is really simple. (e.g. Flickr, del.icio.us get it right)

Discovery

Primary abiding motivator of anybody on the internet: discovery (things, places, people, self)

One of Stowe’s pet peeves: Groups and Groupings

Networks are asymmetric, accept it. Everybody is not equal in a group. The groups are always to some extent asymmetric.

Groupings are ad hoc assemblages of peope with similar interests (from my point of view). (My buddy list categorisation.)

Groups try to be symmetric.

Community of tags. They happen automatically.

Power Laws

There will always be people with more power than others, get over it. The recommendation of somebody with more swarmth should count more than that of one with no swarmth.

Accept and work with the imbalance of power.

But careful! The people decide who has more swarmth. And you need to constantly counter the games. Natural social systems are self-policient (sp?).

Reputation

Measure and reward swarmth (steph-note: !== popularity, quantity)

Reputation is not transportable from one network to another.

Deep Design

  • last.fm (neighbours!)
  • upcoming.org (events are nothing without people!!)
  • Facebook
  • ThisNext (about design and fashion)

First, just build the social app. Once the social stuff is in place, build the market (see Last.fm).

Journal where you can integrate music references. With backlinks from artists.

Mistake? tags aren’t source of groupings.

steph-thought: Flickr groups are not just about people, they are about editing content (creating collective photo albums).

If you have an existing social app, and an entrenched body of users, to make people switch to your new product you need to be an order of magnitude better.

Tag beacons: a recommended tag (e.g. lift07)

If you make people tag an item, the tags used stabilize over time. After a while, the same 10-15 tags. Little chance a new user two years latter will suddenly introduce another tag.

ThisNext is pretty. A piece of social interaction stuff missing however — can’t communicate with other people. Profile just leads to recommendations.

Cautionary Tales

Basecamp and the Federation of Work: multiple logins, domains — fragmentation. Wanted to be able to pull everything in a single place. Not simple to keep track of everything one has in the system. Pervasive static models with hardly any flow. It’s an online groupware app, not a social app. It doesn’t put me in the foreground.

Outside.in is about finding people who are in your zipcode. I remember Stowe did a post on this some time back. “Where’s the people?”

You only get one first launch. What’s the point of missing it by doing it before you got to the social tipping point?

Blinksale: where’s the market? (invoicing thing)

Explorations

Where is all this going? All commerce on the internet in the future will be social. Put in context of social recommendations etc (perfect little black dresses). A social iTunes — what would it look like? They could acquire Last.fm and integrate them to iTunes, for example. I could recommend music to my friends via iTunes…

Calendars are hard! We’re still waiting for the perfect (at least good) calendar-sharing system.

Social browsing… “What should I look at today, based on recommendations of these n people I really find smart?”

Safety/privacy concerns: solutions we have in the offline world need to be emulated online.

Tomorrow Will LIFT You Up! [en]

[fr] Demain commence la conférence LIFT à Genève. Deux questions capitales: est-ce que la conférence sera retransmise en direct, et y a-t-il un backchannel officiel?

Yes, the LIFT conference will be taking place in Geneva from tomorrow Wednesday until Friday. If you’re there and want to meet up, drop me a line — and if you’re not there, you can drool over the program and vow that you’ll be there next year.

Kevin, who is taking that vow as we speak, asked me two important questions:

Update: I’ve just announced the backchannel on the collaborative LIFT Flow blog.

WordPress not Sending Pings Anymore [en]

[fr] WordPress fait des caprices et a arrêté d'envoyer des pings automatiques (trackback, pingback) sans me prévenir. Grinche.

Once upon a time, I loved WordPress because I didn’t have to enter trackback addresses manually anymore — at least, not when I was linking other WordPress blogs, or pingback-enabled blogging tools.

Those days are gone, and I’m not quite sure when it started. I’ve been having a creepy feeling for sometime that I wasn’t getting as many “internal” (CTTS to CTTS) trackbacks as I should. Today, I checked.

Heck.

You know me, I specialize in weird, not-so-reproducible issues. So, it wouldn’t be that WordPress has stopped sending pings altogether, no, that would be too simple.

WordPress has stopped sending pings *most of the time*. But sometimes, every now and again, it sends one. Or a couple. Or three.

What is going on, would you say?

Web 2.0 … The Machine is Us/ing Us [en]

[fr] Une vidéo qui vaut vraiment la peine d'être regardée (si vous comprenez l'anglais).

I really enjoyed this video and want to share it with you.

Thanks to Joi for pointing it out on IRC.

Basic Bilingual and Bunny's Technorati Tags Plugins Updated for WordPress 2.1 [en]

[fr] Mise à jour de mes deux plugins pour WP2.1 qui les cassait gravement. Mises à jour pas testées, à manier avec précaution.

Thanks to Sudar, who took the trouble to fix Bunny’s Technorati Tags so that it worked with WP2.1, here are up-to-date version of these two plugins, Bunny’s Technorati Tags and Basic Bilingual:

The previous, WordPress 2.0-compatible versions are still available:

Warning: these old versions suffer from the empties custom fields problem. Don’t use them with 2.1.

Disclaimer: I’m swamped with work, haven’t upgraded yet, and haven’t tested the new versions of the plugins. Use carefully. Let me know if there are glitches. Bunny’s Technorati Tags is the very version Sudar put online (I’m making it available here mainly as there are links to it out there beyond my control, not the least from the wp-plugins.org wiki which has been closed to editing due to spam.) For Basic Bilingual, however, I adapted the code Sudar had added to Bunny Tags, but I don’t fully understand if it works. Backup, try gingerly, and please leave comments here to let others (and myself) know if it works or breaks.

Thanks.

Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked! [en]

[fr] Le problème avec wp-capabilities.php qui fait qu'on peut se retrouver "exfermé" (enfermé dehors) de son blog WordPress (typiquement en cas de changement de serveur) semble avoir sa source dans le contenu du champ wp_user_roles dans la table wp_options. En particulier, pour la version française, "Abonné" est un rôle d'utilisateur, et en cas de problèmes d'encodage MySQL, le caractère accentué sera corrompu, causant ainsi l'erreur.

Il suffit de remplacer le caractère fautif dans PhpMyAdmin, et on retrouve l'accès à son blog. Bon, reste ensuite à régler les questions d'encodage... mais c'est déjà ça!

Finally. At last. Endlich. Enfin.

Once more, while trying to transfer a WordPress installation from one server to another, I found myself facing the dreaded problem which locks me out of my WordPress install with a rather cryptic message:

Warning: Invalid argument supplied for foreach() in /home/user/wp/wp-includes/capabilities.php on line 31

(Your lineage may vary.)

What happens is that WordPress cannot read user roles, and therefore, even though your password is accepted, you get a message telling you that you’re not welcome in the wp-admin section:

Vous n’avez pas les droits suffisants pour accéder à cette page.

Or, in English:

You do not have sufficient permissions to access this page.

A quick search on the WordPress forums told me that I was not alone in my fight with wp-capabilities.php, but that many problems had not been resolved, and more importantly, that suggested solutions often did not work for everyone.

I’ve bumped into this problem a couple of times before, and I knew that it was linked to encoding problems in the database. (I’ve had my share of encoding problems: once, twice, thrice — “once” being on of the most-visited posts on this blog, by the way, proof if needed that I’m not alone with mysql encoding issues either.)

I’ll leave the detailed resolution of how to avoid/cure the MySQL problems later (adding
mysql_query("SET NAMES 'utf8'");
to wp-db.php as detailed in this thread, and as zedrdave had already previously told me to do — should have listened! — should prevent them). So anyway, adding that line to my working WordPress install showed me that the problem was not so much in the database dumping process than in the way WordPress itself interacted with the database, because the dreaded wp-capabilities.php problem suddenly appeared on the original blog.

Now, this is where I got lucky. Browsing quickly through the first dozen or so of forum threads about wp-capability.php problems, this response caught my eye. It indicated that the source of the problem was the content of the wp_user_roles field (your prefix may vary). In this case, it had been split on more than one line.

I headed for the database, looked at the field, and didn’t see anything abnormal about it at first. All on one line, no weird characters… just before giving up, I moved the horizontal scrollbar to the end of the line, and there — Eurêka! I saw it.

Abonné

“Contributor”, in French, is “abonné”, with an accent. Accent which got horribly mangled by the MySQL problems which I’ll strive to resolve shorty. Mangled character which caused the foreach() loop to break in wp-capabilities.php, which caused the capabilities to not be loaded, which caused me to be locked out of my blog.

So, in summary: if you’re locked out of your blog and get a warning/error about wp-capabilities and some invalid foreach() loop thingy, head for PhpMyAdmin, and look carefully through the wp_user_roles field in the wp_options table. If it’s split over two or more lines, or contains funky characters, you have probably found the source of your problem.

Good luck!