Polylang Copy Updated

Polylang Copy is now in version 1.1.0. Goto Bitbucket and get the new version.

I’ve just added support for automatic translations! From now on you can decide if you like to translate only certain posts or pages in a particular language or switch to auto mode. Then every new created post or page will be translated immediately into all available languages considering allready existing translations.

Some screenshots:

Find new settings panel for Polylang copy

Decide which method you prefer:

In single translating mode you will get a dropdown below every entry’s quickedit menu

Any suggestions and bug reports welcome.


New Free WP Plugin: Polylang Copy

Sometimes work is boring and inefficient. While I was working on the relaunch of ClientSolutions website I had the idea to make copying of posts and pages to other languages more easy.

If you use Polylang (thanks for this great plugin) for translating your wordpress page too, you maybe interested in using my little plugin. It will add a dropdown to each row action in posts, cpt or page listings from which you can select a language to translate a post or page in. After that you will be redirected  to the edit screen.

Polylang Copy makes an exact copy of the item, including featured image, categories and tags. If there are translations of categories or tags they will be used instead of original cats or tags.

That’s all.

Updated: See this post for more information.

Developer Tools: Debug :hover etc. in Chrome

Did you ever try to get a css style for a hovered or active button or link? Today I tried to figure out, why the bootstrap btn-success don’t accepts my :active state style. Searching for a way to get this brings me to the simple solution:

Open developer tools in chrome (ctrl-shift-i or F12), select  the element (crtl-shift-c or the most left button in the menu bar) and then see this:


Click on the dotted button to get the context menu for this element:


Select the states you need and you will see the corresponding style in the style window and on the webpage.

In my case it was the combination of to states:


and not only :active.

Free Plugin: get-image

get-image – serve (tracking) images via php

get-image is intended to serve images from your wordpress installation to any other site via php as base64 encode image tag source. It includes rudimentary statistic to see, how often this image has been served.

What can you do with it?

Place it on other sites in your blog posts, place it as email footer logo in your emails or something else and see, how often this image is downloaded in total and in the current month. Since this small piece of code is open source feel free to enhance it’s functions and create pull requests on https://bitbucket.org/skurrilewelt/get-image or create issues in the issue tracker. Every comment is helpful and welcome.

How it works

Backend is short and easy. Here is the list view:


You can see the menu item ‘Request’ and the list view shows the already created items with title, image and the counts column. Every entry represents an image which can be served.

The edit view shows this:


You can enter a title to identify a little bit later an additionally short description. Then you can choose or upload an image and after that you will see in the text box the img tag which you have to place where the image should appear.

Thats all.

get-image creates a rewrite rule which manages the redirecting and responding the image as base64 encoded data.


Don’t know. Use it and have fun, you can download or clone here:



Duplicator ( LifeInTheGrid) SQL-Fehler

Der WordPress Duplicator ist ein Supertool, wenn man eine live oder lokale Wordpress Installation umziehen bzw. deployen möchte. Es gibt aber hier und da einige Schwierigkeiten und Fallstricke.

Im aktuellen Fall wollte ich ein live Projekt vom Kundenserver lokal duplizieren, um daran zu arbeiten. Duplicator meldete mir keine wesentlichen Fehler und erstellte problemlos das Archiv.

Bei der Installation auf meinem lokalen System allerdings stieg der Duplicator beim Einspielen des Datenbank Dumps aus. Ein Blick in die log Datei von Duplicator zeigte, dass das Erstellen der Tabellen bereits fehl schlug. Nachdem ich die MySQL Versionen überprüft hatte (live 5.5.28 und lokal 5.5.32) konnte das nicht das Problem sein.

Ich habe mir dann in der lokalen Installation die Datei database.sql angeschaut. Das Problem war die falsche Create-Anweisung im SQL Dump:

CREATE TABLE `wgo_options` (
 `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
 `option_name` varchar(191) NOT NULL DEFAULT '',
 `option_value` longtext NOT NULL,
 `autoload` varchar(20) NOT NULL DEFAULT 'yes',
 PRIMARY KEY (`option_id`),
 UNIQUE KEY `option_name` (`option_name`)

Die MySQL Doku sagt: TYPE keyword is depreciated (since 5.0) and not supported in MySQL5.5. Scheint also ein Bug in Duplicator Version 1.1.16 zu sein.

Aus dem heruntergeladenen Archiv die database.sql extrahieren und aus dem Archiv löschen. In Notepad++ TYPE gegen ENGINE getauscht und wieder ins Archiv hineinkopiert.

Bevor man jetzt die Installation erneut starten kann, muss die wp-config.php gelöscht werden, da Duplicator sonst (korrekterweise) den Fehler meldet, die Datei wäre bereits vorhanden, Das Duplicator die vorhandene wp-config.php nicht überschreibt, ist prinzipiell eine gute Sache.

Ein anderer Weg ist, Duplicator mitzuteilen, dass die Dateien manuell entpackt werden:


Danach läuft die Installation problemlos und die Datenbank kann installiert und migriert werden.