I have this error, how can I solve this. very confusing

PHP Warning – yii\base\ErrorException
fopen(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0

  1. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2-httpclient/StreamTransport.phpat line 59
  2. yii\base\ErrorHandler::handleError(2, ‘fopen(): http:// wrapper is disa…’, ‘/home/utssurab/public_html/inlis…’, 59, …)
  3. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2-httpclient/StreamTransport.php at line 59– fopen(‘http://ip-api.com/json//203.142…’, ‘rb’, false, resource)
  4. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2-httpclient/Client.php at line 213– yii\httpclient\StreamTransport::send(yii\httpclient\Request)
  5. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2-httpclient/Request.php at line 302– yii\httpclient\Client::send(yii\httpclient\Request)
  6. in /home/utssurab/public_html/inlislite3/opac/controllers/SiteController.php at line 171– yii\httpclient\Request::send()
  7. opac\controllers\SiteController::actionIndex()
  8. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2/base/InlineAction.php at line 55– call_user_func_array([opac\controllers\SiteController, ‘actionIndex’], [])
  9. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2/base/Controller.php at line 154– yii\base\InlineAction::runWithParams([])
  10. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2/base/Module.php at line 454– yii\base\Controller::runAction(‘’, [])
  11. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2/web/Application.php at line 84– yii\base\Module::runAction(‘’, [])
  12. in /home/utssurab/public_html/inlislite3/vendor/yiisoft/yii2/base/Application.php at line 375– yii\web\Application::handleRequest(yii\web\Request)
  13. in /home/utssurab/public_html/inlislite3/opac/index.php at line 26– yii\base\Application::run()
    20212223242526
    $application = new yii\web\Application($config);
    require(DIR . ‘/config/oaidp-config.php’);
    //require(DIR . ‘/config/oaidp-util.php’);

$application->run();
$_COOKIE = [
‘PHPSESSID’ => ‘04qj8nflhovd53ru2op1qoto22’,
‘_csrf’ => ‘e165169196310d29099b9670a5cbffbe2f224c5fb37b4dfa045338732a8722e0a:2:{i:0;s:5:“_csrf”;i:1;s:32:“U92eL3-eXLi7T-EciSkNAAJdvQZ_Lb4H”;}’,
‘keanggotaanSession’ => ‘q2aq348gl1p4q6kobbeucik5q7’,
‘_LKDInlislite’ => ‘2b59290cd58473dcae98fddaed6a001a9a1e892d623b3b685d8ba72d4276d114a:2:{i:0;s:13:“_LKDInlislite”;i:1;s:32:“mG_A7mh1iyGyicjRJB89pT64VZE30hnK”;}’,
‘cf_clearance’ => ‘4s1f0OciVyMoxyjjpLmCPxdK9rNuAsVWKfaIlvAxygw-1717660492-1.0.1.1-GhZTNNvI2SAg66BoVIbC32cF6xHQ4NeAFEgkU47oXgB7ltW4GK53h9b3OGoOpg6qPphbk1G0dZ2QXM1fTCCB3Q’,
];

$_SESSION = [
‘__flash’ => [],
‘__returnUrl’ => ‘/digitalcollection/’,
];

Edit the php.ini file and enable it

allow_url_fopen = 1 //0 for Off and 1 for On Flag

thank you for responding, I am using cpanel, I have set allow_url_fopen off in the php sellector, and in the php.ini file I have added the code below. But this still shows the same error

display_errors = On
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 128M
post_max_size = 128M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/alt-php74"
upload_max_filesize = 128M
zlib.output_compression = On
asp_tags = On
magic_quotes_gpc = On
register_globals = On
allow_url_fopen = 1