Penawaran Terbatas - mulai dari $0.80/bulan
00
HARI
14
JAM
41
MENIT
59
DETIK
Beli Sekarang
×

Pengetahuan Dasar

Temukan artikel terkait fitur, petunjuk penyelesaian masalah,
dan informasi teknis lainnya yang berkaitan dengan layanan hosting Hosting24.

PHP Fatal error: Cannot redeclare

Disunting pada:
PHP Fatal error PHP Fatal erro redeclare php redeclare function redeclare function PHP Fatal error Cannot redeclare

If you see error message 'PHP Fatal error: Cannot redeclare function' or similar error message in your script, it means there is a problem with your script code (it tries to declare the same function multiple times).

This error says that your function is already defined. This could mean:

  • you have the same function defined in two files
  • you have the same function defined in two places in the same file
  •  the file in which your function is defined is included two times (so, it seems the function is defined two times)

To help with the third point, a solution would be to use include_once instead of include when including your functions.php file -- so it cannot be included more than once.

  • Akses Website Builder
  • Jaminan Uptime 99.9%
  • Live Support 24/7
  • Powerful Control Panel
  • Jaminan Uang Kembali 30 Hari
Penawaran Terbatas!
Mulai dari
$
0
80
/bln
Hemat 90%
Beli sekarang