Apr 02, 2024

New Updates for MaxGalleria Plugins: Compatibility with WordPress 6.5

We are pleased to announce that the latest versions of our MaxGalleria plugins have been tested and confirmed compatible with WordPress version 6.5. These updates include:

Additionally, we are introducing an exciting feature in Media Library Folders Pro S3, Version 1.3.4. This update brings the capability for automatic synchronization of recently uploaded media files from cloud servers, such as AWS or Digital Ocean, directly with your WordPress library. This automation is made possible through the use of a cron job.

 

Introducing Automatic Synchronization Feature in Media Library Folders Pro S3, 1.3.2

The latest version, Media Library Folders Pro S3 1.3.4, incorporates a PHP script, `mlfps3-cron-script.php`. This script is designed to facilitate the addition of new media library files from your cloud bucket or space into your website’s media library through a cron job.

 

Setting Up a Cron Job for Synchronization

To leverage this new feature, setting up a cron job on your Apache server is required. This process necessitates:

  • Basic command line skills for navigating and editing files on the server.
  • Knowledge of cron syntax for task scheduling.
  • An understanding of the Apache server’s environment, particularly its document root and file structure.
  • Awareness of how the server processes time and time zones, ensuring the cron job executes as scheduled.

Quick Start Guide

Here’s a quick guide to get you started. In these instructions are for editing the crontab file with the vi editor:

  1. Access the server terminal and enter `crontab -e` to edit your cron jobs.
  2. Press `i` to switch the editor to insert mode.
  3. Input or paste the following line to schedule the script to run automatically at midnight every day. You will need to update the path to your PHP folder and the path to the cron job file, mlfps3-cron-script.php:  0 0 * * * /path/to/your/php/folder/php /path/to/wp-content/plugins/media-library-folders-pro-s3-addon/mlfps3-cron-script.php
  4. Press the escape key to leave insert mode. Save your changes by typing `:w` and then exit with `:q`.

This setup will ensure that your media files from cloud servers are seamlessly integrated into your WordPress library without manual intervention, keeping your website’s media content up-to-date automatically.

The mlfps3-cron-script.php script will generate a log file during each run, mflps3-cron.log, in the wp-content folder. This file can be viewed by activating the View Cloud Sync Log plugin, which comes with Media Library Folders Pro S3, Version 1.3.4. This plugin is used only for view the cron script’s output. Once activated, a View Sync Log menu option will be added to the WordPress dashboard menu. Clicking on it will display the log. The log file can be deleted by clicking on the Clear Sync Log menu option.

You can update directly through your WordPress Dashboard under plugins. If an update is not available you’ll need to log in to your account, renew any licenses where required and then recheck for the update in WordPress.