{"id":182984,"date":"2015-09-02T16:07:32","date_gmt":"2015-09-02T16:07:32","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/2015\/09\/02\/fatal-error-call-to-undefined-function-imageconvolution-in\/"},"modified":"2015-09-02T16:07:32","modified_gmt":"2015-09-02T16:07:32","slug":"fatal-error-call-to-undefined-function-imageconvolution-in","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/fatal-error-call-to-undefined-function-imageconvolution-in\/","title":{"rendered":"Fatal error: Call to undefined function imageconvolution() in"},"content":{"rendered":"<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0444\u043e\u0442\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0438\u0445 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u044b\u0435 \u043a\u043e\u043d\u0442\u0443\u0440\u044b. \u0415\u0441\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u043e\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0444\u0442\u043f, \u0442\u043e \u043e\u043d\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441\u0430. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c \u044d\u0442\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0438\u0434=1 \u0438 \u0445\u0435\u0439\u0433\u0442=1 \u0438 \u0444\u043e\u0442\u043e \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0415\u0441\u043b\u0438 \u0432\u0438\u0434=1 \u0438 \u0445\u0435\u0439\u0433\u0442=1 \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u0442\u043e \u0444\u043e\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440. \u0410 \u0432\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0438\u0437 \u044d\u0442\u0438\u0445 \u0444\u043e\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<p>Fatal error: Call to undefined function imageconvolution() in \/home\/papka\/domains\/site.com\/public_html\/wp-content\/themes\/mat\/includes\/theme-functions.php on line 3624<\/p>\n<p>\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0444\u043e\u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442.<\/p>\n<p>\u041d\u0430 line 3624 \u0432 theme-functions.php \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 (\u0436\u0438\u0440\u043d\u044b\u043c \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u0441\u0430\u043c\u0443 line 3624)<\/p>\n<pre><code>\/\/$file_contents = wp_remote_retrieve_body(wp_remote_get($resized_file));\n\n\t$image = imagecreatefromstring( file_get_contents( $resized_file ) ); \/\/ safe!\n\t\/\/$image = imagecreatefromstring( $file_contents ); \/\/ safe!\n\n\t$size = @getimagesize( $resized_file );\n\tif ( !$size )\n\t\treturn new WP_Error(&#039;invalid_image&#039;, __(&#039;\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f&#039;,&#039;ThemeStockyard&#039;), $resized_file);\n\tlist($orig_w, $orig_h, $orig_type) = $size;\n\n\tswitch ( $orig_type ) {\n\t\tcase IMAGETYPE_JPEG:\n\t\t\t$matrix = array(\n\t\t\t\tarray(apply_filters(&#039;sharpen_resized_corner&#039;,-1), apply_filters(&#039;sharpen_resized_side&#039;,-1), apply_filters(&#039;sharpen_resized_corner&#039;,-1)),\n\t\t\t\tarray(apply_filters(&#039;sharpen_resized_side&#039;,-1), apply_filters(&#039;sharpen_resized_center&#039;,24), apply_filters(&#039;sharpen_resized_side&#039;,-1)),\n\t\t\t\tarray(apply_filters(&#039;sharpen_resized_corner&#039;,-1), apply_filters(&#039;sharpen_resized_side&#039;,-1), apply_filters(&#039;sharpen_resized_corner&#039;,-1)),\n\t\t\t);\n\n\t\t\t$divisor = array_sum(array_map(&#039;array_sum&#039;, $matrix));\n\t\t\t$offset = 0;\n\t\t\t&lt;strong&gt;imageconvolution($image, $matrix, $divisor, $offset);&lt;\/strong&gt;\n\t\t\timagejpeg($image, $resized_file, apply_filters(&#039;jpeg_quality&#039;, 99, &#039;edit_image&#039;));\n\t\t\tbreak;\n\t\tcase IMAGETYPE_PNG:\n\t\t\treturn $resized_file;\n\t\tcase IMAGETYPE_GIF:\n\t\t\treturn $resized_file;\n\t}<\/code><\/pre>\n<p>\u041f\u043e\u043c\u043e\u0433\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443<\/p>\n","protected":false},"template":"","class_list":["post-182984","topic","type-topic","status-publish","hentry","topic-tag-fatal-error-call-to-undefined-function-imageconvolutio"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/182984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/182984\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=182984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}