# imagify/trunk/views/notice-backup-folder-not-writable.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version trunk. 24 lines.

- Page: https://pluginprobe.com/plugins/imagify/trunk/code/views/notice-backup-folder-not-writable.php
- Raw: https://pluginprobe.com/plugins/imagify/trunk/raw/views/notice-backup-folder-not-writable.php
- Modified: 2026-01-14T18:08:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/trunk/code/views/notice-backup-folder-not-writable.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

$this->print_template(
	'notice-header',
	[
		'classes' => [ 'error' ],
	]
);

$backup_path = $this->filesystem->make_path_relative( get_imagify_backup_dir_path( true ) );

if ( $this->filesystem->exists( get_imagify_backup_dir_path() ) ) {
	/* translators: %s is a file path. */
	$message = esc_html__( 'The backup folder %s is not writable by the server, original images cannot be saved!', 'imagify' );
} else {
	/* translators: %s is a file path. */
	$message = esc_html__( 'The backup folder %s cannot be created. Is its parent directory writable by the server? Original images cannot be saved!', 'imagify' );
}

echo '<p>' . sprintf( $message, "<code>$backup_path</code>" ) . '</p>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

$this->print_template( 'notice-footer' );

```
