2 sam2kb Jun 10, 2012 10:25

There is only one redirect re 404 errors and no missing files. The error message indicates that it is looking for the file as though b2evolution is loaded from the root directory - it is loaded from a folder of the root eg /0805/... The correct folder is /0805/htsrv/comment_post.php and not /htsrv/comment_post.php
It appears that /htsrv/comment_post.php is the only file affected and it is coming off a number of the blogs I have loaded in this site.
Regards
Can you post .htaccess file here?
sam2kb
See the following - the problem existed before the deny from where added
thanks:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?cla.asn.au/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?cla.asn.au/.*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ - [F]
SetEnvIfNoCase Referer "^http://www.cplusplus.comli.com/" BadReferrer
SetEnvIfNoCase Referer "^http://www.hithavuzu.com/" BadReferrer
SetEnvIfNoCase Referer "^http://tiny.cc/buttfuckersjourney/" BadReferrer
SetEnvIfNoCase Referer "^http://www.cplusplus.comli.com/index.php?q=random/" BadReferrer
order deny,allow
deny from 27.159.235.189
deny from 60.191.129.118
deny from 120.33.245.180
deny from 61.164.163.138
deny from 58.83.224.212
deny from 175.44.19.186
deny from 121.205.212.17
deny from 120.43.21.123
deny from 122.141.242.199
deny from 186.89.161.143
deny from 59.152.229.10
deny from 200.84.231.74
deny from 202.195.144.50
Have you changed /conf/_advanced.php or any other config file?
Can you post _advanced.php file here?
sam2kb
See following which is the /conf/_advance.php. As a rule I am not into changing configuration files.
Regards
<?php
/**
* This file includes advanced settings for the evoCore framework.
*
* Please NOTE: You should not comment variables out to prevent
* URL overrides.
*
* @package conf
*
* @version $Id: _advanced.php 1109 2012-03-28 19:25:20Z sam2kb $
*/
if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
/**
* No Translation. Does nothing.
*
* Nevertheless, the string will be extracted by the gettext tools
*/
function NT_( $string )
{
return $string;
}
/**
* Display debugging informations?
*
* 0 = no
* 1 = yes
* 2 = yes and potentially die() to display debug info (needed before redirects, e-g message_send.php)
* 'pwd' = require password
*
* @global integer
*/
$debug = 'pwd';
/**
* When $debug is 'pwd' and you set a /password/ below,
* you can turn on debugging at any time by adding ?debug=YOUR_PASSWORD to your url.
* You can turn off by adding just ?debug
*
* @var string
*/
$debug_pwd = '';
// Most of the time you'll want to see all errors, including notices:
// b2evo should run notice free! (plugins too!)
if( version_compare( phpversion(), '5.3', '>=' ) )
{ // sam2kb> Disable E_STRICT messages on PHP > 5.3, there are numerous E_STRICT warnings displayed throughout the app
error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
}
else
{
error_reporting( E_ALL );
}
// To help debugging severe errors, you'll probably want PHP to display the errors on screen.
// In this case, uncomment the following line:
// ini_set( 'display_errors', 'on' );
// If you get blank pages, PHP may be crashing because it doesn't have enough memory.
// The default is 8 MB (in PHP < 5.2) and 128 MB (in PHP > 5.2)
// Try uncommmenting the following line:
// ini_set( 'memory_limit', '32M' );
/**
* Log application errors through {@link error_log() PHP's logging facilities}?
*
* This means that they will get logged according to PHP's error_log configuration directive.
*
* Experimental! This may be changed to use regular files instead/optionally.
*
* @todo Provide logging into normal file instead (more useful for backtraces/multiline error messages)
*
* @global integer 0: off; 1: log errors; 2: include function backtraces (Default: 1)
*/
$log_app_errors = 1;
/**
* Thumbnail size definitions.
*
* NOTE: this gets used for general resizing, too. E.g. in the coll_avatar_Widget.
*
* type, width, height, quality
*/
$thumbnail_sizes = array(
'fit-720x500' => array( 'fit', 720, 500, 90 ),
'fit-640x480' => array( 'fit', 640, 480, 90 ),
'fit-520x390' => array( 'fit', 520, 390, 90 ),
'fit-400x320' => array( 'fit', 400, 320, 85 ),
'fit-320x320' => array( 'fit', 320, 320, 85 ),
'fit-160x160' => array( 'fit', 160, 160, 80 ),
'fit-160x120' => array( 'fit', 160, 120, 80 ),
'fit-80x80' => array( 'fit', 80, 80, 80 ),
'crop-80x80' => array( 'crop', 80, 80, 85 ),
'crop-64x64' => array( 'crop', 64, 64, 85 ),
'crop-48x48' => array( 'crop', 48, 48, 85 ),
'crop-32x32' => array( 'crop', 32, 32, 85 ),
'crop-15x15' => array( 'crop', 15, 15, 85 ),
);
/**
* Demo mode
* - Do not allow update of files in the file manager
* - Do not allow changes to the 'demouser' and 'admin' account/group
* - Blog media directories can only be configured to be inside of {@link $media_path}
* @global boolean Default: false
*/
$demo_mode = false;
/**
* URL of the Home link at the top left.
*
* By default this is the base url. And unless you do a complex installation, there is no need to change this.
*/
$home_url = $baseurl;
/**
* Comments: Set this to 1 to require e-mail and name, or 0 to allow comments
* without e-mail/name.
* @global boolean $require_name_email
*/
$require_name_email = 1;
/**
* Minimum interval (in seconds) between consecutive comments from same IP.
* @global int $minimum_comment_interval
*/
$minimum_comment_interval = 30;
/**
* Check antispam blacklist for private messages.
*
* Do you want to check the antispam blocklist when a message form is submitted?
*
* @global boolean $antispam_on_message_form
*/
$antispam_on_message_form = 1;
/**
* By default images get copied into b2evo cache without resampling if they are smaller
* than requested thumbnails.
*
* Althought, if you want to use the BeforeThumbCreate event (Watermark plugin),
* this should be set to 'true' in order to process smaller images.
*
* @global boolean Default: false
*/
$resample_all_images = false;
// Get hostname out of baseurl
// YOU SHOULD NOT EDIT THIS unless you know what you're doing
if( preg_match( '#^(https?://(.+?)(:(.+?))?)(/.*)$#', $baseurl, $matches ) )
{
$baseurlroot = $matches[1]; // no ending slash!
// echo "baseurlroot=$baseurlroot <br />";
$basehost = $matches[2];
// echo "basehost=$basehost <br />";
$baseport = $matches[4];
// echo "baseport=$baseport <br />";
$basesubpath = $matches[5];
// echo "basesubpath=$basesubpath <br />";
}
else
{
die( 'Your baseurl ('.$baseurl.') set in _basic_config.php seems invalid. You probably missed the "http://" prefix or the trailing slash. Please correct that.' );
}
/**
* Base domain of b2evolution.
*
* By default we try to extract it automagically from $basehost (itself extracted from $abaseurl)
* But you may need to adjust this manually.
*
* @todo does anyone have a clean way of handling stuff like .co.uk ?
*
* @global string
*/
$basedomain = preg_replace( '/^( .* \. )? (.+? \. .+? )$/xi', '$2', $basehost );
/**
* Short name of this system (will be used for cookies and notification emails).
*
* Change this only if you install mutliple b2evolutions on the same website.
*
* WARNING: don't play with this or you'll have tons of cookies sent away and your
* readers surely will complain about it!
*
* You can change the notification email address alone a few lines below.
*
* @todo generate a random instance name at install and have it saved in the global params in the DB
*
* @global string Default: 'b2evo'
*/
$instance_name = 'b2evo'; // MUST BE A SINGLE WORD! NO SPACES!!
/**
* Default email address for sending notifications (comments, trackbacks,
* user registrations...).
*
* Set a custom address like this:
* <code>$notify_from = 'b2evolution@your_server.com';</code>
*
* Alternatively you can use this automated address generation (which removes "www." from
* the beginning of $basehost):
* <code>$notify_from = $instance_name.'@'.preg_replace( '/^www\./i', '', $basehost );</code>
*
* @global string Default: $instance_name.'@'.$basehost;
*/
$notify_from = $instance_name.'-noreply@'.preg_replace( '/^www\./i', '', $basehost );
// ** DB options **
/**
* Show MySQL errors? (default: true)
*
* This is recommended on production environments.
*/
$db_config['show_errors'] = true;
/**
* Halt on MySQL errors? (default: true)
*
* Setting this to false is not recommended,
*/
$db_config['halt_on_error'] = true;
/**
* CREATE TABLE options.
*
* DO NOT USE unless you know what you're doing -- For most options, we want to work on a table by table basis.
*/
$db_config['table_options'] = ''; // Low ranking MySQL hosting compatibility Default
/**
* Use transactions in DB?
*
* You need to use InnoDB in order to enable this.
*/
$db_config['use_transactions'] = true;
/**
* Display elements that are different on each request (Page processing time, ..)
*
* Set this to true to prevent displaying minor changing elements (like time) in order not to have artificial content changes
*
* @global boolean Default: false
*/
$obhandler_debug = false;
// ** Cookies **
/**
* This is the path that will be associated to cookies.
*
* That means cookies set by this b2evo install won't be seen outside of this path on the domain below.
*
* @global string Default: preg_replace( '#https?://[^/]+#', '', $baseurl )
*/
$cookie_path = preg_replace( '#https?://[^/]+#', '', $baseurl );
/**
* Cookie domain.
*
* That means cookies set by this b2evo install won't be seen outside of this domain.
*
* We'll take {@link $basehost} by default (the leading dot includes subdomains), but
* when there's no dot in it, at least Firefox will not set the cookie. The best
* example for having no dot in the host name is 'localhost', but it's the case for
* host names in an intranet also.
*
* Note: ".domain.com" cookies will be sent to sub.domain.com too.
* But, see http://www.faqs.org/rfcs/rfc2965:
* "If multiple cookies satisfy the criteria above, they are ordered in
* the Cookie header such that those with more specific Path attributes
* precede those with less specific. Ordering with respect to other
* attributes (e.g., Domain) is unspecified."
*
* @global string Default: ( strpos($basehost, '.') ) ? '.'. $basehost : '';
*/
if( strpos($basehost, '.') === false )
{ // localhost or windows machine name:
$cookie_domain = '';
}
elseif( preg_match( '~^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$~i', $basehost ) )
{ // Use the basehost as it is:
$cookie_domain = $basehost;
}
else
{
$cookie_domain = preg_replace( '/^(www\. )? (.+)$/xi', '.$2', $basehost );
// When hosting multiple domains (not just subdomains) on a single instance of b2evo,
// you may want to try this:
// $cookie_domain = '.'.$_SERVER['HTTP_HOST'];
// or this: -- Have a cookie domain of 2 levels only, base on current basehost.
// $cookie_domain = preg_replace( '/^( .* \. )? (.+? \. .+? )$/xi', '.$2', $basehost );
// fp> pb with domains like .co.uk !?
}
// echo $cookie_domain;
/**#@+
* Names for cookies.
*/
// The following remember the comment meta data for non registered users:
$cookie_name = 'cookie'.$instance_name.'name';
$cookie_email = 'cookie'.$instance_name.'email';
$cookie_url = 'cookie'.$instance_name.'url';
// The following handles the session:
$cookie_session = str_replace( '.', '_', 'session_'.$instance_name.'_'.$cookie_domain );
/**#@-*/
/**
* Expiration for comment meta data cookies.
*
* Note: user sessions use different settings (config in admin)
*
* Value in seconds, set this to 0 if you wish to use non permanent cookies (erased when browser is closed).
* Default: time() + 31536000 (one year from now)
*
* @global int $cookie_expires
*/
$cookie_expires = time() + 31536000;
/**
* Expired-time used to erase comment meta data cookies.
*
* Note: user sessions use different settings (config in admin)
*
* Default: time() - 86400 (24 hours ago)
*
* @global int $cookie_expired
*/
$cookie_expired = time() - 86400;
/**
* Crumb expiration time
*
* Default: 2 hours
*
* @global int $crumb_expires
*/
$crumb_expires = 7200;
/**
* Page cache expiration time
* How old can a cached object get before we consider it outdated
*
* Default: 15 minutes
*
* @global int $pagecache_max_age
*/
$pagecache_max_age = 900;
// ** Location of the b2evolution subdirectories **
/*
- You should only move these around if you really need to.
- You should keep everything as subdirectories of the base folder
($baseurl which is set in _basic_config.php, default is the /blogs/ folder)
- Remember you can set the baseurl to your website root (-> _basic_config.php).
NOTE: All paths must have a trailing slash!
Example of a possible setting:
$conf_subdir = 'settings/b2evo/'; // Subdirectory relative to base
$conf_subdir = '../../'; // Relative path to go back to base
*/
/**
* Location of the configuration files.
*
* Note: This folder NEEDS to by accessible by PHP only.
*
* @global string $conf_subdir
*/
$conf_subdir = 'conf/'; // Subdirectory relative to base
$conf_path = str_replace( '\\', '/', dirname(__FILE__) ).'/';
/**
* @global string Path of the base.
* fp> made
Check .htaccess for invalid redirect rules. Check permissions on missing files.