5627 Commits

Author SHA1 Message Date
Andy Miller
13afaf6d72 feat: block cross-major.minor GPM auto-upgrades; add isNextMajorAvailable() 2026-04-13 19:10:44 +01:00
Andy Miller
31dc6831db Add 2.0 migration wizard, preflight, and compatibility flag extensions
Part of the 1.7/1.8 → 2.0 migration path (see the Grav 2.0 blog plan).

system/migrate/migrate.php (new): single-file standalone wizard
extracted to a 1.x webroot by the grav-plugin-migrate-to-2 kickoff. Uses
only PHP stdlib — no 1.x or 2.0 classes are loaded. Auths against
user/accounts/*.yaml (bcrypt, super-admin required), runs preflight,
snapshots user/, extracts the staged 2.0 zip, imports content, evaluates
plugins against blueprint + getgrav.org curated compatibility, installs
decisions, runs a health check, and promotes the stage into webroot.

Common/GPM/Local/Package::inferCompatibility(): grav >= 2.0 dependencies
now resolve to ['2.0']. IndexCommand/InfoCommand/UpdateCommand gain a
magenta '2.0' badge alongside the existing 1.7/1.8 badges.

Installer/Install.php: restores the preflight machinery that was
collateral-damaged by the safe-upgrade removal. generatePreflightReport,
allowPendingPackageOverride, allowIncompatibleOverride, and the
detection helpers (detectPendingPackageUpdates, detectIncompatiblePackages,
detectPsrLogConflicts, detectMonologConflicts, readBlueprintCompatibility,
inferCompatibleVersions) are ported back so SelfupgradeCommand's
1.7→2.0 gate actually runs. inferCompatibleVersions extended to emit
['2.0'] for grav >= 2.0 dependencies. Safe-upgrade backcompat stubs
(forceSafeUpgrade, getLastManifest) untouched.
2026-04-13 17:04:10 +01:00
Andy Miller
e460ed6613 Add compatibility: blueprint support and preflight handling for 1.7→1.8 upgrades
Enables the 1.7 SelfupgradeCommand to handle preflight reports from the 1.8
package's Install.php. When upgrading from 1.7 to 1.8, the command now:
- Calls generatePreflightReport() on the new package's installer
- Shows incompatible plugins with disable/continue/abort choices
- Handles pending updates, PSR/log and Monolog conflicts interactively
- Disables plugins via direct YAML config write (no RecoveryManager on 1.7)

Also adds:
- GPM Local/Package: computed compatibility property from blueprints
- CLI badges: IndexCommand, InfoCommand, UpdateCommand show 1.7/1.8 badges
2026-04-02 10:25:38 -06:00
Andy Miller
132b247d7c fix: respect schedule flag in backup profiles
The `schedule` field in backup profile configuration was never checked
when registering backup jobs with the scheduler. This meant backups
would always run on schedule even when `schedule: false` was set.

Fixes #4039
2026-03-17 15:14:10 -06:00
Andy Miller
9fbbd3c28e use lang query to change to default lang
Signed-off-by: Andy Miller <rhuk@mac.com>
2026-03-12 15:36:15 -06:00
Andy Miller
6a700f9bfd fix for trying to load default lang w/session store
Signed-off-by: Andy Miller <rhuk@mac.com>
2026-03-12 14:47:19 -06:00
Andy Miller
53d63e8a2e added new ‘onFlexDirectoryConfigBeforeSave’ event
Signed-off-by: Andy Miller <rhuk@mac.com>
2026-03-11 10:17:57 -06:00
Andy Miller
1a7202f7f3 Add upgrade resilience: maintenance mode, opcache reset, and 1.7.50 compat stubs 2026-02-24 21:54:15 -07:00
Andy Miller
1c580f6d54 fixes for modern scheduler
Signed-off-by: Andy Miller <rhuk@mac.com>
2026-02-22 23:25:45 -05:00
Xoriander
b8eea21a44 Fix for wrong LogViewer date output (#4007) 2026-02-05 10:31:24 -07:00
Xoriander
a5645f3a4c More readability for the LogViewerCommand time output (#4009) 2026-02-04 10:49:15 -07:00
Xoriander
f31e155269 Fix for undefined array key path triggered through url encoded characters (#4012) 2026-02-03 21:14:28 -07:00
Andy Miller
09be5334d3 cache-cleanup command
Signed-off-by: Andy Miller <rhuk@mac.com>
2026-01-30 09:48:48 -07:00
Andy Miller
17323ec76c prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-10 14:16:04 -06:00
Andy Miller
9b9079bdd7 Backup not honoring ignored paths - fixes #3952
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-03 18:09:17 -06:00
Andy Miller
b0dac5f4b4 prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-03 17:36:39 -06:00
Andy Miller
f7c77d1173 fix for cron force running
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-03 17:32:48 -06:00
Andy Miller
ae147fa53b prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 15:07:38 -06:00
Andy Miller
9e6df39bff fix duplicate job issue
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 15:05:38 -06:00
Andy Miller
8ac6076f88 allow you to run -r and -d in command line together
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 15:05:30 -06:00
Andy Miller
cef7812472 fix an error in ZipArchive that sometimes occurs
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 15:04:51 -06:00
Andy Miller
162fe1acc2 namespace change for cron expression
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 14:40:44 -06:00
Andy Miller
332748a1f9 removed hardcoded setup commands
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-09-02 14:08:46 -06:00
Andy Miller
dc7354e7e1 prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-28 11:37:09 -06:00
pmoreno.rodriguez
afc1513aad Fix translation key for image adapter label and help (#3944) 2025-08-25 18:56:12 +01:00
Andy Miller
09920deabc prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 14:16:32 +01:00
Andy Miller
d07ac5b6ea prepare for release
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 13:44:47 +01:00
Andy Miller
c608ed10cf implement a better purge strategy
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 13:27:23 +01:00
Andy Miller
9d71de8e54 more scheduler improvements
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 12:53:47 +01:00
Andy Miller
89764a51fb more scheduler fixes
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 12:36:06 +01:00
Andy Miller
b851d9bf9d added scheduler logging
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-24 23:58:28 +01:00
Andy Miller
a0679fc050 scheduler improvements
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-24 22:23:18 +01:00
Andy Miller
e497a93da6 simplify extended jobs logic
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-24 22:14:14 +01:00
Andy Miller
56cc894c1d initial improved schedular functionality
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-24 20:27:28 +01:00
Andy Miller
d07f3770bc chagne order
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-17 13:12:08 +01:00
Andy Miller
7236862a15 Add Imagick adapter support
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-16 12:52:55 +01:00
Andy Miller
8811b7aad0 revert PHP 8.4 fixes
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-06-12 10:41:38 -06:00
Andy Miller
4a22f3dc8d better match
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-06-05 11:22:28 -06:00
Andy Miller
fa56984dc3 use lang string
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-03-31 19:26:01 -06:00
Andy Miller
90fd68d4a5 handle empty value on require with ignore
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-03-31 14:12:05 -06:00
Andy Miller
7613e38b6d Add support for validate match
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-03-31 14:11:35 -06:00
Andy Miller
8d7b658aa6 Some fixes that impacted file uploads
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-03-30 15:22:45 -06:00
Andy Miller
83d098b891 throws error
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-03-07 12:06:58 -07:00
Andy Miller
08d74df6e3 Fix parse error: #3894
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-01-24 15:23:06 -07:00
Rotzbua
1d1d8da431 fix: twig filter exif_read_data throws critical error (#3878) 2025-01-07 13:53:09 +00:00
Andy Miller
4097d85daa updated copyright date to current year
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-01-06 14:14:42 +00:00
Andy Miller
2e975dfa90 bug in AbastractLazyCollection
Signed-off-by: Andy Miller <rhuk@mac.com>
2024-12-03 15:33:32 -07:00
Andy Miller
2896aea30a prepare for release 2024-10-28 11:30:04 +00:00
Andy Miller
6b07088189 cli Alias support in 1.7 2024-10-27 12:24:39 +00:00
Artyom Mezin
a0614dc3eb Resolving style conflict for other tooltips (#3861) 2024-10-25 10:44:26 +01:00