callmebruce
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Center the navigationGreat work, vast improvement on the default layout in my opinion.
Dont forget to modify/comment out the media query that reset’s the size for screen’s less than 800px
Hi, I had the same problem, http://wordpress.org/support/topic/not-working-after-contact-form-7-36-update-and-wp-recaptcha-32
Worked for me
Ok after reading the post that ikookmaar linked to and then putting in a lot of debugging steps I confirmed that the issue was/is definitely a matter of priority. (I also swapped to Better WP as a test and both have the same issue).
Quick Fix:
Following the solutions that fijnmedia identified, go to /plugins/contact-form-7/includes/settings.php line 17 and change
add_action( 'plugins_loaded', 'wpcf7');to
add_action( 'plugins_loaded', 'wpcf7', 1);More info:
After tracking through the debug calls I inserted I found that the call to function register_cf7() (or in BWP register_cf7_shortcode()) is calling wpcf7_add_shortcode(..) which in turn is testing to see if a global variable $wpcf7_shortcode_manager has been instantiated (as ‘WPCF7_ShortcodeManager’) before actually adding the shortcode. Turns out that the global had NOT been instantiated yet, so the shortcode wasn’t added, and hence reCAPTCHA doesn’t get processed. By adding the 1 to the ‘plugins_loaded’ action and raising the priority it effectively causes the global to be instantiated earlier.
Good or Bad?
I wouldn’t have a clue, I am a DotNet programmer normally, in php I am just a hack :). Perhaps the cf7 plugin author or someone more knowledgeable can chime in?
Don’t worry about it, going to use a different page template to get around it.
Sorry, an update, I tested using the bog standard 2013 theme and the paging works fine, so it appears to be an issue with the theme I am trying to use.
Any chance you can point out what the issue with theme is so that I can correct the (presumably) css in the theme to work with your plugin.
Thanks