Title: PHP error
Last modified: February 22, 2018

---

# PHP error

 *  Resolved [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/)
 * Hi
    I am getting time to time a php error: 2018/02/22 19:21:31 [error] 30312#
   30312: *15460 FastCGI sent in stderr: “PHP message: Error You have an error in
   your SQL syntax; check the manual that corresponds to your MariaDB server version
   for the right syntax to use near ‘0’ at line 1 de la base de datos de WordPress
   para la consulta 0 realizada por do_action(‘wp_ajax_gktpp_post_domain_names’),
   WP_Hook->do_action, WP_Hook->apply_filters, GKTPP_Ajax->gktpp_post_domain_names
   PHP message: Error You have an error in your SQL syntax; check the manual that
   corresponds to your MariaDB server version for the right syntax to use near ‘
   1’ at line 1 de la base de datos de WordPress para la consulta 1 realizada por
   do_action(‘wp_ajax_gktpp_post_domain_names’), WP_Hook->do_action, WP_Hook->apply_filters,
   GKTPP_Ajax->gktpp_post_domain_names” while reading response header from upstream,
   client: 89.141.236.194, server: intersindicalrm.org, request: “POST /wp-admin/
   admin-ajax.php HTTP/2.0”, upstream: “fastcgi://unix:xxxxx.sock:”, host: “xxxxxxx”,
   referrer: “[https://xxxxxxxx](https://xxxxxxxx)
 * Wen I do a post preview.

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

 *  Plugin Author [Sam Perrow](https://wordpress.org/support/users/samperrow/)
 * (@samperrow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/#post-10005560)
 * Thank you for letting me know about this bug. I tried creating a new post and
   previewing it on my local machine but could not reproduce the error message you
   got.
    Which version of PHP and WP are you using? Is there any way you can send
   me a URL that has the error message?
 *  Plugin Author [Sam Perrow](https://wordpress.org/support/users/samperrow/)
 * (@samperrow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/#post-10018153)
 * Found where the error occurred and it has been fixed in version 1.5.2.
    Please
   let me know if you catch anything else!
 *  Thread Starter [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/#post-10019196)
 * Sorry to come too late… I´m too bussy these days.
 * I´m glad to see you caching the bug.
 * I upgraded the plugin and if I see anything I come to report here.
    In other 
   hand, I have made a little change to the plugin: File: class-gktpp-send-hints.
   php Class: GKTPP_Send_Hints Line : 52 -54
 *     ```
       52 } elseif ( $file_type === '.woff2' || $file_type === '.woff') {
       53       $as_value='as="font"type="font/'.substr($file_type,1).'"; crossorigin ';}
       54 }
       ```
   
 * 53 and 54 are new lines, 52 is a modified line.
 * I don´t know if that is the best approach but it work to preload woff and woff2
   fonts files, not only the css files from google. This can make the FOIT don´t
   appear.
 *  Plugin Author [Sam Perrow](https://wordpress.org/support/users/samperrow/)
 * (@samperrow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/#post-10021976)
 * Good suggestion. I will try to include that in the next update.

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

The topic ‘PHP error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pre-party-browser-hints_7b3960.svg)
 * [Pre* Party Resource Hints](https://wordpress.org/plugins/pre-party-browser-hints/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pre-party-browser-hints/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pre-party-browser-hints/)
 * [Active Topics](https://wordpress.org/support/plugin/pre-party-browser-hints/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pre-party-browser-hints/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pre-party-browser-hints/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sam Perrow](https://wordpress.org/support/users/samperrow/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-266/#post-10021976)
 * Status: resolved