-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix_db_theme.sql
More file actions
22 lines (18 loc) · 848 Bytes
/
Copy pathfix_db_theme.sql
File metadata and controls
22 lines (18 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- SQL Script to remove 'premium' theme and reset to default
-- Run this in your database management tool (e.g., phpMyAdmin)
-- 1. Remove the old premium theme from the versions table (Registered Plugins)
DELETE FROM versions
WHERE product_type = 'plugins.themes'
AND product = 'premium';
-- 2. Reset all journals using 'premium' to the 'default' theme
UPDATE journal_settings
SET setting_value = 'default'
WHERE setting_name = 'themePluginPath'
AND setting_value = 'premium';
-- 3. (Optional) Reset site-wide theme if set to premium
UPDATE site_settings
SET setting_value = 'default'
WHERE setting_name = 'themePluginPath'
AND setting_value = 'premium';
-- 4. Flush the plugin cache (handled by OJS, but clearing the versions entry forces a reload)
-- You may also need to clear the _cache directory in your OJS installation manually.