27 svi.

Kako natjerati qTranslate da radi sa WP 3.9.1

Kažu ovako:

1. Open your qtranslate.php file, find the line:
QT_SUPPORTED_WP_VERSION and in the brackets you should enter 3.9.1. For example, if the line is:

define('QT_SUPPORTED_WP_VERSION', '3.8.1')

you should change it to:

define('QT_SUPPORTED_WP_VERSION', '3.9.1')

2. You need to download three php files from here
qtranslate_hooks.php
qtranslate_javascript.php
qtranslate_wphacks.php

Then you need to upload these 3 php files in your qtranslate plugin folder and replace the existing ones.

Izvor: WordPress Support Forum – qTranslate

A ovaj qTranslate fix je za slučaj da se prikaže sljedeća greška:

PHP Catchable fatal error: Object of class WP_Post could not be converted to string in ../wp-content/plugins/qtranslate/qtranslate_core.php on line 455

Taj je prokušan i radi! Dakle u qtranslate_core.php treba zamjeniti

function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='', $before = '', $after = '') {

sa

function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='') {

i

return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date, $before, $after);

sa

return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date); }

Odgovori

Vaša adresa e-pošte neće biti objavljena. Nužna polja su označena s *