NGUYEN XUAN CUONG

https://nxcuong.ued.vn

Xử lý các lỗi hàm lỗi thời của PHP

Khi cài đặt một số source code PHP, đôi khi ta sẽ gặp lỗi một số các hàm bị lỗi thời,
Xử lý các lỗi hàm lỗi thời của PHP
Khi cài đặt một số source code PHP, đôi khi ta sẽ gặp lỗi một số các hàm bị lỗi thời, 
Deprecated: Optional parameter $namespace declared before required parameter $key is implicitly treated as a required parameter in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.config.php on line 198

Deprecated: Return type of BaseList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 101

Deprecated: Return type of BaseList::count($mode = COUNT_NORMAL) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 106

Deprecated: Return type of ListObject::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 220

Deprecated: Return type of ListObject::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 198

Deprecated: Return type of ListObject::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 207

Deprecated: Return type of ListObject::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.util.php on line 227

Deprecated: Return type of ModelMeta::offsetExists($field) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.orm.php on line 242

Deprecated: Return type of ModelMeta::offsetGet($field) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.orm.php on line 236

Deprecated: Return type of ModelMeta::offsetSet($field, $what) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/services.dev-app.io.vn/osticket/include/class.orm.php on line 239

để xử lý trường hợp này, tắt các thông báo lỗi, ta sửa nội dung trong file php.ini ở nhần error_reporting
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
Bạn đã không sử dụng Site, Bấm vào đây để duy trì trạng thái đăng nhập. Thời gian chờ: 60 giây