Jump to content
  • 0

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/).


Question

Posted

This is my code:

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}

Screenshot 2025-02-10 at 8.03.12 PM.png

1 answer to this question

Recommended Posts

  • 0
Posted

You need to remove the open_basedir restriction in your php.ini file, it's blocking Blesta's access to important directories.

Edit: Just to add, you should not have errorReporting on debugging enabled in your /config/blesta.php file. Those should never be left on. Check ../logs_blesta/ logs for any errors. Leaving those options on will cause other problems.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...