Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Lost my site. Need any help


Go to End


2 Posts   1322 Views

Avatar
Arthuras

Community Member, 1 Post

30 July 2010 at 6:56am

Hi everyone
When I'm trying access my site. But I get (see below)

Notice: Undefined index: FormField in /home/arkama/domains/arkama.com/public_html/sapphire/core/ManifestBuilder.php on line 459

Warning: There are two files both containing the same class: '/home/arkama/domains/arkama.com/public_html/sapphire/core/model/FormField.php' and ''. This might mean that the wrong code is being used. in /home/arkama/domains/arkama.com/public_html/sapphire/core/ManifestBuilder.php on line 461
[Warning] mysql_connect() [function.mysql-connect]: Access denied for user 'arkama_arkama'@'localhost' (using password: YES)
GET /

Line 57 in /home/arkama/domains/arkama.com/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, eg: +12:00 for NZ time
55 */
56 public function __construct($parameters) {
57 $this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password']);
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(localhost,arkama_arkama,HPErBS8S)
Line 57 of MySQLDatabase.php
* MySQLDatabase->__construct(Array)
Line 94 of DB.php
* DB::connect(Array)
Line 121 of main.php

Avatar
Bambii7

Community Member, 254 Posts

2 August 2010 at 11:07am

Hi Arthuras,
Looks like it could be a misconfiguration of database details.
I get this a bit when I switch sites around form local to live.

"[Warning] mysql_connect() [function.mysql-connect]: Access denied for user 'arkama_arkama'@'localhost' (using password: YES) "

double check the details in mysite/_config.php
Also you may want to rename the datebase name, because its been made public after posting that error.