{"id":713,"date":"2022-06-20T05:01:24","date_gmt":"2022-06-20T05:01:24","guid":{"rendered":"https:\/\/blog.hostinger.io\/id\/support\/2022\/06\/20\/1583195-bagaimana-cara-memperbaiki-error-php-fatal-error-cannot-redeclare-di-hostinger\/"},"modified":"2022-06-20T05:01:24","modified_gmt":"2022-06-20T05:01:24","slug":"1583195-bagaimana-cara-memperbaiki-error-php-fatal-error-cannot-redeclare-di-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/id\/support\/1583195-bagaimana-cara-memperbaiki-error-php-fatal-error-cannot-redeclare-di-hostinger\/","title":{"rendered":"Bagaimana Cara Memperbaiki Error PHP Fatal Error: Cannot Redeclare di Hostinger?"},"content":{"rendered":"<p class=\"no-margin\">Error ini muncul karena skrip Anda mencoba mendeklarasikan fungsi yang sama beberapa kali. Artinya: <\/p><ul>\n<li>\n<p class=\"no-margin\">Fungsi didefinisikan dalam dua file terpisah<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Fungsi didefinisikan di dua baris di file yang sama<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Untuk dua kasus di atas, periksa pesan error untuk mengetahui lokasi file di mana fungsi ini dideklarasikan sebelumnya.<\/p><ul>\n<li>\n<p class=\"no-margin\">File di mana fungsi disertakan dua kali<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Error ini bisa Anda perbaiki dengan mudah menggunakan <b><a href=\"http:\/\/www.php.net\/manual\/en\/function.include-once.php\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">include_once<\/a><\/b> daripada <b><a href=\"http:\/\/www.php.net\/manual\/en\/function.include.php\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">include<\/a><\/b><i> s<\/i>aat menyertakan file PHP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Memperbaiki Fatal error: Cannot redeclare<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[205],"tags":[],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-pengembangan-website"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583195-how-to-fix-the-php-cannot-redeclare-error-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583195-como-reparar-el-error-fatal-de-php-no-se-puede-volver-a-declarar-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583195-comment-reparer-php-fatal-error-cannot-redeclare-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583195-bagaimana-cara-memperbaiki-error-php-fatal-error-cannot-redeclare-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583195-como-corrigir-o-erro-fatal-error-cannot-redeclare-function-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583195----php-cannot-redeclare-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts\/713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/comments?post=713"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts\/713\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/media?parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/categories?post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/tags?post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}