After adding last line config.php CMS access is lost

Hi Alex and Xibo Team,

i want to modify the main login page
where we enter username and password.

so as per advanced theme guide,

i created Folders:

  1. web/theme/custom/client
  2. web/theme/custom/client/views

and added config.php file in client folder and added the last line into it

$config = array(
‘theme_name’ => ‘Xibo Default Theme’,
‘theme_title’ => ‘Xibo Digital Signage’,
‘app_name’ => ‘Xibo’,
‘theme_url’ => ‘http://xibo.org.uk’,
‘cms_source_url’ => ‘https://github.com/xibosignage/xibo/’,
‘cms_install_url’ => ‘http://xibo.org.uk/manual/en/install_windows_client.html’,
‘cms_release_notes_url’ => ‘http://xibo.org.uk/manual/en/release_notes.html
‘view_path’ => PROJECT_ROOT . ‘/web/theme/custom/client/views’
);

**Main Issue: when i add this line ‘view_path’ => PROJECT_ROOT . ‘/web/theme/custom/client/views’ **

i loose access to my CMS Main Page.

i have also added login.twig file in web/theme/custom/client/views folder

please suggest.

Thank you for the information you have provided. I would recommend changing the line you added to your config.php file to the below line:

'view_path' => '../web/theme/custom/client/views'

The theme_name in the config file you pasted above is still set to Xibo Default Theme. I would also recommend changing this to something unique to separate your custom Theme from the Xibo Default. Once you have changed this, you should see that the alternative Theme is available in the Settings option in your CMS, under the Configuration tab.

If you can also confirm the changes you have made to the login.twig file in your views folder, I can look further into what is causing the issue. If you are receiving any error messages on the login page for your CMS, please confirm what they are.

Many Thanks.

Hi Dan,

Thanks for your quick support!!

If you can also confirm the changes you have made to the login.twig file in your views folder,

i havent made any changes in this file(and i coped the content of it from xibo-cms/views/login.twig at develop · xibosignage/xibo-cms · GitHub and saved it in file login.twig)

i am not receiving any error message, that main page itself doesnt load.

image

Thank you for the screenshot. The formatting in your config.php file does not look correct. All entries should be in line as below. I would recommend correcting the formatting:

<?php
$config = array(
    'theme_name' => 'Test Theme',
    'theme_title' => 'Custom CMS Theme',
    'app_name' => 'Xibo',
    'theme_url' => 'http://xibo.org.com',
    'cms_source_url' => 'https://github.com/xibosignage/xibo/',
    'cms_install_url' => 'http://xibo.org.uk/manual/en/install_windows_client.html',
    'cms_release_notes_url' => 'http://xibo.org.uk/manual/en/release_notes.html',
    'view_path' => '../web/theme/custom/test/views'
);

Can you talk me through the steps you have taken prior to the CMS login becoming unavailable? Did you access your CMS after creating these folders and change the CMS Theme in the Settings?

Can you also confirm if the login page returns when you remove the files and folders you have added to the /custom/ folder?

Many Thanks.

1 Like

Hi Dan,

i have corrected the formatting, but still the same issue.

steps which i followed is
i have created

  1. web/theme/custom/client >> and added config.php file to it.
  2. i created web/theme/custom/client/img folder and placed xibologo.png(it works great)
  3. web/theme/custom/client/views and placed login.twig
    from copying content of below link
    xibo-cms/login.twig at develop · xibosignage/xibo-cms · GitHub

image

when i remove this line
‘view_path’ => ‘…/web/theme/custom/itrainu/views’
it works 100% and when i add it page doesn’t work(it doesnt give any error msg just it dont load the cms).

i am using ubuntu 16.04LTS desktop version

I suspect that you may have copied the wrong login.twig file. Can you instead try the below link and create a new login.twig file?

If the issue persists, please let me know.

Many Thanks.

Hi Dan,

i tried adding with new file

but the same issue, can you take remote access of my system.

If you can provide me with Team Viewer Credentials in a private message, I will take a look. I will also need credentials for your CMS to access the Settings.

Many Thanks,

Isn’t the a , missing at the end of the second line?