View Full Version : Database Users cannot login
forTheDogs
01-03-2008, 02:01 PM
My database has user id's and passwords in a user table. Until recently, there has not been a problem logging in but now when one tries to login, they first get a message that the login was invalid. On a second attempt, they are logged in as a guest without the ability to add records or edit their existing records.
I am not having this problem on the testing server on my PC.
I would really appreciate if anyone has any ideas to why this is happening.
Thanks!
shadmego
01-03-2008, 02:51 PM
Are you using a pre-built system or are you using a custom script to handle your user logins?
Can you provide any information as far as error logs in CPanel goes? I can't really guess as to the problem without knowning what specific error you are seeing in your error logs.
~regards
forTheDogs
01-03-2008, 03:56 PM
This is the only error I see. But all my database files are located in a subdirectory under public_html and my index file and footer.php file are in the public_html directory:
[03-Jan-2008 13:07:11] PHP Warning: include(footer.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/forthel4/public_html/index.php on line 121 [03-Jan-2008 13:07:11] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forthel4/public_html/index.php on line 121
There are a few other errors but I can see that they pertain to broken links resulting from some changes I made in file names.
I created the database using PHPRunner xlinesoft. You create the database and it creates all the other files you need to update, add records, do searches, login pages, registration, etc.
Thanks so much!
forTheDogs
01-03-2008, 05:16 PM
This error is repeated over and over -
for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in
not just this one time and not just for this file
[03-Jan-2008 13:07:11] PHP Warning: include(footer.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/forthel4/public_html/index.php on line 121 [03-Jan-2008 13:07:11] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forthel4/public_html/index.php on line 121
shadmego
01-03-2008, 08:46 PM
can you post the code that is being used to attach the footer.php file?
forTheDogs
01-04-2008, 09:09 AM
<?php
include('footer.php');
?>
and here's the code in the footer:
<table class=Nav align="center">
<tr><td colspan=2><br><hr></td></tr>
<tr><td align=right><a href="#anchorTop">Back to the Top</a></a>|</td>
<td align=left>|<a href="/index.php">Back to BrookHill Welcome Page</a></td>
</tr>
</table>
</div>
</body>
</html>
Thanks!!
shadmego
01-04-2008, 09:21 AM
The error seems to be indicating that the footer.php file is not in the same folder as the index.php file, which is calling it:
failed to open stream: No such file or directory in /home/forthel4/public_html/index.php on line 121
I am assuming the include function is on line 121 in index.php. The only thing I can suggest is to go back to your File Manager and make sure the footer.php file is in the same folder as the index.php file. If not, then you can either move the footer.php file, or rename the include path to point to the location of the footer.php file.
~regards
forTheDogs
01-04-2008, 12:11 PM
Thanks but now I am getting these errors:
[Fri Jan 4 11:04:27 2008] [error] [client 69.19.14.16] script not found or unable to stat: /home/forthel4/public_html/menu.php [Fri Jan 4 11:04:45 2008] [error] [client 66.249.67.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary. [Fri Jan 4 11:04:45 2008] [error] [client 66.249.67.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary. SUEXEC error_log:
forTheDogs
01-04-2008, 12:32 PM
And now this: I don't know what any of the referred gif files are! And I never put images in my main folder.
Fri Jan 4 11:21:57 2008] [error] [client 69.19.14.16] File does not exist: /home/forthel4/public_html/collapse.gif [Fri Jan 4 11:22:07 2008] [error] [client 69.19.14.16] File does not exist: /home/forthel4/public_html/upshrink2.gif [Fri Jan 4 11:22:07 2008] [error] [client 69.19.14.16] File does not exist: /home/forthel4/public_html/upshrink.gif [Fri Jan 4 11:22:07 2008] [error] [client 69.19.14.16] File does not exist: /home/forthel4/public_html/expand.gif [Fri Jan 4 11:22:07 2008] [error] [client 69.19.14.16] File does not exist: /home/forthel4/public_html/collapse.gif [Fri Jan 4 11:24:46 2008] [error]
And I don't know what this means:
[client 38.100.41.112] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/cpanel/cgi-sys/virtualphp"
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.