Title: php error: qtranxf_postsFilter() expected to be a reference
Last modified: October 19, 2020

---

# php error: qtranxf_postsFilter() expected to be a reference

 *  [parabrahman](https://wordpress.org/support/users/parabrahman/)
 * (@parabrahman)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-error-qtranxf_postsfilter-expected-to-be-a-reference/)
 * Hi,
 * I have the latest wordpress, but I keep getting Qtranslate php errors.
 * How can I solve this ?
 * `Backend log: PHP Warning: Parameter 2 to qtranxf_postsFilter() expected to be
   a reference, value given in /home/domains/mysite.com/public_html/wp-includes/
   class-wp-hook.php on line 287\n`
 * thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [István](https://wordpress.org/support/users/juhosistvan/)
 * (@juhosistvan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-error-qtranxf_postsfilter-expected-to-be-a-reference/#post-13711580)
 * Hi,
 * Yes, you can.
 * In the following file: \wp-content\plugins\qtranslate-x\qtranslate-frontend.php
   
   on line 523 you find “function qtranxf_postsFilter($posts, &$query) {” – remove
   the “&” from that line, so **it should look like this:** function qtranxf_postsFilter(
   $posts,$query) {
 *  Thread Starter [parabrahman](https://wordpress.org/support/users/parabrahman/)
 * (@parabrahman)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-error-qtranxf_postsfilter-expected-to-be-a-reference/#post-13790320)
 * thank you so much…
    So glad somebody actually answered on this mothballed plugin.
   I will certainly install the UPDATED version, of which I am very grateful. It’s
   on Github ( see post in support section on top )

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php error: qtranxf_postsFilter() expected to be a reference’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [parabrahman](https://wordpress.org/support/users/parabrahman/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php-error-qtranxf_postsfilter-expected-to-be-a-reference/#post-13790320)
 * Status: not resolved