Forum Moderators: open

Message Too Old, No Replies

MySQL database not saving certain inputs!

The database will not save my settings. Help.

         

pinapple

4:50 am on Jun 9, 2008 (gmt 0)

10+ Year Member



I have gotten errors and pictures not showing up. I have a virtual pet site and it needs a database. When I try and save some new things, it goes away and was never there! I don't know why. Here are some errors:

Warning: file(/lists/smilies.txt) [function.file]: failed to open stream: No such file or directory in /backup/pinapple/public_html/func.lib.php on line 41

Warning: eregi_replace() [function.eregi-replace]: REG_EMPTY in /backup/pinapple/public_html/func.lib.php on line 48

Warning: file(/lists/smilies.txt) [function.file]: failed to open stream: No such file or directory in /backup/pinapple/public_html/func.lib.php on line 41

Warning: eregi_replace() [function.eregi-replace]: REG_EMPTY in /backup/pinapple/public_html/func.lib.php on line 48

Can anyone tell me what that means and how do you fix it?

wheelie34

9:35 am on Jun 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi pinapple and welcome to webmasterworld

At a glance it looks like it can't find smilies.txt in the location your telling it to look, sometimes one problem can produce many errors.

What does line 41 in func.lib.php look like?

pinapple

1:10 pm on Jun 9, 2008 (gmt 0)

10+ Year Member



I found this:

 $smilies = file("$websiteURL/lists/smilies.txt");

on line 41.

---

Thanks for helping. :3

wheelie34

4:06 pm on Jun 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did it fix the problem, or point you in the right direction?

I take it you have a folder called lists which contains the file smilies.txt?

pinapple

10:58 pm on Jun 9, 2008 (gmt 0)

10+ Year Member



I wonder if when I uploaded the master file with them all in there and it did not have that page in there.

I will check. I think I understand a little more now. Thanks :3

dreamcatcher

8:21 am on Jun 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are actually PHP errors and not database errors.

dc