You are here:  » Access denied

Support Forum



Access denied

Submitted by Bob on Sun, 2013-04-28 14:39 in

I am having trouble to register the feeds in step 2. I would get:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'xxx'@'localhost' (using password: NO) in /home/ici/public_html/includes/database.php on line 65

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/ici/public_html/includes/database.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at /home/ici/public_html/includes/database.php:65) in /home/ici/public_html/admin/feeds_register_step2.php on line 78

However if I tried to use feeds_import_slow.php it would import a feed but then again I would would not be able to use filters on that as I would be getting the same warning above as they depend on registering the feeds first. The user in the warning message is not the same as the database user I can see that the user mentioned in the warning is the one I use to log into the account/host = a general user used for logging so I am not sure what is really going on here.

Thanks.

Submitted by support on Mon, 2013-04-29 08:05

Hello Bob,

In includes/database.php, look for the code that is currently using mysql_real_escape_string()in your version and REPLACE with:

  return @mysql_escape_string($text);

...the @ prefix will suppress any E_DEPRECATED warning if that was the original reason for changing; in fact all non-mysqli versions of the MySQL functions are being deprecated so I will be releasing mysqli version of the database library shortly...

Cheers,
David.
--
PriceTapestry.com