About chmod issue

Hi @digitalstartup
Thank you for your fast answer.

I checked system.log and same message than I pasted in the first comment.
I paste few lines from about this save.php file. This is the 265 line, but you can see this part to see all codes.
265 line is:

    mkdir($pathDir, 0755, true);
    
    "protected function createLess($pathDir, $dataValue)
    {
    $section        = 'mbdesign';
    $pathToLessFile = $pathDir . '_' . $section . '.less';

    if (!is_dir($pathDir)) {
        mkdir($pathDir, 0755, true);
    }

    if (!is_writable($pathDir)) {
        @chmod($pathDir, '0755');
    }

    if (is_file($pathToLessFile) && !is_writable($pathToLessFile)) {
        @chmod($pathToLessFile, '0644');
    }

    $file = @fopen($pathToLessFile, 'w') or die('error: Can not open ' . $pathToLessFile . ' file');

    $configs = [];
    //$settingHelper = $this->_objectManager->get('\MageBig\MbFrame\Helper\Data');"