database.php problem

Reply

Join Date: Feb 2009
Posts: 9
Reputation: netviper is an unknown quantity at this point 
Solved Threads: 0
netviper netviper is offline Offline
Newbie Poster

Re: database.php problem

 
0
  #11
Feb 20th, 2009
Here is the error log:

[Fri Feb 20 08:03:19 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:19 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 08:03:19 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:19 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 08:03:17 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:17 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 08:03:17 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:17 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 08:03:14 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:14 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 08:03:11 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 08:03:11 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 07:45:16 2009] [error] [client 66.249.71.114] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:45:16 2009] [error] [client 66.249.71.114] File does not exist: /home/sportsti/public_html/robots.txt
[Fri Feb 20 07:30:40 2009] [error] [client 65.55.209.120] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:30:40 2009] [error] [client 65.55.209.120] File does not exist: /home/sportsti/public_html/robots.txt
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:06:21 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:05:04 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:05:04 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 07:05:01 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 07:05:01 2009] [error] [client 74.95.187.222] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 05:55:04 2009] [error] [client 66.249.71.112] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 05:55:04 2009] [error] [client 66.249.71.112] File does not exist: /home/sportsti/public_html/css/dropdown/default.ultimate.css
[Fri Feb 20 03:27:24 2009] [error] [client 125.211.218.16] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 03:27:24 2009] [error] [client 125.211.218.16] File does not exist: /home/sportsti/public_html/sumthin
[Fri Feb 20 02:54:16 2009] [error] [client 66.249.71.112] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 02:54:16 2009] [error] [client 66.249.71.112] File does not exist: /home/sportsti/public_html/robots.txt
[Fri Feb 20 02:34:23 2009] [error] [client 72.30.142.223] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 02:34:23 2009] [error] [client 72.30.142.223] File does not exist: /home/sportsti/public_html/robots.txt
[Fri Feb 20 01:36:28 2009] [error] [client 65.55.107.188] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:36:28 2009] [error] [client 65.55.107.188] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 01:06:19 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:06:19 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/favicon.ico
[Fri Feb 20 01:06:16 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:06:16 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/crossdomain.xml
[Fri Feb 20 01:06:16 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:06:16 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/favicon.ico
[Fri Feb 20 01:06:15 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:06:15 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 01:06:13 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 01:06:13 2009] [error] [client 76.175.32.221] File does not exist: /home/sportsti/public_html/swfobject.js
[Fri Feb 20 00:32:58 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 00:32:58 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/favicon.ico
[Fri Feb 20 00:32:55 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 00:32:55 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/crossdomain.xml
[Fri Feb 20 00:32:55 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 00:32:55 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/favicon.ico
[Fri Feb 20 00:32:54 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 00:32:54 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/images/OSCMAX_infobox_bg.gif
[Fri Feb 20 00:32:51 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/404.shtml
[Fri Feb 20 00:32:51 2009] [error] [client 76.220.55.170] File does not exist: /home/sportsti/public_html/swfobject.js
[Thu Feb 19 23:49:45 2009] [error] [client 24.110.249.245] File does not exist: /home/sportsti/public_html/404.shtml
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: netviper is an unknown quantity at this point 
Solved Threads: 0
netviper netviper is offline Offline
Newbie Poster

Re: database.php problem

 
0
  #12
Feb 20th, 2009
I think the problem might be this was designed for OSCOMMERCE and not OSCMAX. Everything works in the ADMIN tool, but it breaks my real site. Maybe it will never work? Or is this a simple fix?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,542
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 137
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Posting Virtuoso

Re: database.php problem

 
0
  #13
Feb 21st, 2009
Judging by the errors it seems it is a .htaccess problem. Because it looks like the htaccess file creates a virtual url of which the real path does not exist then it is directed to the 404 error page which does not exist. So I am 89% sure it is your .htacccess file if there is one. So try posting your .htaccess file and your real file structure and I shall help.
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*`
My favourite PC. - Oopy Doopy Do 2U2!
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: netviper is an unknown quantity at this point 
Solved Threads: 0
netviper netviper is offline Offline
Newbie Poster

Re: database.php problem

 
0
  #14
Feb 21st, 2009
Here are the contents of that file:


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
  1. <Limit GET POST>
  2. order deny,allow
  3. deny from all
  4. allow from all
  5. </Limit>
  6. <Limit PUT DELETE>
  7. order deny,allow
  8. deny from all
  9. </Limit>
  10. AuthName sportstickies.com
  11. AuthUserFile /home/sportsti/public_html/_vti_pvt/service.pwd
  12. AuthGroupFile /home/sportsti/public_html/_vti_pvt/service.grp
Last edited by peter_budo; Feb 22nd, 2009 at 8:56 am. Reason: Adding closing tag [/code]
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: netviper is an unknown quantity at this point 
Solved Threads: 0
netviper netviper is offline Offline
Newbie Poster

Re: database.php problem

 
0
  #15
Feb 22nd, 2009
Guys, where did you go?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,542
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 137
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Posting Virtuoso

Re: database.php problem

 
0
  #16
Feb 23rd, 2009
Originally Posted by netviper View Post
Guys, where did you go?
Here I am!
So the .htaccess file you posted is located at /home/sportsti/public_html/.htaccess or in other words is in the base of your public_html web directory?
Seems kinda odd that it redirects to a 404.shtml error page without that entry in the .htaccess file. Unless of course that 404.shtml file is located within the security policies which are included into the .htaccess file.

So what I can tell from your .htaccess file is that each time a user tries to retrieve a picture, javascript file etc, the server denies the user from accessing them due to the .htaccess file security policies. And that is what appears to be appending to your error log file. It appears the .htaccess file only contains data in relation to the security policies so if you tried to remove the .htaccess file then those errors append to the log. However if the security policies are still needed though, you will probably need to modify your .htaccess file to allow the browser to download the pictures, javascript files, robots.txt file etc.

I'm not that sure on how to make the correct modifications to your .htaccess file you might want to experiment with the sections that say deny from all and allow from all and order deny,allow Those sections are what control the security policies and are currently too strict for the browser to even just download a picture.

At least that is just from my observations of what you have posted so you can try removing the .htaccess file as a test and clearing the error log. Than after that load the page (with an empty error log and no .htaccess file) and see what errors are reported then. I believe that should remove at least some of the problems being reported in the error log.
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*`
My favourite PC. - Oopy Doopy Do 2U2!
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: netviper is an unknown quantity at this point 
Solved Threads: 0
netviper netviper is offline Offline
Newbie Poster

Re: database.php problem

 
0
  #17
Feb 23rd, 2009
so I tried removing the .htacess file, actually renaming it not.htaccess,

this made no difference on the errors. I am at a loss. I may just have to revert back to an old version and give up on the sort functionality. I find support for OSCMAX to be not very good. I don't understand why the backend admin tool displays everything correctly, yet the actual site breaks.??

  1. [Mon Feb 23 09:30:30 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  2. [Mon Feb 23 09:30:30 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  3. [Mon Feb 23 09:30:28 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  4. [Mon Feb 23 09:30:28 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  5. [Mon Feb 23 09:30:25 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  6. [Mon Feb 23 09:30:25 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  7. [Mon Feb 23 09:30:18 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  8. [Mon Feb 23 09:30:18 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  9. [Mon Feb 23 02:30:45 2009] [error] [client 65.55.209.111] File does not exist: /home/sportsti/public_html/404.shtml
Last edited by netviper; Feb 23rd, 2009 at 10:44 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,542
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 137
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Posting Virtuoso

Re: database.php problem

 
0
  #18
Feb 24th, 2009
Originally Posted by netviper View Post
so I tried removing the .htacess file, actually renaming it not.htaccess,

this made no difference on the errors. I am at a loss. I may just have to revert back to an old version and give up on the sort functionality. I find support for OSCMAX to be not very good. I don't understand why the backend admin tool displays everything correctly, yet the actual site breaks.??

  1. [Mon Feb 23 09:30:30 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  2. [Mon Feb 23 09:30:30 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  3. [Mon Feb 23 09:30:28 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  4. [Mon Feb 23 09:30:28 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  5. [Mon Feb 23 09:30:25 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  6. [Mon Feb 23 09:30:25 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  7. [Mon Feb 23 09:30:18 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/404.shtml
  8. [Mon Feb 23 09:30:18 2009] [error] [client 66.177.129.191] File does not exist: /home/sportsti/public_html/swfobject.js
  9. [Mon Feb 23 02:30:45 2009] [error] [client 65.55.209.111] File does not exist: /home/sportsti/public_html/404.shtml
From all the topics I have posted on this one seems the weirdest. Because from the previous posts all the other possibilities have been eliminated saying that it is your script. And yet there is a custom 404 error page without the help of a .htaccess file. However the custom 404 error page cannot be found so it too is then redirect to a different error page. So if it is your script, I understand that it is possible to rewrite urls (probably php4 - unsure if php5) with the following code:
  1. <?
  2. $docroot = $_SERVER['DOCUMENT_ROOT'];
  3. $script_root = str_replace( basename($_SERVER['SCRIPT_NAME']),'',$_SERVER['SCRIPT_NAME'] );
  4. $script_ext = substr( $_SERVER['SCRIPT_NAME'], strrpos( $_SERVER['SCRIPT_NAME'],'.' ) );
  5. $fakework_root = $script_root.basename( $_SERVER['SCRIPT_NAME'] ).'/';
  6. $framework_root = $script_root.'_'.basename( $_SERVER['SCRIPT_NAME'], $script_ext ).'/';
  7. $frequest_root = dirname( $framework_root.substr( $_SERVER['PATH_INFO'], 1 )).'/';
  8. $frequest_name = basename( $_SERVER['PATH_INFO'] );
  9. $frequest_ext = (strrpos($frequest_name,'.')===FALSE ? FALSE : strtolower(substr( $frequest_name, ( strrpos( $frequest_name, '.' )+1 ) ) ) );
  10. $frequest_full = $frequest_root.$frequest_name;
  11. $doc_frequest = $docroot.$frequest_full;
  12. $doc_framework = $docroot.$framework_root;
  13.  
  14. $DO_PARSE = in_array( $frequest_ext, $chk_exts );
  15. if( $DO_PARSE )
  16. {
  17. $tmpfname = tempnam( $doc_framework.'tmp', 'aj_' ).($frequest_ext? ('.'.$frequest_ext) : '');
  18. if( ($to_parse=@file_get_contents($doc_frequest))===FALSE )
  19. $to_parse="404";
  20. $tmpvname = str_replace( $docroot, '', $tmpfname );
  21. $tmpvname = str_replace( '\\\\', '/', $tmpvname );
  22. // - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. // Do processing of data stored in $to_parse
  24. // - - - - - - - - - - - - - - - - - - - - - - - - - - -
  25. $to_parse = striptags( $to_parse );
  26.  
  27. // - - - - - - - - - - - - - - - - - - - - - - - - - - -
  28. $handle = fopen($tmpfname, "w");
  29. fwrite($handle, $to_parse);
  30. fclose($handle);
  31. @virtual( $tmpvname.$getvars );
  32. unlink( $tmpfname );
  33. }
  34. else
  35. @virtual( $frequest_full.$getvars );
  36.  
  37. ?>
The above code shows what you may need to watch for within your script. In particular the virtual() function. Now that the other possibilities are eliminited, I suspect there is something simular (perhaps written in totally differently style) within your php pages. As rare as scripts like this appear they still do appear.

So I ask, could you check your script for the following functions and post the code surrounding the function (perhaps post 15 lines if one is found)
  • virtual()
  • apachie_* (* being a wild card)
  • tmpfile()
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*`
My favourite PC. - Oopy Doopy Do 2U2!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1129 | Replies: 17
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC