Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

PHP Warning: file_exists(): open_basedir restriction in effect. #409

Closed ayronaut closed 3 years ago

ayronaut commented 3 years ago

The path is unfortunately shortened or is the error in the relative path specification?

File(/var/www/clients/clientxx/webxx/web/../typo3conf/ext/mask/Resources/Public/Styles/mask.css?1621517445) is not within the allowed path(s): (/var/www/clients/clientxx/webxx/web:/var/www/clients/clientxx/webxx/private:/var/www/clients/clientxx/webxx/tmp:/var/www/domain.tld/web:/srv/www/domain.tld/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom) in /var/www/clients/clientxx/webxx/web/typo3_src-11.2.0/typo3/sysext/core/Classes/Utility/PathUtility.php line 54

Many greetings

Aaron

TYPO3: 11.2.0 PHP-Version: 7.4.18 Mask: 7.0.1

nhovratov commented 3 years ago

Hard to tell without knowing your project structure and php.ini settings. PathUtility is trying to access /var/www/clients/clientxx/webxx/typo3conf as far as I can see. Is this the correct path?

ayronaut commented 3 years ago

This is exactly the problem, typo3 is located in the /var/www/clients/clientxx/webxx/web/ directory.

/var/www/clients/clientxx/webxx/web/typo3conf

nhovratov commented 3 years ago

Well, I don't know where this might come from. Are you on composer mode? Anything other special about your setup? What's your TYPO3_PATH_ROOT environment variable? Where and when does this error appear exactly?

ayronaut commented 3 years ago

I installed the Extension "Mask" with the Extension Manager. When I click on the Mask button under the Admin Tools tab after installation, I get the error message.

nhovratov commented 3 years ago

Can you show me the full stacktrace of the error?

nhovratov commented 3 years ago

@Ayronaut Any news on this one?

nhovratov commented 3 years ago

I'll close this for now. Feel free to reopen, if it is still a problem in your opinion.