When I try to log in to the websites or even the admin panel[dashboard] on ANY of the websites i Keep getting this error, Same error message on all admin panels with change of website name
Website Working but admin Panel not working [the only website working]
Example (Website 1 : master-tank.net)
Fatal error: Cannot redeclare sdec() (previously declared in /home4/marwan93/public_html/master-tank.net/wp-includes/vars.php:110) in /home4/marwan93/public_html/master-tank.net/wp-includes/vars.php on line 177
Neither website nor admin panel working
Example (Website 2 : solid-db.com)
Fatal error: Cannot redeclare sdec() (previously declared in /home4/marwan93/public_html/solid-db.com/wp-includes/vars.php:110) in /home4/marwan93/public_html/solid-db.com/wp-includes/vars.php on line 177
]]>Fatal error: Call to undefined function: is_admin() in /hosting/www/dcblog.cz/www/wp-includes/vars.php on line 16
Thank you very much for further help
]]>I attached the var.php file too
Thanks
Shawn
<?php
/**
* Creates common globals for the rest of WordPress
*
* Sets $pagenow global which is the current page. Checks
* for the browser to set which one is currently being used.
*
* Detects which user environment WordPress is being used on.
* Only attempts to check for Apache and IIS. Two web servers
* with known permalink capability.
*
* @package WordPress
*/
// On which page are we ?
if ( is_admin() ) {
// wp-admin pages are checked more carefully
preg_match(‘#/wp-admin/?(.*?)$#i’, $PHP_SELF, $self_matches);
$pagenow = $self_matches[1];
$pagenow = trim($pagenow, ‘/’);
$pagenow = preg_replace(‘#\?.*?$#’, ”, $pagenow);
if ( ” === $pagenow || ‘index’ === $pagenow || ‘index.php’ === $pagenow ) {
$pagenow = ‘index.php’;
} else {
preg_match(‘#(.*?)(/|$)#’, $pagenow, $self_matches);
$pagenow = strtolower($self_matches[1]);
if ( ‘.php’ !== substr($pagenow, -4, 4) )
$pagenow .= ‘.php’; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried)
}
} else {
if ( preg_match(‘#([^/]+\.php)([?/].*?)?$#i’, $PHP_SELF, $self_matches) )
$pagenow = strtolower($self_matches[1]);
else
$pagenow = ‘index.php’;
}
// Simple browser detection
$is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = $is_safari = $is_chrome = $is_iphone = false;
if ( isset($_SERVER[‘HTTP_USER_AGENT’]) ) {
if ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Lynx’) !== false ) {
$is_lynx = true;
} elseif ( strpos(strtolower($_SERVER[‘HTTP_USER_AGENT’]), ‘chrome’) !== false ) {
$is_chrome = true;
} elseif ( strpos(strtolower($_SERVER[‘HTTP_USER_AGENT’]), ‘safari’) !== false ) {
$is_safari = true;
} elseif ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Gecko’) !== false ) {
$is_gecko = true;
} elseif ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE’) !== false && strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Win’) !== false ) {
$is_winIE = true;
} elseif ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE’) !== false && strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Mac’) !== false ) {
$is_macIE = true;
} elseif ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Opera’) !== false ) {
$is_opera = true;
} elseif ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Nav’) !== false && strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Mozilla/4.’) !== false ) {
$is_NS4 = true;
}
}
if ( $is_safari && strpos(strtolower($_SERVER[‘HTTP_USER_AGENT’]), ‘mobile’) !== false )
$is_iphone = true;
$is_IE = ( $is_macIE || $is_winIE );
// Server detection
/**
* Whether the server software is Apache or something else
* @global bool $is_apache
*/
$is_apache = (strpos($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) !== false || strpos($_SERVER[‘SERVER_SOFTWARE’], ‘LiteSpeed’) !== false);
/**
* Whether the server software is IIS or something else
* @global bool $is_IIS
*/
$is_IIS = (strpos($_SERVER[‘SERVER_SOFTWARE’], ‘Microsoft-IIS’) !== false || strpos($_SERVER[‘SERVER_SOFTWARE’], ‘ExpressionDevServer’) !== false);
/**
* Whether the server software is IIS 7.X
* @global bool $is_iis7
*/
$is_iis7 = (strpos($_SERVER[‘SERVER_SOFTWARE’], ‘Microsoft-IIS/7.’) !== false);
?>
]]>I’m using a WordPress 2.7.1 version and I’ve been holding back from upgrading because of some pending issues with Unicode (for those of you familiar with WordPress’s Unicode issue: this blog was started back in the days of WP Ver 1.6 or so, the MySQL charset and pagination issues are quite complex) and I came across the below problem yesterday:
Whenever I open up an existing post and hit the “update post” button, a window pops up with the below details:
Title: Authentication Required
Text: The server (our server domain, e.g. DOMAIN.COM) at Magic requires a username and password.
Entires: User Name: ____________________ Password: ____________
Buttons: Log In, Cancel
Screenshot: https://www.flickr.com/photos/yonghokim/3772683834/
I attempted entering dummy ID and password and the pop up will go away for 0.5 sec and then come back again. I suspect this is some form of trojan so I didn’t enter our real password.
When I press cancel, I am sent to /blog/wp-admin/post.php with a blank screen with a “Access Denied” message (Screenshot: https://www.flickr.com/photos/yonghokim/3772683860/ )
This popup is triggered when I hit the “update post” or “update page” button. The fact of whether contents of the textarea actually changed or not doesn’t matter – clicking the “update page” triggers the popup. It doesn’t happen when I post a new post. I haven’t seen the popup in other areas of the backend or frontend.
My symptom is similar to https://www.ads-software.com/support/topic/247792 except I can seemingly do all tasks – logging in, posting, etc – except editing.
More information about this WordPress install:
I use the below plugins:
Akismet 2.2.6
Attachment Manager 2.0.2
Audio player 1.2.3
Breadcrumb 0.5.1
Breadcrumb Navigation XT 1.7
CountPosts 2
Disable Revisions and Autosave
Flickr Photo Album 1.1
One Click Plugin Updater 2.4.13
Search Pages 2.3
TanTanNoodles Simple Spam Filter 0.6.2
WordPress.com Stats 1.5
Wordpress Automatic Upgrade 1.2.5
WordPress Database Backup 2.2.2
I did a major cleanup of plugins that kept obstructing the admin area with their upgrade notices, even when they were inactive plugins. I deleted a bunch of folders that belonged with the plugins; one of them was the XDRS(sp?) OpenID service framework.
I run this WordPress install on a VPS, and there are a couple other domains running WordPress and MediaWiki hosted along. One of the other WordPress installations was hacked on October of 2008, (the hacker deleted a month worth of postings and left a notice saying “This website was hacked by Daazle(sp?)” but I changed the admin password and haven’t noticed any strange behavior since then.
I am hiding the URLs out of concern that this symptom may be the result of a scripted attack, and by giving out the affected website I may be notifying that the attack was successful, inviting for further exploits on the server.
Any thoughts on why this could be or how to fix? I’m considering upgrading to WP 2.8.2 to see if this will overwrite my install of any compromised PHP files.
]]>Tried to update settings>Permalinks but WP says “If your .htaccess file were writable, we could do this automatically….”
Tried modifying the vars.php per https://codex.www.ads-software.com/Using_Permalinks#Fixing_Permalink_Problems
but no joy.
Checked the DB tables and the Category and Tag info is there.
Anyone?
]]>Here’s the thing though…. WordPress isn’t writing to it upon clicking “Update Permalink Structure”
So if I edit it myself, and add the requisite:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Still no worky.
Furthermore, I edited my Apache2’s conf.d file to AllowOverride All in both spots, and the restarted the Apache2 server.
WHAT AM I MISSING?!?!?!?!?!?!?!? I’m going crazy reading the support, there seems to be nothing else.
I even forced Apache = 1 int the Vars.php page. Apache2 seems to have the mod_rewrite module, or at least /usr/lib/apache2/modules/mod_rewrite.so exists….. I even copied it to the mods-enabled directory even though I know that is useless
HELP! PLEASE!
]]>I want to use the msn smiley instead of the standard WordPress smileys, so I made this list, but when I replace the excisting list in vars.php I get a blank page when I want to acces my wordpress website, what did I do wrong?
‘:-)’ => ‘regular_smile.gif’,
‘:)’ => ‘regular_smile.gif’,
‘:-)’ => ‘regular_smile.gif’,
‘:o’ => ‘omg_smile.gif’,
‘:O’ => ‘omg_smile.gif’,
‘;)’ => ‘wink_smile.gif’,
‘;-)’ => ‘wink_smile.gif’,
‘:-S’ => ‘confused_smile.gif’,
‘:-s’ => ‘confused_smile.gif’
‘:S’ => ‘confused_smile.gif’,
‘:s’ => ‘confused_smile.gif’,
‘:'(‘ => ‘cry_smile.gif’,
‘(H)’ => ‘shades_smile.gif’,
‘(h)’ => ‘shades_smile.gif’,
‘(A)’ => ‘angel_smile.gif’,
‘(a)’ => ‘angel_smile.gif’,
‘:-#’ => ’47_47.gif’,
‘8-|’ => ’49_49.gif’,
‘:^)’ => ’51_51.gif’,
‘<:o)’ => ’74_74.gif’,
‘|-)’ => ’77_77.gif’,
‘(Y)’ => ‘thumbs_up.gif’,
‘(y)’ => ‘thumbs_up.gif’,
‘(B)’ => ‘beer_mug.gif’,
‘(b)’ => ‘beer_mug.gif’,
‘(X)’ => ‘guy.gif’,
‘(x)’ => ‘guy.gif’,
‘({)’ => ‘guy_hug.gif’,
‘:-[‘ => ‘bat.gif’,
‘:[‘ => ‘bat.gif’,
‘(L)’ => ‘heart.gif’,
‘(l)’ => ‘heart.gif’,
‘(K)’ => ‘kiss.gif’,
‘(k)’ => ‘kiss.gif’,
‘(F)’ => ‘rose.gif’,
‘(f)’ => ‘rose.gif’,
‘(P)’ => ‘camera.gif’,
‘(p)’ => ‘camera.gif’,
‘(@)’ => ‘cat.gif’,
‘(T)’ => ‘phone.gif’,
‘(t)’ => ‘phone.gif’,
‘(8)’ => ‘note.gif’,
‘(*)’ => ‘star.gif’,
‘(O)’ => ‘clock.gif’,
‘(o)’ => ‘clock.gif’,
‘(sn)’ => ’53_53.gif’,
‘(pl)’ => ’55_55.gif’,
‘(pi)’ => ’57_57.gif’,
‘(au)’ => ’59_59.gif.gif’,
‘(um)’ => ’61_61.gif.gif’,
‘:-D’ => ‘teeth_smile.gif’,
‘:-d’ => ‘teeth_smile.gif’,
‘:D’ => ‘teeth_smile.gif’,
‘:d’ => ‘teeth_smile.gif’,
‘:-P’ => ‘tongue_smile.gif’,
‘:-p’ => ‘tongue_smile.gif’,
‘:P’ => ‘tongue_smile.giff’,
‘:p’ => ‘tongue_smile.gif’,
‘:-(‘ => ‘sad_smile.gif’,
‘:(‘ => ‘sad_smile.gif’,
‘:-|’ => ‘what_smile.gif’,
‘:|’ => ‘what_smile.gif’,
‘:-$’ => ‘red_smile.gif’,
‘:$’ => ‘red_smile.gif’,
‘:-@’ => ‘devil_smile.gif’,
‘:@’ => ‘angry_smile.gif’,
‘(6)’ => ‘devil_smile.gif’,
‘8o|’ => ’48_48.gif’,
‘^o)’ => ’50_50.gif’,
‘+o(‘ => ’52_52.gif’,
‘*-)’ => ’72_72.gif’,
‘8-)’ => ’75_75.gif’,
‘8)’ => ’75_75.gif’,
‘(C)’ => ‘coffee.gif’,
‘(c)’ => ‘coffee.gif’,
‘(N)’ => ‘thumbs_down.gif’,
‘(n)’ => ‘thumbs_down.gif’,
‘(D)’ => ‘martini.gif’,
‘(d)’ => ‘martini.gif’,
‘(Z)’ => ‘guy.gif’,
‘(z)’ => ‘guy.gif’,
‘(})’ => ‘girl_hug.gif’,
‘(^)’ => ‘cake.gif’,
‘(U)’ => ‘broken_heart.gif’,
‘(u)’ => ‘broken_heart.gif’,
‘(G)’ => ‘present.gif’,
‘(g)’ => ‘present.gif’,
‘(W)’ => ‘wilted_rose.gif’,
‘(w)’ => ‘wilted_rose.gif’,
‘(~)’ => ‘film.gif’,
‘(&)’ => ‘dog.gif’,
‘(I)’ => ‘lightbulb.gif’,
‘(i)’ => ‘lightbulb.gif’,
‘(S)’ => ‘moon.gif’,
‘(s)’ => ‘moon.gif’,
‘(E)’ => ‘envelope.gif’,
‘(e)’ => ‘envelope.gif’,
‘(M)’ => ‘messenger.gif’,
‘(n)’ => ‘messenger.gif’,
‘(bah)’ => ’70_70.gif’,
‘(||)’ => ’56_56.gif’,
‘(so)’ => ’58_58.gif’,
‘(ap)’ => ’60_60.gif’,
‘(ip)’ => ’62_62.gif’,
‘(mp)’ => ‘broken_heart.gif’,
‘(li)’ => ’64_64.gif’,
‘(st)’ => ’66_66.gif’,
Parse error: syntax error, unexpected '(', expecting ')' in /home/pimentel/public_html/blog/wp-includes/vars.php on line 55
This is my vars.php file:
<?php
// On which page are we ?
$PHP_SELF = $_SERVER['PHP_SELF'];
if (preg_match('#([^/]+.php)#',
$PHP_SELF, $self_matches)) {
$pagenow = $self_matches[1];
} else if (strstr($PHP_SELF, '?')) {
$pagenow = explode('/', $PHP_SELF);
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
$pagenow = explode('?', $pagenow);
$pagenow = $pagenow[0];
} else {
$pagenow = 'index.php';
}
//
Simple browser detection
$is_lynx = 0; $is_gecko = 0; $is_winIE = 0; $is_macIE = 0; $is_opera = 0;
$is_NS4 = 0;
if (!isset($HTTP_USER_AGENT)) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
}
if
(preg_match('/Lynx/', $HTTP_USER_AGENT)) {
$is_lynx = 1;
} elseif (preg_match('/Gecko/',
$HTTP_USER_AGENT)) {
$is_gecko = 1;
} elseif ((preg_match('/MSIE/', $HTTP_USER_AGENT)) &&
(preg_match('/Win/', $HTTP_USER_AGENT))) {
$is_winIE = 1;
} elseif ((preg_match('/MSIE/',
$HTTP_USER_AGENT)) && (preg_match('/Mac/', $HTTP_USER_AGENT))) {
$is_macIE = 1;
} elseif
(preg_match('/Opera/', $HTTP_USER_AGENT)) {
$is_opera = 1;
} elseif ((preg_match('/Nav/',
$HTTP_USER_AGENT) ) || (preg_match('/Mozilla\/4\./', $HTTP_USER_AGENT))) {
$is_NS4 = 1;
}
$is_IE
= (($is_macIE) || ($is_winIE));
// Server detection
$is_apache = strstr($_SERVER
['SERVER_SOFTWARE'], 'Apache') ? 1 : 0;
$is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-
IIS') ? 1 : 0;
// if the config file does not provide the smilies array, let's define it here
if (!
isset($wpsmiliestrans)) {
$wpsmiliestrans = array(
' :angel:'=> 'frosty_angel.gif',
' :oops:'=> 'frosty_blush.gif',
' :blush:'=> 'frosty_blush.gif',
' :brb:'=> 'frosty_brb.gif',
' :cheerful:'=> 'frosty_cheerful.gif',
' ^__^'=> 'frosty_cheerful.gif',
' :confused:'=> 'frosty_confused.gif',
' 8)'=> 'frosty_cool.gif',
' 8-)'=> 'frosty_cool.gif',
' :cool:'=> 'frosty_cool.gif',
' :crush:'=> 'frosty_crush.gif',
' :cry:'=> 'frosty_cry.gif',
' ;__;=> 'frosty_cry.gif',
' :'('=> 'frosty_cry.gif',
' :dead:'=> 'frosty_dead.gif',
' :depressed:'=> 'frosty_depressed.gif',
' :devil:'=> 'frosty_devil.gif',
' :evil:'=> 'frosty_devil.gif',
' :eek:'=> 'frosty_eek.gif',
' :fairy:'=> 'frosty_fairy.gif',
' :frown:'=> 'frosty_frown.gif',
' :('=> 'frosty_frown.gif',
' :-('=> 'frosty_frown.gif',
' :sad:'=> 'frosty_frown.gif',
' :grr:'=> 'frosty_grr.gif',
' :heart:'=> 'frosty_heart.gif',
' :heh:'=> 'frosty_heh.gif',
' :hero:'=> 'frosty_hero.gif',
' :|'=> 'frosty_huh.gif',
' :-|'=> 'frosty_huh.gif',
' :innocent:'=> 'frosty_innocent.gif',
' :kawaii:'=> 'frosty_kawaii.gif',
' :kiss:'=> 'frosty_kiss.gif',
' :*'=> 'frosty_huh.gif',
' :D'=> 'frosty_largegrin.gif',
' :-D'=> 'frosty_largegrin.gif',
' :grin:'=> 'frosty_largegrin.gif',
' :lol:'=> 'frosty_lol.gif',
' :mad:'=> 'frosty_mad.gif',
' :moo:'=> 'frosty_moo.gif',
' :moustache:'=> 'frosty_moustache.gif',
' :nerd:'=> 'frosty_nerd.gif',
' :omg:'=> 'frosty_omg.gif',
' :peek:'=> 'frosty_peek.gif',
' :pirate:'=> 'frosty_pirate.gif',
' :queen:'=> 'frosty_queen.gif',
' 8O'=> 'frosty_shocked.gif',
' 8-O'=> 'frosty_shocked.gif',
' :shock:'=> 'frosty_shocked.gif',
' :sick:'=> 'frosty_sick.gif',
' :smallgrin:'=> 'frosty_smallgrin.gif',
' :)'=> 'frosty_smile.gif',
' :-)'=> 'frosty_smile.gif',
' :smile:'=> 'frosty_smile.gif',
' :smirk:'=> 'frosty_smirk.gif',
' :sneer:'=> 'frosty_sneer.gif',
' :stare:'=> 'frosty_stare.gif',
' :sweat:'=> 'frosty_stressed.gif',
' :stress:'=> 'frosty_stressed.gif',
' :thumbsup:'=> 'frosty_thumbsup.gif',
' :P'=> 'frosty_tongue.gif',
' :-P'=> 'frosty_tongue.gif',
' :razz:'=> 'frosty_tongue.gif',
' :uh:'=> 'frosty_uh.gif',
' (:'=> 'frosty_upsidedown.gif',
' (-:'=> 'frosty_upsidedown.gif',
' :S'=> 'frosty_warped.gif',
' :-S'=> 'frosty_warped.gif',
' :weird:'=> 'frosty_weird.gif',
' :wink:'=> 'frosty_wink.gif',
' ;)'=> 'frosty_wink.gif',
' ;-)'=> 'frosty_wink.gif',
' :wtf:'=> 'frosty_wtf.gif',
' :yawn:'=> 'frosty_yawn.gif',
' :yum:'=> 'frosty_yum.gif',
' :zip:'=> 'frosty_zip.gif',
' :-X'=> 'frosty_zip.gif',
' :X'=> 'frosty_zip.gif',
);
}
// sorts the smilies' array
if (!function_exists('smiliescmp')) {
function smiliescmp ($a, $b) {
if (strlen($a) == strlen($b)) {
return strcmp($a, $b);
}
return (strlen($a)
> strlen($b)) ? -1 : 1;
}
}
uksort($wpsmiliestrans, 'smiliescmp');
// generates smilies' search &
replace arrays
foreach($wpsmiliestrans as $smiley => $img) {
$wp_smiliessearch[] = $smiley;
$smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);
$wp_smiliesreplace[] = " <img
src='" . get_settings('siteurl') . "/wp-images/smilies/$img' alt='$smiley_masked' class='wp-smiley'
/> ";
}
// Path for cookies
define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings
('home') . '/' ) );
define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings
('siteurl') . '/' ) );
?>
How do I fix this??
]]>Any one have any ideas on how I can fix this? I can post if I click on Edit any post (to get to the admin) , and then start a new post.
Thanks!
Warning: Cannot modify header information – headers already sent by (output started at /home/directory/blog/wp-includes/vars.php:224) in /home/directory/blog/wp-login.php on line 257
Warning: Cannot modify header information – headers already sent by (output started at /home/directory/blog/wp-includes/vars.php:224) in /home/directory/blog/wp-login.php on line 258
Warning: Cannot modify header information – headers already sent by (output started at /home/directory/blog/wp-includes/vars.php:224) in /home/directory/blog/wp-login.php on line 259
Warning: Cannot modify header information – headers already sent by (output started at /home/directory/blog/wp-includes/vars.php:224) in /home/directory/blog/wp-login.php on line 260
Warning: Cannot modify header information – headers already sent by (output started at /home/directory/blog/wp-includes/vars.php:224) in /home/directory/blog/wp-login.php on line 261
]]>