database errors

I just got 15 database errors, automatically sent to me in e-mails, and I am not a programmer and I have no clue what they mean or if they are serious or if I they need to be fixed. Below is a sample email message:

Database error in My Art Friends
Mysql error:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Debug backtrace:
Array
(
[1] => Array
(
[file] => /home/myartfri/public_html/inc/modules.inc.php
[line] => 22
[args] => Array
(
[0] => /home/myartfri/public_html/inc/db.inc.php
)

[function] => require_once
)

[2] => Array
(
[file] => /home/myartfri/public_html/inc/admin.inc.php
[line] => 23
[args] => Array
(
[0] => /home/myartfri/public_html/inc/modules.inc.php
)

[function] => require_once
)

[3] => Array
(
[file] => /home/myartfri/public_html/inc/design.inc.php
[line] => 22
[args] => Array
(
[0] => /home/myartfri/public_html/inc/admin.inc.php
)

[function] => require_once
)

[4] => Array
(
[file] => /home/myartfri/public_html/guestbook.php
[line] => 22
[args] => Array
(
[0] => /home/myartfri/public_html/inc/design.inc.php
)

[function] => require_once
)

)


Called script: /guestbook.php

Request parameters:
Array
(
[owner] => 187
[action] => new
[add] => Add record
[newrecord] =>  free how to win at black jack caesars blackjack tournaments casinos online free chips sign up bonus optimal betting ramp blackjack ace blackjack slots casinos
)


--
Auto-report system

Quote · 11 Mar 2009

.

Don't know if this'll help at all, but I've had that happen to me twice already. Each time it had to do with changes/adjustments that I made in our dolphin community. One of those times I removed a php function that I didn't want without realizing that a set of two tags which I thought belonged to another function ... had to be removed as well. Until I deleted those extra tags too, I received an db error which was emailed to me ... every couple of minutes ... because the error was related to a cron function that could no longer be carried out. Consequently the system notified me, the admin, of a problem. Is it possible that you changed or modified something? If not, then hopefully someone else on this forum can help you out.

.

.

Greetings from Germany

Quote · 11 Mar 2009

I do not recall changing anything recently. The only thing I have changed lately was, actually, restoring the default settings for member's registration info so that they can be searched, but that was months ago.

Quote · 11 Mar 2009

I can get database errors sometimes and thats usually when ive been altering a members headline or what theyve said in the discription, or deleted a member. It's usually when ive been moderating the accounts in some way. I dont think its anything to worry about unless it happens everyday and the same error when you havent altered anything.

Quote · 11 Mar 2009

Please open each of these files and go to the line it's discussing and note where each of these strings of code is pointing to.  If you need help, then please post just that string of the code and we will be happy to help you out. 

Quote · 11 Mar 2009

[file] => /home/myartfri/public_html/inc/modules.inc.php
[line] => 22

Here is line 22 in the code for the first file listed (above) in the database from my post.

require_once("db.inc.php");

Do you need all the files opened?

Quote · 11 Mar 2009

I could be way off here, but have you had a spammer in recently. Im just going by this,

alled script: /guestbook.php

Request parameters:
Array
(
[owner] => 187
[action] => new
[add] => Add record
[newrecord] =>  free how to win at black jack caesars blackjack tournaments casinos online free chips sign up bonus optimal betting ramp blackjack ace blackjack slots casinos
)

It looks like somebody is spamming the guest book with a casino adds.  Im probably wrong but it does look like it reading that

Quote · 11 Mar 2009

I was wondering about that stuff about blackjack in there. Is it anything to worry about?

Quote · 11 Mar 2009

 

[file] => /home/myartfri/public_html/inc/modules.inc.php
[line] => 22

 

Here is line 22 in the code for the first file listed (above) in the database from my post.

 

require_once("db.inc.php");

 

 

Do you need all the files opened?

 

Check if you have the file inc/db.inc.php and the permissions are set to 644

 

 

Quote · 11 Mar 2009

well what i would do to start with is go into your admin panel and look at the members list and look who is member 187 and go look at his/her guest book. according to the record above somebody has put something in that guest book to do with casino's. more than likely a link too.

Quote · 11 Mar 2009

You are right, somebody has put over fifty entries in that users guestbook, with about 7 links in each entry to porn sites. Is there an easy way to delete them all?

Quote · 12 Mar 2009

There were about 175 entries of gambling and porn links. I deleted them all and I changed the Member Guestbook settings so that it is only visible to members, it was visible to members and guests.

Thanks for the help.

Quote · 12 Mar 2009

I checked inc/db.inc.php and the permission is set to 0644

thanks for the help

[file] => /home/myartfri/public_html/inc/modules.inc.php
[line] => 22

Here is line 22 in the code for the first file listed (above) in the database from my post.

require_once("db.inc.php");

Do you need all the files opened?

Check if you have the file inc/db.inc.php and the permissions are set to 644

Quote · 12 Mar 2009

 

 

I checked inc/db.inc.php and the permission is set to 0644

 

thanks for the help

 

 

[file] => /home/myartfri/public_html/inc/modules.inc.php
[line] => 22

 

Here is line 22 in the code for the first file listed (above) in the database from my post.

 

require_once("db.inc.php");

 

 

Do you need all the files opened?

 

Check if you have the file inc/db.inc.php and the permissions are set to 644

 

 

 

 

Glad you found the problem and great eye there Tyke.  I got one for ya as I've fried my brain on this today.  Maybe you guys can spot it.  I'll start a thread for it.

Quote · 12 Mar 2009

There is (apparently) a 'bot' that looks for guestbook.php. I renamed my guestbook.php file and updated the relevant links. So far no problems on either of my sites. Some suggest deleting guestbook.php as they feel it is no longer relevant. Your call.

All the best,

Stuart

There were about 175 entries of gambling and porn links. I deleted them all and I changed the Member Guestbook settings so that it is only visible to members, it was visible to members and guests.

Thanks for the help.

There are none so blind as those that will not see.
Quote · 12 Mar 2009

Actually, not sure I fixed the problem, as I was deleting the Guestbook records, more were being added as I was deleting, about one entry per minute. I made the Members Guestbook not visible to members and guests but it looked like the entries were still being added. Is that possible? Entries added when the members guestbook is not visible to members or guests?

Quote · 12 Mar 2009

Can I re-add the guestbook.php file at a later date if I delete it now?

Quote · 12 Mar 2009

Yes. Just rename it.

Can I re-add the guestbook.php file at a later date if I delete it now?

There are none so blind as those that will not see.
Quote · 12 Mar 2009

Will it screw up the way my site works if I delete the guestbook file? Or will it hurt my site if I just leave the entries in there and make the guestbook not visible and not delete the file? Will the "bot" just keep adding thousands of entries?

Quote · 12 Mar 2009

This has been discussed here many times. Apparently there are many other software packages that use a guestbook.php file. Due to that fact the spammers have written hundreds of bots to look for and target that file. No matter what you set your membership levels the bots will continue to hit you. You have two options either delete the file and remove it from your menus or rename the file and change your menus in menu builder.

Quote · 12 Mar 2009

You need to find where the entries are coming from and block off that channel.  If it's a bot, then watch your logs and locate the IP it's coming in on.  A simple IP block will eliminate it.  If it's coming from your server then you will need to locate the file it's loading from.

 

 

***Alos, I solved the DB error I had, it had to do with the header on an e-mail in e-mail templates causing it.

Quote · 12 Mar 2009

If I rename the guestbook file, what should I rename it? Guestbooks? Guest-book? Something like that or a totally different name? And the only other thing I need to change is the name of the file in the Fields Builder section? Can I just change the filename there, or do I have to change the filename in c-panel under file manager?

Thank

Quote · 12 Mar 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.