Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

"The theme with key default could not be found and will not be started."

Contrary (at least I think contrary) to what the documentation said, I was able to download Vanilla just fine without composer [canada-conspiracy.xyz/newer/](and it works moderately well.) I would've done it with composer, but alas, my hosting provider (cough Hostinger cough) doesn't give me SSH access unless I upgrade my plan, which I currently don't have the money to do, so I'm stuck with what I got.

At the moment I can use everything except for the "Themes" option in the Dashboard, which crases upon opening it. After some Google searching, I turned on debug and this is what I've got on the page.


Theme with key default not found.

The error occurred on or near: /home/u459949408/public_html/newer/applications/dashboard/controllers/class.settingscontroller.php

1888:     private function themeInfoToMediaItem($themeKey, $isCurrent = false) {

1889:         $themeInfo = Gdn::themeManager()->getThemeInfo($themeKey);

1890: 

1891:         if (!$themeInfo) {

1892:             throw new Exception(sprintf(t('Theme with key %s not found.'), $themeKey));

1893:         }

1894:         $options = val('Options', $themeInfo, []);

1895:         $iconUrl = val('IconUrl', $themeInfo, val('ScreenshotUrl', $themeInfo,

1896:             "applications/dashboard/design/images/theme-placeholder.svg"));

Backtrace:

[/home/u459949408/public_html/newer/applications/dashboard/controllers/class.settingscontroller.php:1825] SettingsController->themeInfoToMediaItem();

[/home/u459949408/public_html/newer/library/core/class.dispatcher.php:845] SettingsController->themes();

[/home/u459949408/public_html/newer/library/core/class.dispatcher.php:274] Gdn_Dispatcher->dispatchController();

[/home/u459949408/public_html/newer/index.php:29] Gdn_Dispatcher->dispatch();

In addition, when I turn on the debug, I get the following stacktrace at the bottom of every page:


The theme with key default could not be found and will not be started.

#0 [internal function]: gdn_ErrorHandler(1024, 'The theme with ...', '/home/u45994940...', 1104, Array)
#1 /home/u459949408/public_html/newer/library/Vanilla/AddonManager.php(1104): trigger_error('The theme with ...')
#2 /home/u459949408/public_html/newer/bootstrap.php(271): Vanilla\AddonManager->startAddonsByKey(Array, 'theme')
#3 [internal function]: {closure}(Object(Garden\Container\Container), Object(Gdn_Configuration), Object(Vanilla\AddonManager), Object(Garden\EventManager), Object(Gdn_Request))
#4 /home/u459949408/public_html/newer/vendor/vanilla/garden-container/src/Container.php(723): call_user_func_array(Object(Closure), Array)
#5 /home/u459949408/public_html/newer/bootstrap.php(324): Garden\Container\Container->call(Object(Closure))
#6 /home/u459949408/public_html/newer/index.php(22): require_once('/home/u45994940...')
#7 {main}

If it's any indication of why it's not working, I put the files not in the root folder but in another folder titled "newer" as I'm currently migrating from phpBB. I've had problems with programs in the past that don't work unless they're in the root folder, so this might be the problem. I downloaded the program from here; the other download I found on this site showed a blank page when I installed it.

Comments

  • @ioi_xd said:
    Contrary (at least I think contrary) to what the documentation said, I was able to download Vanilla just fine without composer [canada-conspiracy.xyz/newer/](and it works moderately well.) I would've done it with composer, but alas, my hosting provider (cough Hostinger cough) doesn't give me SSH access unless I upgrade my plan, which I currently don't have the money to do, so I'm stuck with what I got.

    At the moment I can use everything except for the "Themes" option in the Dashboard, which crases upon opening it. After some Google searching, I turned on debug and this is what I've got on the page.


    Theme with key default not found.

    The error occurred on or near: /home/u459949408/public_html/newer/applications/dashboard/controllers/class.settingscontroller.php

    1888: private function themeInfoToMediaItem($themeKey, $isCurrent = false) {

    1889: $themeInfo = Gdn::themeManager()->getThemeInfo($themeKey);

    1890:

    1891: if (!$themeInfo) {

    1892: throw new Exception(sprintf(t('Theme with key %s not found.'), $themeKey));

    1893: }

    1894: $options = val('Options', $themeInfo, []);

    1895: $iconUrl = val('IconUrl', $themeInfo, val('ScreenshotUrl', $themeInfo,

    1896: "applications/dashboard/design/images/theme-placeholder.svg"));

    Backtrace:

    [/home/u459949408/public_html/newer/applications/dashboard/controllers/class.settingscontroller.php:1825] SettingsController->themeInfoToMediaItem();

    [/home/u459949408/public_html/newer/library/core/class.dispatcher.php:845] SettingsController->themes();

    [/home/u459949408/public_html/newer/library/core/class.dispatcher.php:274] Gdn_Dispatcher->dispatchController();

    [/home/u459949408/public_html/newer/index.php:29] Gdn_Dispatcher->dispatch();


    In addition, when I turn on the debug, I get the following stacktrace at the bottom of every page:


    The theme with key default could not be found and will not be started.

    #0 [internal function]: gdn_ErrorHandler(1024, 'The theme with ...', '/home/u45994940...', 1104, Array)
    #1 /home/u459949408/public_html/newer/library/Vanilla/AddonManager.php(1104): trigger_error('The theme with ...')
    #2 /home/u459949408/public_html/newer/bootstrap.php(271): Vanilla\AddonManager->startAddonsByKey(Array, 'theme')
    #3 [internal function]: {closure}(Object(Garden\Container\Container), Object(Gdn_Configuration), Object(Vanilla\AddonManager), Object(Garden\EventManager), Object(Gdn_Request))
    #4 /home/u459949408/public_html/newer/vendor/vanilla/garden-container/src/Container.php(723): call_user_func_array(Object(Closure), Array)
    #5 /home/u459949408/public_html/newer/bootstrap.php(324): Garden\Container\Container->call(Object(Closure))
    #6 /home/u459949408/public_html/newer/index.php(22): require_once('/home/u45994940...')
    #7 {main}
    

    If it's any indication of why it's not working, I put the files not in the root folder but in another folder titled "newer" as I'm currently migrating from phpBB. I've had problems with programs in the past that don't work unless they're in the root folder, so this might be the problem. I downloaded the program from here; the other download I found on this site showed a blank page when I installed it.

    =================================

    Debug Process Ininiate

    =================================

    1. From where did you download Vanilla? Did you download the latest stable release? Because if so, Composer is not and will not be needed.
    2. I assume you are not on the free plan, so you must have Online File Manager and FTP Access. Did you check the themes folder, and was there a folder named default?
    3. What theme are you trying to use?

    =================================

    Debug Process End

    =================================

    Solutions:

    • Try to download the latest version that was released today, Vanilla 2.6.3, cleanup all the old vanilla forum data and re-install it.
    • Then, import your phpBB3 data or start from scratch

    If none on these work, update us on what you did exactly and then we might be able to help you.

Sign In or Register to comment.