How to change the AtoM theme from the back end or commandline?

95 views
Skip to first unread message

Carolyn Sullivan

unread,
May 22, 2025, 3:14:07 PM5/22/25
to AtoM Users
Hello,

Unfortunately, something went wrong with the build of our Bootstrap 5 theme and it's rendered the front end of our QA instance completely inaccessible, so we can't log in to change the theme.  Is there a way to change the theme from the database or commandline?  

I've looked over the entity-relationship diagram, and I cannot for the life of me see anything there that would store the state of which plugin is currently in use.  I'm guessing it has to be stored in a configuration file somewhere, but there's nothing in:
/usr/share/nginx/atom/apps/qubit/config/settings.yml
/usr/share/nginx/atom/atom/config/app.yml

Where should I look?  Any idea what to do?

Thanks so much,
Carolyn.


Alberto Pereira

unread,
May 22, 2025, 3:55:49 PM5/22/25
to ica-ato...@googlegroups.com
Hi,

It's in the database. First row of the settings_i18n table.
There is a json object with some properties that stores the loaded plugins. When changing it, make sure everything else remains the same.


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ica-atom-users/06fb4672-d11c-41d1-8e08-21a5d1d0edcdn%40googlegroups.com.

Qing Zou

unread,
May 22, 2025, 4:44:04 PM5/22/25
to ica-ato...@googlegroups.com
Hi Carolyn,

If you know which version is working fine, you can change the line 10 of the _layout_start.php under templates of your theme. 
Hope this helps.

Best,

Jason




--
Dr. Qing (Jason) Zou, MLIS, PhD, 
Head, Digital Initiatives
Lakehead University Library

email: qz...@lakeheadu.ca
website: www.lakeheadu.ca


C S

unread,
May 23, 2025, 11:25:49 AM5/23/25
to ica-ato...@googlegroups.com
Hello Alberto,

Oh my goodness, thanks so much, that's exactly it.  I can't believe how many times I looked at that blasted settings_i18n table and totally missed that line.  Thank you so, so much.

To any future AtoM Users reading this comment because they're trying to deal with this, the line looks like this and is basically just a list of all the plugins enabled:

a:13:{i:0;s:10:"sfDcPlugin";i:2;s:11:"sfEacPlugin";i:3;s:11:"sfEadPlugin";i:4;s:13:"sfIsaarPlugin";i:5;s:12:"sfIsadPlugin";i:6;s:12:"arDacsPlugin";i:7;s:12:"sfIsdfPlugin";i:8;s:14:"sfIsdiahPlugin";i:9;s:12:"sfModsPlugin";i:10;s:11:"sfRadPlugin";i:11;s:12:"sfSkosPlugin";i:19;s:13:"qtSwordPlugin";i:30;s:17:"arUOttawaB5Plugin";}

Best,
Carolyn.

On Thu, May 22, 2025 at 3:55 PM Alberto Pereira <alberto...@gmail.com> wrote:

Carolyn Sullivan

unread,
May 23, 2025, 4:14:47 PM5/23/25
to AtoM Users
Hello Jason,

Thanks for the suggestion--potentially silly question, but how does that work to change the AtoM theme from the backend?  This is what I see, with line 10 highlighted in yellow:

<!DOCTYPE html>
<html lang="<?php echo $sf_user->getCulture(); ?>" dir="<?php echo sfCultureInfo::getInstance($sf_user->getCulture())->direction; ?>">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php include_title(); ?>
    <?php echo get_component('default', 'tagManager', ['code' => 'script']); ?>
    <link rel="shortcut icon" href="<?php echo public_path('favicon.ico'); ?>">
    <script defer src="/dist/js/vendor.bundle.134b0eb02f0cefb6009f.js"></script><script defer src="/dist/js/arUOttawaB5Plugin.bundle.6f01458204e8353128b9.js"></script><link href="/dist/css/arUOttawaB5Plugin.bundle.8674178cd96628013cd0.css" rel="stylesheet">
    <?php echo get_component_slot('css'); ?>
  </head>
  <body class="d-flex flex-column min-vh-100 <?php echo $sf_context->getModuleName(); ?> <?php echo $sf_context->getActionName(); ?>">
    <?php echo get_component('default', 'tagManager', ['code' => 'noscript']); ?>
    <?php echo get_partial('header'); ?>
    <?php include_slot('pre'); ?>


The same information is basically in the arDominionB5Plugin.

Thanks, and hope you have a lovely weekend,
Carolyn.

Qing Zou

unread,
May 23, 2025, 4:37:20 PM5/23/25
to ica-ato...@googlegroups.com
Hi Carolyn,

In your case, it is line 9. You can make changes to the line and get into the webui without changing the content of your database. Then you can select a working theme in the webui. The npm build will change the _layout_start.php.

Have a good weekend,

Jason

Reply all
Reply to author
Forward
0 new messages