HEX
Server: Apache
System: Linux beta.alfanet.ee 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: busines1 (1252)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home-ssd1/busines1/www/wp-content/plugins/imagify/views/notice-backup-folder-not-writable.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 = __( 'The backup folder %s is not writable by the server, original images cannot be saved!', 'imagify' );
} else {
	/* translators: %s is a file path. */
	$message = __( '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>';

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