Jump to content

Recommended Posts

Every time i try to fix this i keep getting this 

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'asdasd'@'localhost' (using password: YES)' in /home/u345945996/public_html/includes/db.php:7 Stack trace: #0 /home/u345945996/public_html/includes/db.php(7): PDO->__construct('mysql:host=loca...', 'asdasd', 'nasdas') #1 /home/u345945996/public_html/index.php(3): require_once('/home/u34594599...') #2 {main} thrown in /home/u345945996/public_html/includes/db.php on line 7

Can someone help me fix this???

Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/
Share on other sites

Usually, the message:
Access denied for user 'asdasd'@'localhost' (using password: YES)
means that, even though a password is being supplied, the problem is...
* the username is not recognized by the database server
* the password is not recognized by the database server
* the database being connected to does not have permission to let this user access it as per the database server
* the database server has been told to only allow this user access from a particular computer, other than localhost

Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480245
Share on other sites

ok i fixed that now i get this error

Parse error: syntax error, unexpected '[' in /home/u345945996/public_html/inc/classes/resolvers/skype.class.php on line 14

heres what i have in skype.class.php

<?php

class SkypeResolver {
	function __construct($db) {
		$this->db = new DB($db);
	}
	function get_ip($username) {
		$str = $this->skypeurl();
		$str .= $username;
		$output = file_get_contents($str);
		return $output;
	}
	function skypeurl() {
		return $this->db->fetch_array($this->db->query("SELECT * FROM `settings` WHERE `ident`='skype-api-url'"))['val'];
	}
}
?>
Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480361
Share on other sites

here is the db.class.php

<?php


class DB {
	function __construct($db) {
		$this->error = new Error();
		$this->mysqli = new mysqli($db['host'], $db['user'], $db['pass'], $db['name']);
		if($this->mysqli->connect_error) {
			$this->error->connect_error();
		}
	}
	function query($i) {
		return $this->mysqli->query($i);
	}
	function fetch_array($i) {
		return $i->fetch_array(MYSQLI_ASSOC);
	}
	function num($i) {
		return $i->num_rows;
	}
}
?>
Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480369
Share on other sites

 

ok i fixed that now i get this error

Parse error: syntax error, unexpected '[' in /home/u345945996/public_html/inc/classes/resolvers/skype.class.php on line 14

heres what i have in skype.class.php

<?php

class SkypeResolver {
	function __construct($db) {
		$this->db = new DB($db);
	}
	function get_ip($username) {
		$str = $this->skypeurl();
		$str .= $username;
		$output = file_get_contents($str);
		return $output;
	}
	function skypeurl() {
		return $this->db->fetch_array($this->db->query("SELECT * FROM `settings` WHERE `ident`='skype-api-url'"))['val'];
	}
}
?>

 

Ok i found my mistake in that one i added a little too much in to it. now once i fixed it i got this one.

Deprecated: Function ereg_replace() is deprecated in /home/u345945996/public_html/inc/classes/resolvers/cloudflare.api.php(1) : eval()'d code on line 1

cloudflare.api.php

<?php $_F=__FILE__;$_X='Pz48P3BocA0KLy81cnIycl9yNXAycnQ0bmcoMCk7DQoNCg0KY2wxc3MgQ2wyM2RmbDFyNUFQSSB7DQoJcHI0djF0NSBmM25jdDQybiAxbGxfY2ZfNHAoJHIxbmc1KQ0KCXsNCgkJJHIxbmc1XzFyciA9IDFycjF5KCk7DQoJCQk0ZigkcjFuZzUgPT0gIjY3byIpIA0KCQkJew0KCQkJCSRzID0gdTg7DQoJCQkJJDUgPSBlbzsNCgkJCQlmMnIoJHM9dTg7ICRzIDwgJDU7KQ0KCQkJCQl7DQoJCQkJCQkkcysrOw0KCQkJCQkJJDVhID0gYWlpOw0KCQkJCQkJZjJyKCRzYT0wOyAkc2EgPCAkNWE7KQ0KCQkJCQkJCXsNCgkJCQkJCQkJJHNhKys7DQoJCQkJCQkJCTFycjF5X3Azc2goJHIxbmc1XzFyciwgIjY3by5hdWkuIiAuJHMuICIuIiAuJHNhKTsNCgkJCQkJCQkJDQoJCQkJCQkJfQ0KCQkJCQl9DQoJCQkJfQ0KCQkJCQ0KCQkJNGYoJHIxbmc1ID09ICI2OTkiKSANCgkJCXsNCgkJCQkkcyA9IDZhODsNCgkJCQkkNSA9IDZvaTsNCgkJCQlmMnIoJHM9NmE4OyAkcyA8ICQ1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NCn0NCj8+';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480371
Share on other sites

I've stopped using any proprietary sofware like skype and teamviewer many years ago :)

 

 

idk how do i check .....
 

 

Start, explaining us, why are you using mysqli and pdo libraries at the same time? Or, you fixed the issue from your first post replacing pdo with mysqli? 

Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480386
Share on other sites

I've stopped using any proprietary sofware like skype and teamviewer many years ago :)

 

 

Start, explaining us, why are you using mysqli and pdo libraries at the same time? Or, you fixed the issue from your first post replacing pdo with mysqli? 

i just changed the whole sql

Link to comment
https://forums.phpfreaks.com/topic/288640-fatal-error/#findComment-1480390
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.