Ошибки в файлах .po
В логах очень много подобных ошибок, подскажите пожалуйста как исправить? И почему они позникают?
[08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_ccat.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_kmselect2.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_copychpu.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_consignmentru.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_lastmodified.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_seoredirect.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_catalogreviews.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_avitoxml.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_searchpro.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_yandexpay.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_search.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:38 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_setbc.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:41 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/site_themes_gscom.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:41 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_themes_gscom.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:43 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(//LC_MESSAGES/webasyst.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_seo.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_regions.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_proorderscss.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_buy1click.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_productgroup.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_advancedparams.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_hidset.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_copypages.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_bnpdadata.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_edit.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_metrika.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_purchaseprice.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_ordercall.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_bnpcomments.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_bnpprodcats.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_moveproducts.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126 [08-Dec-2022 11:56:45 Europe/Moscow] PHP Warning: file_exists(): open_basedir restriction in effect. File(/ru_RU/LC_MESSAGES/shop_procalendar.po) is not within the allowed path(s): (/var/www/gs-com/data:.) in wa-system/locale/waLocaleAdapter.class.php on line 126
1 ответ
В php.ini настроена директива 'open_basedir'. Она разрешает доступ из скриптов только к перечисленным путям. Однако к файлам, которые перечислены в сообщениях об ошибках, фреймворк пытается обратиться по полному пути (либо наоборот по относительному типа ../../LC_MESSAGES...) и он не подпадает в список разрешённых.
Ошибки о том, что не удалось получить доступ к файлам локализации (бОльшей частью) ил-за ограничений в директиве open_basedir