qTranslate X Problem with PHP 7.1

Apa bedanya Programmer dan Developer ?

qTranslate X Problem with PHP 7.1 , When PHP 7.1 is enabled and you get this message on your site:

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /var/www/DOMAIN/htdocs/wordpress/wp-includes/class-wp-hook.php on line 298

Here how to solve qTranslate X Problem with PHP 7.1

You will find it in qtranslate-x/qtranslate_frontend.php

In line 523 change

function qtranxf_postsFilter($posts,&$query) {//WP_Query


function qtranxf_postsFilter($posts,$query) {//WP_Query

and in line 597 change

function qtranxf_excludeUntranslatedPosts($where,&$query) {//WP_Query


function qtranxf_excludeUntranslatedPosts($where,$query) {//WP_Query


Source : https://wordpress.org/support/topic/problem-with-php-7-1-2/#post-8908632

Tinggalkan Balasan

Another post

Embed Google Drive on WordPress

Download Plugin: https://github.com/woodwardtw/gfolder_embed Source article Author: Tom Woodward In December I wrote a tiny shortcode plugin

Bekerja di rumah

Bekerja di rumah sudah biasa bagi saya yang berprofesi sebagai UI Designer dan wordpress konsultan.