faulty
Forum Replies Created
-
Forum: Plugins
In reply to: [404 Error Monitor] Issue with unsecure content for HTTPS admin areaThanks, I’ve just tested and it’s fixed.
Forum: Plugins
In reply to: [404 Error Monitor] Issue with unsecure content for HTTPS admin areaGreat, thanks !!!
Forum: Plugins
In reply to: [NewStatPress] 504 Error with nginx and php-fpmThe 504 happened consistently to me too when I update to 0.6.5 (not sure from which version, but it was a 2 months gap). I’m running nginx/php5-fpm/php5.4.16/wordpress3.5.2
I then tried downgrading version by version and found that 0.6.1 works fine. Hope that helps
Sorry, wrongly traced. Now that it also happen when I deactivated this plugin, it’s something else.
Forum: Fixing WordPress
In reply to: Sucuri SiteCheck says infected with malwareCheck the size of your jquery.js and also open the jquery link in your browser. The size should be less than 100kb and it should show jquery and it’s version in the file content.
I had this problem, where a plugin changes the jquery.js in the background with a malware version. Took me a while to track down This plugin replaces jquery.js with a malware
It’s ok, I got the reply from your forum already -> https://dbtoolkit.digilab.co.za/forum/viewtopic.php?f=3&t=512
Nice, thanks for the speedy update
But in your
api.php
, you did callwp_reset_postdata()
towards the end ofp2p_list_posts()
. What could have been the problem?I’ve found the cause of the problem at line 333 of api.php, under
function p2p_list_posts()
.$GLOBALS['post']
is replace with$post
and left as is. I believe you’ll need to keep a copy of it, then restore it upon exiting the loop. Maybe that’s why wp picked up the title/content of the related post and displayed at the current post editor.I’ve manage to fix the bug by doing this
$_post = clone $GLOBALS['post']; p2p_list_posts( p2p_type('subpost_to_post')->get_connected( $post->ID ) ); $GLOBALS['post'] = $_post;
Thanks for the reply scribu
As the plugin is big, I have made one with the necessary code to repeat the error. https://pastebin.com/YfHgNiKBSo repeat the error,
1. Create a post, and a subpost
2. create link from subpost to post
3. click on the link generated byp2p_list_posts
in “Link SubPost” from posts or “Link Post” from subpost
4. Go back to both post and subpost, now the content are swapped.
5. Comment outp2p_list_posts( p2p_type('subpost_to_post')->get_connected( $post->ID ));
, then it’s back to normalForum: Hacks
In reply to: Custom URL Parameter fail when using Static Page as Front PageI notice that if I comment out this line,
add_filter('query_vars', 'parameter_queryvars' );
It will show the front page properly. So I ended up accessing
$_GET
directly for the sorting query