Mengatasi PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

Pesan error "PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; xxx has a deprecated constructor"
Solusi:

Pada
class example{
function example(){

Ubah Menjadi:
class example{
function __construct(){


  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

CURL Error: 7 - couldn't connect to host

Apabila anda mengalami error CURL Error: 7 - couldn't connect to host di whmcs.maka anda belum...

Object status prohibits operation

Error Object status prohibits operation muncul karena beberapa hal berikut: Domain masih...

Fatal error: Allowed memory size

Apabila ada pesan error:Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to...

Gagal Install theme wordpress

Apabila ada pesan error "Pemasangan gagal: Paket tersebut tidak bisa diinstal....

1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

Saat mengimport database terjadi error "1227 - Access denied; you need (at least one of) the...

Powered by WHMCompleteSolution