Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Ver 2.3 | Admin side crash

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 905 Views
  • BuddhaSource
    Avatar
    Community Member
    57 Posts

    Ver 2.3 | Admin side crash Link to this post

    To start with I install ver 2.3 RC2 on my wamp server.

    In the admin end I could not see the custom fields, so I downloaded the daily build 27-jan and 28-jan.
    Overwrited the entire code and then flushed db.

    My front is working fine as usual but I am not able to access admin. I get following error.

    [User Error] Couldn't run query: SELECT "SiteTree".*, "GhostPage".*, "ErrorPage".*, "RedirectorPage".*, "VirtualPage".*, "SiteTree"."ID", CASE WHEN "SiteTree"."ClassName" IS NOT NULL THEN "SiteTree"."ClassName" ELSE 'SiteTree' END AS "RecordClassName" FROM "SiteTree" LEFT JOIN "GhostPage" ON "GhostPage"."ID" = "SiteTree"."ID" LEFT JOIN "ErrorPage" ON "ErrorPage"."ID" = "SiteTree"."ID" LEFT JOIN "RedirectorPage" ON "RedirectorPage"."ID" = "SiteTree"."ID" LEFT JOIN "VirtualPage" ON "VirtualPage"."ID" = "SiteTree"."ID" WHERE ("SiteTree"."ParentID" = 0 AND "SiteTree"."ID" != 0) AND ("Lang" = 'en' OR "Lang" = '' OR "Lang" IS NULL ) AND ("Lang" = 'en' OR "Lang" = '' OR "Lang" IS NULL ) ORDER BY "Sort" Unknown column 'Lang' in 'where clause'
    GET /cms2/admin
    Line 428 in D:\wamp\www\cms2\sapphire\core\model\MySQLDatabase.php

    Source
    419    }
    420    
    421    function databaseError($msg, $errorLevel = E_USER_ERROR) {
    422       // try to extract and format query
    423       if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
    424          $formatter = new SQLFormatter();
    425          $msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
    426       }
    427       
    428       user_error($msg, $errorLevel);
    429    }
    430    
    431    /**
    432     * Return a boolean type-formatted string
    433     *
    434     * @params array $values Contains a tokenised list of info about this data type
    Trace

    We are developing themes so decided to work on 2.3 directly.

  • BuddhaSource
    Avatar
    Community Member
    57 Posts

    Re: Ver 2.3 | Admin side crash Link to this post

    Any suggestion please ? I checked up 29th Jan mid night build too but still no solutions.

    EDIT :

    I found the solution, seems Windows Folder permission issue.
    For me it was folder mysite

    Solution, installed in new folder.

    I think we need some debug error that should point to the folder permission issue.

    Thanks.

    905 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.