header

Collapse

5.6.3 Upgrade, final step 15

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Go to Thank You vB-Info
    Senior Member

    ❤️
    • 12.2020
    • 211
    • 10
    • 1

    Font Size
    #1

    5.6.3 Upgrade, final step 15

    Go to Thank You
    Hello, I am getting an error on final step 15 when performing an upgrade



    Code:



    Could not find phrase 'no_permission'. Arguments given were: on /usr/share/nginx/html/main/public/forums/core/vb/api/template.php : 556

    I have checked the config file to ensure that $config['SpecialUsers']['superadmins'] is correct.



    I added some debugging to the createAdminSession function in class_upgrade.php.





    Code:



    public static function createAdminSession()
    {
    $session = vB::getCurrentSession();
    if(empty($session) OR ($session->get('userid') {
    echo "GOT HERE \n";
    echo empty($session) ? "NO SESSION \n" : "GOT A SESSION \n";
    $userid = vB_PermissionContext::getAdminUser();
    echo "NEW USER ID: " . print_r($userid);
    $session = new vB_Session_Cli(vB::getDbAssertor(), vB::getDatastore(), vB::getConfig(), $userid);
    $session->fetchCpsessionHash();
    vB::setCurrentSession($session);
    }
    }

    It is showing correctly that the new user id is 1, however inside the api/template.php checkCanSaveTemplate function, the userContext is coming back with a userid of 0, causing the permission errors.



    Any help with this would be appreciated.



    -Thanks

    Devami...Go to Top of Post
    Similar Threads
X

Thread Information

Collapse

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

    Those who read this thread

    Collapse

    Members who have read this thread: 0

      Related Topics

      Collapse

      Topics Statistics Last Post
      Started by vB-Info, 2 weeks ago
      0 responses
      4 views
      0 reactions
      Last Post vB-Info
      by vB-Info
      Started by vB-Info, 2 weeks ago
      0 responses
      2 views
      0 reactions
      Last Post vB-Info
      by vB-Info
      Started by vB-Info, 13.03.24, 20:42
      0 responses
      21 views
      0 reactions
      Last Post vB-Info
      by vB-Info
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎

      AdBlock Detected

      Please Disable Adblock

      Please consider supporting us by disabling the ad blocker.

      I've Disabled AdBlock
      Home