Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Warning appear if I try to enable production option #60

Open
andrconstruction opened this issue Dec 11, 2016 · 16 comments
Open

Warning appear if I try to enable production option #60

andrconstruction opened this issue Dec 11, 2016 · 16 comments
Assignees
Labels

Comments

@andrconstruction
Copy link

Warning: file_exists(): open_basedir restriction in effect. File(../fonts/fontawesome-webfont.ttf) is not within the allowed path(s):

Where are a missconfiguration?

@neilime
Copy link
Owner

neilime commented Dec 13, 2016

Can you share the whole backtrace error, in order to locate where the script fails.

@neilime neilime self-assigned this Dec 13, 2016
@neilime neilime added the bug label Dec 13, 2016
@andrconstruction
Copy link
Author

my config
'assets_bundle' => [
'production' => true, // Application environment (Developpement => false)
// 'basePath' => '/var/www/clients/client1/web9/web/',
'lastModifiedTime' => null, // Arbitrary last modified time in production
'cachePath' => '@zfRootPath/public/cache', // Cache directory absolute path
'assetsPath' => '@zfRootPath/public', // Assets directory absolute path (allows you to define relative path for assets config)
'tmpDirPath' => sys_get_temp_dir(), // Temp directory absolute path
'processedDirPath' => '@zfRootPath/data/AssetsBundle/processed', // Processed files directory absolute path
'baseUrl' => '/', // Base URL of the application
'cacheUrl' => '@zfBaseUrl/cache/', // Cache directory base url
'mediaExt' => [ 'jpeg', 'jpg', 'png', 'gif', 'cur', 'ttf', 'eot', 'svg', 'woff', 'otf', 'woff2', ], // Put here all media extensions to be cached
'recursiveSearch' => false, // Allows search for matching assets in required folder and its subfolders
'filters' => [
\AssetsBundle\AssetFile\AssetFile::ASSET_LESS => 'LessphpAssetFileFilter',
\AssetsBundle\AssetFile\AssetFile::ASSET_CSS => 'CssAssetFileFilter',
\AssetsBundle\AssetFile\AssetFile::ASSET_JS => 'JShrinkAssetFileFilter',
'png' => 'PngAssetFileFilter',
'jpg' => 'JpegAssetFileFilter', 'jpeg' => 'JpegAssetFileFilter',
'gif' => 'GifAssetFileFilter',
'svg' => null
],
'view_helper_plugins' => [
\AssetsBundle\AssetFile\AssetFile::ASSET_CSS => 'headlink',
\AssetsBundle\AssetFile\AssetFile::ASSET_JS => 'headscript',
],
],

@andrconstruction
Copy link
Author

assets bundle config

return [
//...
'assets_bundle' => [
'assets' => [
'css' => [

                'components/fullcalendar/dist/fullcalendar.min.css',
                'components/animate.css/animate.min.css',
                'components/sweetalert2/dist/sweetalert2.css',
                'components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css',
                'components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css',
                'components/font-awesome/css/font-awesome.min.css',
                'components/chosen/chosen.css',
                'components/bootstrap-select/dist/css/bootstrap-select.css',
                'components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css',
                'components/bootstrap3-dialog/dist/css/bootstrap-dialog.css',
                'components/jquery.bootgrid/dist/jquery.bootgrid.css',
                'components/dependent-dropdown/css/dependent-dropdown.css',
                'components/bootstrap-duallistbox/src/bootstrap-duallistbox.css',
                'components/summernote/dist/summernote.css',
                'components/jquery-simplecolorpicker/jquery.simplecolorpicker.css',
                'css/app_1.min.css',
                'css/app_2.min.css',
                'css/style.css'
            ],
            'js'    => [
                'components/es6-promise/es6-promise.min.js',
                'components/jquery/jquery.min.js',
                'components/bootstrap/dist/js/bootstrap.min.js',
                'components/Flot/jquery.flot.js',
                'components/Flot/jquery.flot.resize.js',
                'js/curvedlines.js',
                'components/sparklines/source/sparkline.js',
                'components/moment/moment.js',
                //                    'js/moment.js',
                'components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js',
                'components/fullcalendar/dist/fullcalendar.min.js',
                'components/fullcalendar/dist/locale-all.js',
                'components/simpleWeather/jquery.simpleWeather.min.js',
                'components/Waves/dist/waves.min.js',
                'components/bootstrap-growl/jquery.bootstrap-growl.min.js',
                'components/sweetalert2/dist/sweetalert2.min.js',
                'components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js',
                'components/chosen/chosen.jquery.js',
                'components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
                'components/bootstrap3-dialog/dist/js/bootstrap-dialog.js',
                'components/bootstrap-select/dist/js/bootstrap-select.js',
                'components/remarkable-bootstrap-notify-with-progress/bootstrap-notify.js',
                'components/jquery.bootgrid/dist/jquery.bootgrid.js',
                'components/dependent-dropdown/js/dependent-dropdown.js',
                'components/dependent-dropdown/js/depdrop_locale_ru.js',
                'components/chained/jquery.chained.js',
                'components/summernote/dist/summernote.js',
                'components/summernote/dist/lang/summernote-ru-RU.js',
                'components/jquery-simplecolorpicker/jquery.simplecolorpicker.js',
                'components/bootstrap-maxlength/src/bootstrap-maxlength.js',
                'js/input-mask.js',
                'js/jquery.form.js',
                'js/jQuery.print.js',
                'js/app.js',
                'js/ash-base-functions.js',
                'js/calendar/list.js'


            ],
            'media' => [
                'public/components/material-design-iconic-font/dist/fonts',
                'components/malihu-custom-scrollbar-plugin',
                'components/font-awesome/fonts',
                'components/chosen/',
                'img',
                'img/calendar',
                'components',
                'components/dependent-dropdown/img',
                'img/profile-pics',
                'img/profile-pics/thumb',
                'fonts/roboto',
                'fonts/satisfy',
                'fonts/weather-icons',
                'fonts',
                'components/flag-icon-css/flags/4x3/',
                'components/flag-icon-css/flags/1x1/',

            ]
        ]
    ],
    //...
];

@andrconstruction
Copy link
Author

errors

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/Material-Design-Iconic-Font.woff2) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 608
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3124 5347336 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3124 5347336 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3124 5347336 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3125 5347528 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3125 5347720 file_exists ( ) .../ServiceOptions.php:608

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web9/web/../fonts/Material-Design-Iconic-Font.woff2) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 624
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3124 5347336 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3124 5347336 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3124 5347336 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3125 5347528 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3139 5347944 file_exists ( ) .../ServiceOptions.php:624

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/Material-Design-Iconic-Font.woff) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 608
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3148 5348120 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3148 5348120 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3148 5348120 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3148 5348312 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3148 5348504 file_exists ( ) .../ServiceOptions.php:608

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web9/web/../fonts/Material-Design-Iconic-Font.woff) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 624
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3148 5348120 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3148 5348120 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3148 5348120 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3148 5348312 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3152 5348616 file_exists ( ) .../ServiceOptions.php:624

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/Material-Design-Iconic-Font.ttf) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 608
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3159 5348472 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3159 5348472 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3159 5348472 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3159 5348664 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3159 5348856 file_exists ( ) .../ServiceOptions.php:608

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web9/web/../fonts/Material-Design-Iconic-Font.ttf) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 624
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3124 5346800 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3159 5348472 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3159 5348472 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3159 5348472 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3159 5348664 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3162 5348968 file_exists ( ) .../ServiceOptions.php:624

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/fontawesome-webfont.eot) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 608
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3208 5307264 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3208 5307800 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3208 5307800 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3208 5307800 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3208 5308360 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3208 5308520 file_exists ( ) .../ServiceOptions.php:608

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web9/web/../fonts/fontawesome-webfont.eot) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 624
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3208 5307264 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3208 5307800 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3208 5307800 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3208 5307800 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3208 5308360 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3212 5308616 file_exists ( ) .../ServiceOptions.php:624

( ! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/fontawesome-webfont.woff2) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 608
Call Stack

Time Memory Function Location

1 0.0012 360352 {main}( ) .../index.php:0
2 0.9644 4833344 Zend\Mvc\Application->run( ) .../index.php:23
3 0.9745 4855696 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.9745 4855696 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.9745 4855696 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.9749 4862544 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.9749 4862544 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.9750 4862584 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.9770 4863456 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 1.3208 5307264 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 1.3223 5308728 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 1.3223 5308728 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 1.3223 5308728 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 1.3224 5309288 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:339
15 1.3224 5309448 file_exists ( )

@andrconstruction
Copy link
Author

andrconstruction commented Dec 13, 2016

All errors binded to fonts. Font file exists of course,
When the production options is false all works fine

@neilime
Copy link
Owner

neilime commented Dec 13, 2016

Please can you try the last version "v3.6.0", I have add an exception to catch your error. Post the new debug trace if any.

Thank you

@andrconstruction
Copy link
Author

andrconstruction commented Dec 13, 2016

Thank you. for your extra-mega-fastest reaction!
Something changed. Now warnings shows only during a first page loading
but now a page fully loaded anyway,
And all errors disappear if I reload page again.
warnings appear only at a first page loading ( caching starts )

@andrconstruction
Copy link
Author

! ) Warning: file_exists(): open_basedir restriction in effect. File(../fonts/Material-Design-Iconic-Font.woff2) is not within the allowed path(s): (/var/www/clients/client1/web9/web/public:/var/www/clients/client1/web9/private:/var/www/clients/client1/web9/tmp:/var/www/claim4.kd.ru/web:/srv/www/claim4.kd.ru/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/misc:/var/www/clients/client1/web9/web) in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/Service/ServiceOptions.php on line 713
Call Stack

Time Memory Function Location

1 0.0008 359856 {main}( ) .../index.php:0
2 0.1536 3525368 Zend\Mvc\Application->run( ) .../index.php:23
3 0.2536 5122360 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.2536 5122360 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.2536 5122360 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.2540 5129208 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.2540 5129208 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.2541 5129248 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.2542 5130320 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 0.4600 5616288 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 0.4600 5616824 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 0.4600 5616824 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 0.4600 5616824 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( ) .../AssetFilesManager.php:141
14 0.4600 5617016 AssetsBundle\Service\ServiceOptions->getRealPath( ) .../AssetFilesManager.php:338
15 0.4600 5617208 file_exists ( )

@neilime
Copy link
Owner

neilime commented Dec 13, 2016

I commit a patch on master to only execute "file_exists" on open_basedir path, can you try this please

@andrconstruction
Copy link
Author

Should I change some config option?
Pathes broken

@andrconstruction
Copy link
Author

andrconstruction commented Dec 13, 2016

I changed all pathes but
At the moment stop work at all
if production true :

( ! ) Fatal error: Uncaught LogicException: Url file "../fonts/Material-Design-Iconic-Font.woff2" does not exist even relative with "/var/www/clients/client1/web9/web/public/components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css" in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php on line 366
( ! ) LogicException: Url file "../fonts/Material-Design-Iconic-Font.woff2" does not exist even relative with "/var/www/clients/client1/web9/web/public/components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css" in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php on line 366
Call Stack

Time Memory Function Location

1 0.0005 359264 {main}( ) .../index.php:0
2 0.1290 3524864 Zend\Mvc\Application->run( ) .../index.php:23
3 0.1323 3546128 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.1323 3546128 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.1323 3546128 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.1326 3552976 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.1326 3552976 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.1327 3553016 AssetsBundle\AssetFile\AssetFilesManager->getCachedAssetsFiles( ) .../Service.php:130
9 0.1328 3554088 AssetsBundle\AssetFile\AssetFilesManager->cacheCssAssetFiles( ) .../AssetFilesManager.php:82
10 0.3215 3982728 preg_replace_callback ( ) .../AssetFilesManager.php:142
11 0.3215 3983264 AssetsBundle\AssetFile\AssetFilesManager->AssetsBundle\AssetFile{closure}( ) .../AssetFilesManager.php:142
12 0.3215 3983264 call_user_func:{/var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesManager.php:141} ( ) .../AssetFilesManager.php:141
13 0.3215 3983264 AssetsBundle\AssetFile\AssetFilesManager->rewriteUrl( )

@andrconstruction
Copy link
Author

if production is false

( ! ) Fatal error: Uncaught ErrorException: file_put_contents(/var/www/clients/client1/web9/web/data/AssetsBundle/processed/config/b6cae12b3c6ae4919cb2dbc35753c160.conf): failed to open stream: No such file or directory in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesConfiguration.php on line 321
( ! ) ErrorException: file_put_contents(/var/www/clients/client1/web9/web/data/AssetsBundle/processed/config/b6cae12b3c6ae4919cb2dbc35753c160.conf): failed to open stream: No such file or directory in /var/www/clients/client1/web9/web/vendor/neilime/zf2-assets-bundle/src/AssetsBundle/AssetFile/AssetFilesConfiguration.php on line 321
Call Stack

Time Memory Function Location

1 0.0006 359264 {main}( ) .../index.php:0
2 0.1536 3533480 Zend\Mvc\Application->run( ) .../index.php:23
3 0.1575 3554744 Zend\Mvc\Application->completeRequest( ) .../Application.php:356
4 0.1575 3554744 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:384
5 0.1575 3554744 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:251
6 0.1578 3561592 call_user_func:{/var/www/clients/client1/web9/web/vendor/zendframework/zend-eventmanager/src/EventManager.php:490} ( ) .../EventManager.php:490
7 0.1578 3561592 AssetsBundle\Service\Service->renderAssets( ) .../EventManager.php:490
8 0.3795 3965992 AssetsBundle\AssetFile\AssetFilesConfiguration->saveAssetFilesConfiguration( ) .../Service.php:137
9 0.3802 3988752 Zend\Stdlib\ErrorHandler::stop( ) .../AssetFilesConfiguration.php:322

@andrconstruction
Copy link
Author

andrconstruction commented Dec 13, 2016

(((
added to all pathes public/ at start
development false now working

I noticed next error in the google devtools :
GET http://mysite/cache/dev_b4bc208de53168efd567d1eafb9d0c3e.css?1481655842 404 (Not Found)
but file exists in http://mysite/public/cache

Now my assets config look like

[
'assets_bundle' => [
            'assets' => [
                'css'   => [
                    'public/components/fullcalendar/dist/fullcalendar.css',
                    'public/components/animate.css/animate.min.css',
                    'public/components/sweetalert2/dist/sweetalert2.css',
                    'public/components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css',
                    'public/components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css',
                    'public/components/font-awesome/css/font-awesome.min.css',
                    'public/components/chosen/chosen.css',
                    'public/components/bootstrap-select/dist/css/bootstrap-select.css',
                    'public/components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css',
                    'public/components/bootstrap3-dialog/dist/css/bootstrap-dialog.css',
                    'public/components/jquery.bootgrid/dist/jquery.bootgrid.css',
                    'public/components/dependent-dropdown/css/dependent-dropdown.css',
                    'public/components/bootstrap-duallistbox/src/bootstrap-duallistbox.css',
                    'public/components/summernote/dist/summernote.css',
                    'public/components/jquery-simplecolorpicker/jquery.simplecolorpicker.css',
                    'public/css/app_1.min.css',
                    'public/css/app_2.min.css',
                    'public/css/style.css'
                ],
                'js'    => [
                    'public/components/es6-promise/es6-promise.min.js',
                    'public/components/jquery/jquery.min.js',
                    'public/components/bootstrap/dist/js/bootstrap.min.js',
                    'public/components/Flot/jquery.flot.js',
                    'public/components/Flot/jquery.flot.resize.js',
                    'public/js/curvedlines.js',
                    'public/components/sparklines/source/sparkline.js',
                    'public/components/moment/moment.js',
                    'public/components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js',
                    'public/components/fullcalendar/dist/fullcalendar.min.js',
                    'public/components/fullcalendar/dist/locale/ru.js',
                    'public/components/simpleWeather/jquery.simpleWeather.min.js',
                    'public/components/Waves/dist/waves.min.js',
                    'public/components/bootstrap-growl/jquery.bootstrap-growl.min.js',
                    'public/components/sweetalert2/dist/sweetalert2.min.js',
                    'public/components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js',
                    'public/components/chosen/chosen.jquery.js',
                    'public/components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
                    'public/components/bootstrap3-dialog/dist/js/bootstrap-dialog.js',
                    'public/components/bootstrap-select/dist/js/bootstrap-select.js',
                    'public/components/remarkable-bootstrap-notify-with-progress/bootstrap-notify.js',
                    'public/components/jquery.bootgrid/dist/jquery.bootgrid.js',
                    'public/components/dependent-dropdown/js/dependent-dropdown.js',
                    'public/components/dependent-dropdown/js/depdrop_locale_ru.js',
                    'public/components/chained/jquery.chained.js',
                    'public/components/summernote/dist/summernote.js',
                    'public/components/summernote/dist/lang/summernote-ru-RU.js',
                    'public/components/jquery-simplecolorpicker/jquery.simplecolorpicker.js',
                    'public/components/bootstrap-maxlength/src/bootstrap-maxlength.js',
                    'public/js/input-mask.js',
                    'public/js/jquery.form.js',
                    'public/js/jQuery.print.js',
                    'public/js/app.js',
                    'public/js/ash-base-functions.js',
                    'public/js/calendar/list.js'
                ],
                'media' => [
                    'public/components/material-design-iconic-font/dist/fonts',
                    'public/components/malihu-custom-scrollbar-plugin',
                    'public/components/font-awesome/fonts',
                    'public/components/chosen/',
                    'public/components/summernote/dist/font',
                    'public/img',
                    'public/img/calendar',
                    'public/img/icons',
                    'public/img/icons/weather',
                    'public/img/headers/sm',
                    'public/components',
                    'public/components/dependent-dropdown/img',
                    'public/img/profile-pics',
                    'public/img/profile-pics/thumb',
                    'public/fonts/roboto',
                    'public/fonts/satisfy',
                    'public/fonts/weather-icons',
                    'public/fonts',
                    'public/components/flag-icon-css/flags/4x3/',
                    'public/components/flag-icon-css/flags/1x1/',
                ]
            ]
        ],
]

@andrconstruction
Copy link
Author

I can't understand why it not accsepted a path like /var/www/site/public/components/material/dist/css../fonts/Material-Design-Iconic-Font.woff2
its real path and it opened in console

made a workaround :
file ServiceOptions.php

inserted line :
return file_exists( $sFilePath ) ; and all work fine.
before

if (!$this->openBaseDirPaths) {
return file_exists($sFilePath);
}
foreach ($this->openBaseDirPaths as $sAllowedPath) {
if (strpos($sFilePath, $sAllowedPath)) {
return file_exists($sFilePath);
}
}

@neilime
Copy link
Owner

neilime commented Jan 17, 2017

Is the path "/var/www/site/public/components/material/dist/css../fonts/" ok ?
Maybe a "/" is missing between "css" and "../fonts".

Do you have check if these path is allowed in "open_basedir"

@andrconstruction
Copy link
Author

slash was exist,
/var/www/clients/client1/web9/web/public/components/material-design-iconic-font/dist/css/../fonts/Material-Design-Iconic-Font.woff2

and allowed pathes
/var/www/clients/client1/web9/web/public:
/var/www/clients/client1/web9/private:
/var/www/clients/client1/web9/tmp:
/var/www/claim4.kd.ru/web:
/srv/www/claim4.kd.ru/web:
/usr/share/php5:
/usr/share/php:
/tmp:
/usr/share/phpmyadmin:
/etc/phpmyadmin:
/var/lib/phpmyadmin:
/usr/share/misc:
/var/www/clients/client1/web9/web

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants