Nick H.
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity 2 PDF] Plugin stopped working all of a suddenGot it! I restored a backup to downgrade WordPress and everything’s cool now!
So it’s a 4.9.2 issue.
Forum: Plugins
In reply to: [Gravity 2 PDF] watermark showingGot it! I restored a backup to downgrade WordPress and everything’s cool now!
So it’s a 4.9.2 issue.
Whoops! Thought I still had my thread open and replied to the wrong one. Sorry!
- This reply was modified 8 years, 4 months ago by Nick H..
VERY good point Lee & zakkates.
This code actually came from a patch that will be included in the next WordPress release. The details of the patch can be found here: https://core.trac.ww.wp.xz.cn/attachment/ticket/34723/34723.patch
If interested, you should definitely check out the thread where I found the fix here:
https://ww.wp.xz.cn/support/topic/warning-after-the-upgrade-to-wp-44/page/2?replies=50It also seems someone from WooThemes chimed in on the above thread, and they’ve updated the WooFramework to fix this as well. So, if you’re using a WooTheme, it’s just as simple as updating your framework.
I used the patch listed on this thread and it worked:
https://ww.wp.xz.cn/support/topic/warning-after-the-upgrade-to-wp-44/page/2?replies=50To fix, open your category-template.php and replace lines 1144 – 1158…
function get_the_terms( $post, $taxonomy ) { if ( ! $post = get_post( $post ) ) return false; $terms = get_object_term_cache( $post->ID, $taxonomy ); if ( false === $terms ) { $terms = wp_get_object_terms( $post->ID, $taxonomy ); $to_cache = array(); foreach ( $terms as $key => $term ) { $to_cache[ $key ] = $term->data; } wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' ); } $terms = array_map( 'get_term', $terms );…with the new code from the patch:
function get_the_terms( $post, $taxonomy ) { if ( ! $post = get_post( $post ) ) return false; $terms = get_object_term_cache( $post->ID, $taxonomy ); if ( false === $terms ) { $terms = wp_get_object_terms( $post->ID, $taxonomy ); if ( ! is_wp_error( $terms ) ) { $to_cache = array(); foreach ( $terms as $key => $term ) { $to_cache[ $key ] = $term->data; } wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' ); } } if ( ! is_wp_error( $terms ) ) { $terms = array_map( 'get_term', $terms ); }So is now line 1144 – 1162. This fix will be included in the future 4.4.1 I suppose
Me too, client isn’t very happy about it. Any suggestions?
Forum: Fixing WordPress
In reply to: I know you get this all the time…I misspoke, I think that’s where the hacker’s attack started. I found a lot of different vulnerabilities that have been reported in nextgen and thought maybe he exploited one of those.
I realized that I had all my edited theme files on my laptop, so I created a new wordpress installation and used the export function to get all of the pages and posts moved over. Not as bad as i thought it would be, new site is living at http://www.nicknetworks.com/jeremyf until I get everything looking right then i’ll switch the domain directory and be done with it. Wish I had thought of that earlier! lol
Forum: Fixing WordPress
In reply to: I know you get this all the time…Update, found some 4 year old posts about base64_decode….It’s all in my site. Looks like it started in the nextgen gallery I was dumb enough to have installed.
So, digging through php files now to give it my best shot
Forum: Fixing WordPress
In reply to: I know you get this all the time…This is what embeds itself into my pages:
[hacked code removed – please do not post that here – use a pastebin if you want someone to be able to look at it ]