Php fatal error referer

PHP Fatal error

For some reason Apache/PHP is throwing these errors in the error_log. I can’t figure out what is causing it?

[Wed May 06 16:39:33.056497 2015] [:error] [pid 14857:tid 140714977302272] [client 165.196.202.10:3143] PHP Fatal error: Unknown: Cannot find save handler '/var/lib/php/wsdlcache' in Unknown on line 0, referer: http://web.$ [Wed May 06 16:43:34.248044 2015] [:error] [pid 15111:tid 140715103180544] [client 163.248.244.189:25966] PHP Fatal error: Unknown: Cannot find save handler 'tcp://74.221.216.88:11211?persistent=1&timeout=1&retry_i$ [Wed May 06 16:45:04.160496 2015] [:error] [pid 15174:tid 140715375916800] [client 163.248.244.76:32613] PHP Fatal error: Unknown: Cannot find save handler 'tcp://74.221.216.88:11211?persistent=1&timeout=1&retry_in$ [Wed May 06 16:45:33.577941 2015] [:error] [pid 15302:tid 140715134650112] [client 162.127.23.29:52057] PHP Fatal error: Unknown: Cannot find save handler 'tcp://74.221.216.88:11211?persistent=1&timeout=1&retry_int$ [Wed May 06 16:47:04.304594 2015] [:error] [pid 15365:tid 140714998281984] [client 198.236.95.97:22866] PHP Fatal error: Unknown: Cannot find save handler 'tcp://74.221.216.88:11211?persistent=1&timeout=1&retry_int$ [Wed May 06 16:50:31.683150 2015] [:error] [pid 15680:tid 140715218568960] [client 206.208.218.40:40735] PHP Fatal error: Unknown: Cannot find save handler 'tcp://74.221.216.88:11211?persistent=1&timeout=1&retry_in$ 
session.save_handler => memcache => memcache session.save_path => tcp://74.221.216.88:11211?persistent=1&weight=1&timeout=1&retry_interval=10 => tcp://74.221.216.88:11211?persistent=1&weight=1&timeout=1&retry_interval=10 

Источник

PHP Fatal Error: failed opening required

[Fri Mar 25 14:52:24 2011] [error] [client 12.3.3.3] PHP Fatal error: require() [function.require]: Failed opening required ‘/includes/sess-start.php’ (include_path=’.:’) in /var/www/vhosts/site.com/httpdocs/page.php on line 4, referer: https://www.site.com/

Edit 1

These are includes/requires which may themselves contain additional require or include statements. Relative paths WILL NOT WORK so please do not suggest such. My .htaccess file already points all include paths to the site root directory:

Читайте также:  Python получить время создания файла

Edit 2

Not all of my include or required scripts are contained with a single directory so suggesting to simply place the /includes directory in the include_path is negated as well (and in turn also causes problems on a windows machine)

Update

Perhaps some clarification on a real-life example may help to resolve the issue our team is trying to solve for: On one page, a user may enter a number of options, the following page makes its necessary calculations and based on that will route the customer in a number of potential options, all which lead to require statements for something like a DB entry. Then, within the db entry (or some other action) if everything goes smoothly, the member may have chosen before to receive an email confirmation based on his/her action. This require statement lies within the 2nd require (db insert) but is in a different directory than the second and thus causing conflict given the first file treats the linking incorrectly. Hard coding the absolute path or even setting the appropriate include path per page is ‘ok’ but then it disables our team’s ability to hotlink between files with dreamweaver (or any other program that does the same) because it does not recognize a ‘site root’ when running in a test environment.

Источник

Notice: Undefined index: HTTP_REFERER

Notice: Undefined index: HTTP_REFERER $http_referer = $_SERVER[‘HTTP_REFERER’] i used this from tutorial.and it looks okay also code is calling it from including file what should i change? i added print_r($_SERVER); and now page gives me this

 Array ([UNIQUE_ID] => UoSxWa56310AAAwUckIAAAAA [HTTP_HOST] => movafaghha.com [HTTP_COOKIE] => __utma=210711305.58608218.1372977010.1372977010.1372977010.1; __utmz=210711305.1372977010.1.1.utmcsr=who.is|utmccn=(referral)|utmcmd=referral|utmcct=/whois/movafaghha.com; PHPSESSID=83eb0e2ae7ebe4b6c2eeb071d9f5de71 [HTTP_X_REAL_IP] => 109.109.41.81 [HTTP_X_FORWARDED_HOST] => movafaghha.com [HTTP_X_FORWARDED_SERVER] => movafaghha.com [HTTP_X_FORWARDED_FOR] => 109.109.41.81 [HTTP_CONNECTION] => close [HTTP_CACHE_CONTROL] => max-age=0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 Safari/537.36 [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8,fa;q=0.6 [PATH] => /sbin:/usr/sbin:/bin:/usr/bin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache [SERVER_NAME] => movafaghha.com [SERVER_ADDR] => 174.122.223.93 [SERVER_PORT] => 80 [REMOTE_ADDR] => 109.109.41.81 [DOCUMENT_ROOT] => /home/memarest/public_html/movafaghha.com [SERVER_ADMIN] => webmaster@movafaghha.memarestan.com [SCRIPT_FILENAME] => /home/memarest/public_html/movafaghha.com/tutorials/login200/register.php [REMOTE_PORT] => 49737 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.0 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /tutorials/login200/register.php [SCRIPT_NAME] => /tutorials/login200/register.php [PHP_SELF] => /tutorials/login200/register.php [REQUEST_TIME_FLOAT] => 1384427865.54 [REQUEST_TIME] => 1384427865 [argv] => Array ( ) [argc] => 0 ) 
 else < echo ' All fields are required'; >> ?> Username: 


Password:


Password again:


Firstname:


Surname:


elseif (loggedIn()) < echo 'you \'re already logged in'; >?>

Источник

php+mysql Fatal error: Call to undefined function mysql_connect() in [duplicate]

I have searched the internet for troubleshooting with this «Call to undefined function mysql_connect() » error but none of the suggested procedures works. When I try to access mysql from php, I get this error. I have PHP Version 5.2.17 and MySQL 5.1.68 (mysql is running outside php, I tried creating tables and databases etc.). I uncomment the extensions in php.ini:

extension=php_mysql.dll extension=php_mysqli.dll 

and specified the path to these extensions. I also added both PHP and MySQL to my PATH variable. I am using Apache 2.2. and I restarted the server after every change that I made. This is my code in php for accessing the database (but I suppose that the problem is not in syntax):

Читайте также:  Интерлиньяж

I am out of ideas how to fix this, can u suggest some other troubleshooting tips? I am quite new to his problematics. I would like to use MySQL, cause thats what I will use on the actual server when I´ll have my website up and running. Thanks in advance! EDIT: this is from apache log:

[Mon Mar 25 13:50:42 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in C:\\Web\\thenemis\\dbconnect.php on line 7, referer: http://localhost/thenemis/admin.php [Mon Mar 25 13:50:42 2013] [error] [client 127.0.0.1] File does not exist: C:/Web/favicon.ico 

EDIT2: this is from php info (I think that the problem may be with some unspecified parametres in php.ini file). I havent read anywhere that I should specify some other features than extensions and path to them but maybe I was wrong. what do you suggest?

mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.0.51a Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off 

Источник

Оцените статью