PHP warning

file_put_contents(): Only 0 of 24 bytes written, possibly out of free disk space

/home/signaturegroup.sterlingagency.com/craft/app/helpers/IOHelper.php(1765)

1753         $flags = 0;
1754 
1755         if ($lock)
1756         {
1757             $flags |= LOCK_EX;
1758         }
1759 
1760         if ($append)
1761         {
1762             $flags |= FILE_APPEND;
1763         }
1764 
1765         if (($suppressErrors ? @file_put_contents($path, $contents, $flags) : file_put_contents($path, $contents, $flags)) !== false)
1766         {
1767             return true;
1768         }
1769 
1770         return false;
1771     }
1772 
1773     /**
1774      * Used by {@link getFolderSize} to calculate the size of a folder.
1775      *
1776      * @param string $path           The path of the folder.
1777      * @param bool   $suppressErrors Whether to suppress any PHP Notices/Warnings/Errors (usually permissions related).

Stack Trace

#0
+
 /home/signaturegroup.sterlingagency.com/craft/app/etc/web/WebApp.php(693): CApplication->handleError(2, "file_put_contents(): Only 0 of 24 bytes written, possibly out of...", "/home/signaturegroup.sterlingagency.com/craft/app/helpers/IOHelp...", 1765)
688         if (version_compare(PHP_VERSION, '7.1', '>=') && strpos($message, 'Narrowing occurred during type inference. Please file a bug report') !== false)
689         {
690             return;
691         }
692 
693         parent::handleError($code, $message, $file, $line);
694     }
695 
696     /**
697      * Raised right AFTER the application processes the request.
698      *
#2
+
 /home/signaturegroup.sterlingagency.com/craft/app/helpers/IOHelper.php(1765): file_put_contents("/home/signaturegroup.sterlingagency.com/craft/storage/runtime/ca...", "a:2:{i:0;s:1:"n";i:1;N;}", 0)
1760         if ($append)
1761         {
1762             $flags |= FILE_APPEND;
1763         }
1764 
1765         if (($suppressErrors ? @file_put_contents($path, $contents, $flags) : file_put_contents($path, $contents, $flags)) !== false)
1766         {
1767             return true;
1768         }
1769 
1770         return false;
#3
+
 /home/signaturegroup.sterlingagency.com/craft/app/helpers/IOHelper.php(852): Craft\IOHelper::_writeToFile("/home/signaturegroup.sterlingagency.com/craft/storage/runtime/ca...", "a:2:{i:0;s:1:"n";i:1;N;}", false, false, ...)
847                         // Restore here before we attempt to write again.
848                         restore_error_handler();
849 
850                         // Try again without the lock flag.
851                         Craft::log('Trying to write to file at '.$path.' without LOCK_EX.', LogLevel::Info);
852                         if (static::_writeToFile($path, $contents, false, $append, $suppressErrors))
853                         {
854                             // Cache the file lock info to not use LOCK_EX for 2 months.
855                             Craft::log('Successfully wrote to file at '.$path.' without LOCK_EX. Saving in cache.', LogLevel::Info);
856                             craft()->cache->set('useWriteFileLock', 'no', 5184000);
857                             return true;
2024-03-19 11:57:19 Apache/2.4.29 (Ubuntu) / Craft CMS 2.6.3007