HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Something has gone wrong. [RESOLVED]

namjarnamjar New
edited October 2019 in Feedback

When click "All Pages" and "New Page", show us


"Something has gone wrong.

We've run into a problem and are unable to handle this request right now. 

Please check back in a little while."


https://yourdomain.com/index.php?p=/pagessettings/allpages

Comments

  • edited February 2019

    Thank you for using Basic Pages!

    What version of Vanilla are you using?

    Please add this line to the /conf/config.php file to see details behind the "something has gone wrong" error:

    $Configuration['Debug'] = true;
    

    Please share the error message details here.

    Add Pages to Vanilla with the Basic Pages app

  • This is the error message I'm getting-

    My Vanilla forum version is 3.2

    417:                 if (!$message) {
    418:                     $message = $ex->getMessage();
    419:                 }
    420: 
    421:                 trigger_error($message, E_USER_ERROR);
    422:             }
    423: 
    424:         }
    425: 
    


    [sql] 'select p.PageID as `PageID`, p.Name as `Name`, p.UrlCode as `UrlCode`, p.ViewPermission as `ViewPermission`
    from `GDN_Page` `p`
    where `p`.`SiteMenuLink` = :pSiteMenuLink
    order by `Sort` asc'
    [inputParameters] array (
      ':pSiteMenuLink' => '1',
    )
    [options] array (
      'Type' => 'select',
      'Slave' => NULL,
      'ReturnType' => 'DataSet',
    )
    [returnType] 'DataSet'
    [tries] 2
    [try] 0
    [pDO] array (
    )
    [pDOStatement] false
    [state] '42S02'
    [code] 1146
    [message] 'Table \'admin_vanilla.GDN_Page\' doesn\'t exist'
    [ex] array (
    )
    


  • Have you enabled the application through the dashboard? When doing so some database tables are created and it looks as if they are missing in your installation. Disable and reenable the application to try to fix this.

  • Hello @R_J ,

    Thanks for your reply.

    I tried your solution but unfortunately that didn't work, getting the same error.

    Admin dashboard is working but the forum is not accessible after installing the plugin.

    Thanks for your help.

    Kind Regards

  • Sorry, I don't see any poosible reason for that. Based on the error message, the table GDN_Page is missing from the database, which would only be the case if the enabling of the application failed. Could you please look into your database if that table exists?

  • Hello @R_J ,

    I've just checked and the table is not there, unfortunately, I'm not a developer so I don't know how to create the database table.

    I tried to create the table but there are lots of options to add and I really don't know about them.

    Any help would be greatly appreciated.

    Kind Regards

  • How did you re-enabled it? Through the dashboard?

    Well anyway: if you run yourforum.com/utility/structure, it should be created.

  • Thank you so much for your help @R_J ,

    It fixed the "Something has gone wrong." problem, however, when I click the "new page" or "All pages" in the admin panel then it is showing this page "View not found. The view you were looking for could not be found."


  • And yes, I was enabling/disabling the plugin through the dashboard.

  • Is Basic Pages located in /applications/basicpages?

  • No, its not there, should I create the "basicpages" folder in the applications?

    Thank you so much for your help.

    Kind Regards

  • My bad, I'm really sorry, I was doing it wrong from the beginning, I had uploaded the module in the "Plugins" folder and that's why it was not working.

    I've uploaded it in the "applications" folder and everything is working fine now.

    I appreciate your patience to help newbies like me.

    Kind Regards

  • My forum is Vanilla Forum 3.0, when I activate the Basic Pages plugin, my site is down!

    Someone please help me to solve, and I want use this plugin on my site.

    and the error below:

    Fatal Error in PHP.gdn_ErrorHandler();

    Table 'lowendcube.GDN_Page' doesn't exist

    The error occurred on or near: /www/wwwroot/lowendcube.com/library/database/class.database.php

    417:                 if (!$message) {
    418:                     $message = $ex->getMessage();
    419:                 }
    420: 
    421:                 trigger_error($message, E_USER_ERROR);
    422:             }
    423: 
    424:         }
    425: 
    

    Backtrace:

    /www/wwwroot/lowendcube.com/library/database/class.database.phpPHP::gdn_ErrorHandler();
    [/www/wwwroot/lowendcube.com/library/database/class.database.php:421] PHP::trigger_error();
    [/www/wwwroot/lowendcube.com/library/database/class.sqldriver.php:1707] Gdn_Database->query();
    [/www/wwwroot/lowendcube.com/library/database/class.sqldriver.php:664] Gdn_SQLDriver->query();
    [/www/wwwroot/lowendcube.com/plugins/basicpages/models/class.pagemodel.php:91] Gdn_SQLDriver->get();
    [/www/wwwroot/lowendcube.com/plugins/basicpages/settings/class.hooks.php:31] PageModel->GetAllSiteMenuLink();
    [/www/wwwroot/lowendcube.com/plugins/basicpages/settings/class.hooks.php:31] BasicPagesHooks->Base_Render_Before();
    [/www/wwwroot/lowendcube.com/library/Garden/EventManager.php:278] PHP::call_user_func_array();
    [/www/wwwroot/lowendcube.com/library/core/class.pluginmanager.php:810] Garden\EventManager->fire();
    [/www/wwwroot/lowendcube.com/library/core/class.pluginmanager.php:773] Gdn_PluginManager->callEventHandler();
    [/www/wwwroot/lowendcube.com/library/core/class.pluggable.php:205] Gdn_PluginManager->callEventHandlers();
    [/www/wwwroot/lowendcube.com/applications/vanilla/controllers/class.discussionscontroller.php:228] Gdn_Pluggable->__call();
    [/www/wwwroot/lowendcube.com/library/core/class.dispatcher.php:872] DiscussionsController->index();
    [/www/wwwroot/lowendcube.com/library/core/class.dispatcher.php:289] Gdn_Dispatcher->dispatchController();
    [/www/wwwroot/lowendcube.com/index.php:29] Gdn_Dispatcher->dispatch();
    

    Variables in local scope:

    [sql] 'select p.PageID as `PageID`, p.Name as `Name`, p.UrlCode as `UrlCode`, p.ViewPermission as `ViewPermission`
    from `GDN_Page` `p`
    where `p`.`SiteMenuLink` = :pSiteMenuLink
    order by `Sort` asc'
    [inputParameters] array (
      ':pSiteMenuLink' => '1',
    )
    [options] array (
      'Type' => 'select',
      'Slave' => NULL,
      'ReturnType' => 'DataSet',
    )
    [returnType] 'DataSet'
    [tries] 2
    [try] 0
    [pDO] array (
    )
    [pDOStatement] false
    [state] '42S02'
    [code] 1146
    [message] 'Table \'lowendcube.GDN_Page\' doesn\'t exist'
    [ex] array (
    )
    
Sign In or Register to comment.