How to disable open_basedir.

Media Directory

Verified User
Joined
Aug 16, 2024
Messages
7

file_exists(): open_basedir restriction in effect.​

The following is my code:

public static function loadLang($file, $language = null, $dir = null) { self::ensureSettings(); call_user_func_array([get_parent_class($this), 'loadLang'], func_get_args()); } }

Something went wrong.​


file_exists(): open_basedir restriction in effect. File(/_global) is not within the allowed path(s): (/home/magazin2/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/).​


file_exists(): open_basedir restriction in effect. File(/_global) is not within the allowed path(s): (/home/magazin2/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) on line 170 in /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/language/src/Language.php

UnknownException::setErrorHandler​

Line file_exists(): open_basedir restriction in effect. File(/_global) is not within the allowed path(s): (/home/magazin2/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) on line 170 in /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/language/src/Language.php
Printing Stack Trace:
#0 [internal function]: UnknownException::setErrorHandler()
#1 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/language/src/Language.php(170): file_exists()
#2 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/language/src/Language.php(155): Minphp\Language\Language::loadLang()
#3 /home/magazin2/domains/magazinedirectory.net/public_html/app/app_model.php(0): Minphp\Language\Language::loadLang()
#4 /home/magazin2/domains/magazinedirectory.net/public_html/app/models/currencies.php(19): AppModel->__construct()
#5 [internal function]: Currencies->__construct()
#6 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(275): ReflectionClass->newInstance()
#7 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(254): Loader::createInstance()
#8 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(130): Loader::loadInstances()
#9 /home/magazin2/domains/magazinedirectory.net/public_html/helpers/currency_format/currency_format.php(36): Loader::loadModels()
#10 [internal function]: CurrencyFormat->__construct()
#11 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(275): ReflectionClass->newInstance()
#12 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(254): Loader::createInstance()
#13 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Loader.php(159): Loader::loadInstances()
#14 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Controller.php(155): Loader::loadHelpers()
#15 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Controller.php(124): Controller->helpers()
#16 /home/magazin2/domains/magazinedirectory.net/public_html/core/Util/Common/Classes/Controller.php(25): Controller->__construct()
#17 /home/magazin2/domains/magazinedirectory.net/public_html/app/app_controller.php(0): Blesta\Core\Util\Common\Classes\Controller->__construct()
#18 /home/magazin2/domains/magazinedirectory.net/public_html/vendors/minphp/bridge/src/Lib/Dispatcher.php(123): AppController->__construct()
#19 /home/magazin2/domains/magazinedirectory.net/public_html/index.php(21): Dispatcher::dispatch()
#20 {main}
 
File(/_global) is not within the allowed path(s)
What app are you trying to install? Seems this file or directory /_global is trying to be installed where it should not be since it's allowed to use everything beyond /home/magazin2/ so to me this seems an odd problem.

However I've seen you asking on their support forums too, lets see what they say.
 
Back
Top