• Hi,I got this error: Fatal error: Call to a member function do_shortcode() on a non-object in /storage/content/70/109070/saljcoachen.se/public_html/coachen/wp-content/themes/envision-child/functions.php on line 6

    and when I check the code in my child theme functions file it is filter code for contact form 7:
    add_filter(‘wpcf7_form_elements’, ‘cf7_process_views’); function cf7_process_views($text) { global $wpcf7_shortcode_manager; return $wpcf7_shortcode_manager->do_shortcode(do_shortcode($text)); }

    The error came upp efter the last update; I could to roll back the verion of the plugin to before the update and everything works OK but I wounder if You have any solution for that problem. What should I do?

    Great plugin!

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    add_filter(‘wpcf7_form_elements’, ‘cf7_process_views’); function cf7_process_views($text) { global $wpcf7_shortcode_manager; return $wpcf7_shortcode_manager->do_shortcode(do_shortcode($text)); }

    This code doesn’t make any sense. Just remove it.

Viewing 1 replies (of 1 total)

The topic ‘Error’ is closed to new replies.