Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » LatestBlogPost error

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 430 Views
  • lulurdz
    Avatar
    Community Member
    3 Posts

    LatestBlogPost error Link to this post

    Hi!
    I'm new in ss, I want to have in my site the widget latestBlogPost, I download in my site, dev/build and an error appears:

    [Warning] pg_query() [function.pg-query]: Query failed: ERROR: column "created" does not exist LINE 1: ...ree_Live"."ClassName" IN ('BlogEntry')) ORDER BY `Created` D... ^
    GET /silverstripe/blog/

    Line 187 in C:\xampp\htdocs\silverstripe\postgresql\code\PostgreSQLDatabase.php
    Source

    178       if(isset($_REQUEST['previewwrite']) && in_array(strtolower(substr($sql,0,strpos($sql,' '))), array('insert','update','delete','replace'))) {
    179          Debug::message("Will execute: $sql");
    180          return;
    181       }
    182
    183       if(isset($_REQUEST['showqueries'])) {
    184          $starttime = microtime(true);
    185       }
    186
    187       $handle = pg_query($this->dbConn, $sql);
    188       
    189       if(isset($_REQUEST['showqueries'])) {
    190          $endtime = round(microtime(true) - $starttime,4);
    191          Debug::message("\n$sql\n{$endtime}ms\n", false);
    192       }
    193       

    any clue??

    thanks in advance!!

    430 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.