• Resolved lofesa

    (@lofesa)


    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

    Wen I do a post preview.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sam Perrow

    (@samperrow)

    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

    (@samperrow)

    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

    (@lofesa)

    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

    (@samperrow)

    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.