Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Server Error

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: 1184 Views
  • Hery
    Avatar
    Community Member
    14 Posts

    Server Error Link to this post

    Please help me, whenever I visit my web site appear "Server error

    Sorry, there was a problem with handling your request.

    Generated with the default template ContentController.ss "

    Attached Files
  • novaweb
    Avatar
    Community Member
    111 Posts

    Re: Server Error Link to this post

    Hey Hery,

    Need more info...

    Has the website ever worked? (have you completed installation process?)

    In mysite/_config.php paste this to set your site to dev mode, it may give you more info:

    Director::set_environment_type("dev");

    Cheers,
    Josh

  • Hery
    Avatar
    Community Member
    14 Posts

    Re: Server Error Link to this post

    Yes, this site has been running about 1 month. initially normal, and I can also update by CMS. I will try your suggestion now, and inform you.

  • Hery
    Avatar
    Community Member
    14 Posts

    Re: Server Error Link to this post

    Dear Josh

    After i pasted to _config.php this line "Director::set_environment_type("dev");"
    it now appears:

    [Warning] mysql_connect() [function.mysql-connect]: Access denied for user 'u854568002_hc'@'10.2.1.2' (using password: YES)
    GET /

    Line 57 in /home/u854568002/public_html/sapphire/core/model/MySQLDatabase.php

    Source

    48     * Connect to a MySQL database.
    49     * @param array $parameters An map of parameters, which should include:
    50     * - server: The server, eg, localhost
    51     * - username: The username to log on with
    52     * - password: The password to log on with
    53     * - database: The database to connect to
    54     * - timezone: (optional) The timezone offset. For example: +12:00, "Pacific/Auckland", or "SYSTEM"
    55     */
    56    public function __construct($parameters) {
    57       $this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
    58
    59       if(self::$connection_charset) {
    60          $this->query("SET CHARACTER SET '" . self::$connection_charset . "'");
    61          $this->query("SET NAMES '" . self::$connection_charset . "'");
    62       }
    63

    Trace

    mysql_connect(<filtered>,<filtered>,<filtered>,<filtered>)
    Line 57 of MySQLDatabase.php
    MySQLDatabase->__construct(Array)
    Line 97 of DB.php
    DB::connect(<filtered>)
    Line 121 of main.php

    then what should I do?

    thank
    hery

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Server Error Link to this post

    Seriously...

    mysql_connect() [function.mysql-connect]: Access denied for user 'u854568002_hc'@'10.2.1.2' (using password: YES)

    ...you don't know what this might mean? And no, I don't know you correct database credentials...

  • Hery
    Avatar
    Community Member
    14 Posts

    Re: Server Error Link to this post

    I know, but why this had happened after 1 month. But this issue is resolved, the database error, I can not login with my password. then I delete it and create a new database and than i import my data , now it is running normally.
    Thanks for the help.

    Hery Cahyadi

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