• Resolved wpusr1

    (@wpusr1)


    Hello..
    First thank you very much for the plugin.
    I had installed it on my site which I was developing along with Contact Form 7.
    But I suddenly get this error on some pages:

    
    Need to Make an Enquiry?
    There has been a critical error on your website. Please check your site admin email inbox for instructions.
    
    Learn more about debugging in WordPress.
    

    I checked error log and saw this with today’s date:

    
    [14-Aug-2020 06:32:45 UTC] PHP Fatal error:  Uncaught Error: Call to a member function prop() on null in /home/.../wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:332
    Stack trace:
    #0 /home/.../wp-includes/class-wp-hook.php(289): Cf7_Grid_Layout_Public->cf7_shortcode_request('[contact-form-7...', 'contact-form-7', Array)
    #1 /home/.../wp-includes/plugin.php(206): WP_Hook->apply_filters('[contact-form-7...', Array)
    #2 /home/.../wp-includes/shortcodes.php(355): apply_filters('do_shortcode_ta...', '[contact-form-7...', 'contact-form-7', Array, Array)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/.../wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(contac...', 'do_shortcode_ta...', '[contact-form-7...')
    #5 /home/.../wp-content/themes/../contact-forms/cs_layout2.php(47): do_shortcode('[contact-form-7...')
    #6 /home/.../wp-content/p in /home/.../wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 332
    

    I am not sure if the error is related to CF7 plugin.. (apologies if it isn’t) but it goes away once I deactivate the plugin.
    Strangely this error only happens on some pages. I am just starting on with my site. Only the homepage is done which shows no errors. But when I click on some other pages to edit (with elementor) this error comes up.
    I’m not a WordPress expert.. Kindly help if you can.
    Thanks a lot.
    I disable

    • This topic was modified 4 years, 6 months ago by wpusr1.
Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    can you tell me which version of PHP, WordPress, and the plugin you have installed

    Thread Starter wpusr1

    (@wpusr1)

    I’m sorry for not including those details.
    PHP version: 7.0.33
    Wordpress 5.4.2
    Elementor 2.9.14
    Contact form 7 5.2.1
    CF7 Smart Grid Extension 3.3.5
    Couple other plugins are there like WP table builder etc..
    Not sure if you want those.. Please let me know.
    Thanks!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    so this error is not directly related to the plugin, and is likely due to some setup error.

    The CF7 form is likely being corrupted as a result of memory issue possibly.

    You could try to increase the memory limit on your installation and see if it fixes the issue.

    Thread Starter wpusr1

    (@wpusr1)

    Thank you.. Will check and get back. Thanks again.

    Thread Starter wpusr1

    (@wpusr1)

    I increased the WP_MEMORY_LIMIT to 256M.
    I’m afraid no change in the result, the message still appears.
    Thanks.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I have made some changes to the way the CF7 form object is retrieved in the newly released v3.3.6. Can you update and let me know if it fixes your issue?

    Thread Starter wpusr1

    (@wpusr1)

    Sure.. will do, thanks.

    Thread Starter wpusr1

    (@wpusr1)

    But I already have installed 3.3.6.
    Just install again over ?
    Please let me know.. thanks.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    But I already have installed 3.3.6.

    are you still getting the error?

    Thread Starter wpusr1

    (@wpusr1)

    Yes..

    
    Need to Make an Enquiry?
    
    Fatal error: Uncaught Error: Call to a member function prop() on bool in /home/.../wp-content/plugins/cf7-grid-layout-bk/public/class-cf7-grid-layout-public.php:351 Stack trace: #0 /home/.../wp-includes/class-wp-hook.php(289): Cf7_Grid_Layout_Public->cf7_shortcode_request('[contact-form-7...', 'contact-form-7', Array) #1 /home/.../wp-includes/plugin.php(206): WP_Hook->apply_filters('[contact-form-7...', Array) #2 /home/.../wp-includes/shortcodes.php(355): apply_filters('do_shortcode_ta...', '[contact-form-7...', 'contact-form-7', Array, Array) #3 [internal function]: do_shortcode_tag(Array) #4 /home/.../wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(contac...', 'do_shortcode_ta...', '[contact-form-7...') #5 /home/.../wp-content/themes/moovit/aheto/contact-forms/cs_layout2.php(47): do_shortcode('[contact-form-7...') #6 /home/.../wp-conten in /home/.../wp-content/plugins/cf7-grid-layout-bk/public/class-cf7-grid-layout-public.php on line 351
    There has been a critical error on your website. Please check your site admin email inbox for instructions.
    
    Learn more about debugging in WordPress.
    

    Thanks..

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Strangely this error only happens on some pages.

    so one way this can happen is if you use outdated cf7 form shortcodes on your pages.

    An oudated shortcode can happen when you change the cky form unique key but you are still using the previous key.

    The pages where you are getting the error I suggest that you copy the shortcode as it appears in the cf7 admin table and paste it again in the page.

    Thread Starter wpusr1

    (@wpusr1)

    I’m sorry for not making myself clear.. those pages doesn’t have the plugin used.
    But the error message contains the plugin name.
    So it may not be a plugin related issue?
    I will copy the updated shortcode and let you know.
    Thank you..

    • This reply was modified 4 years, 6 months ago by wpusr1.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    those pages doesn’t have the plugin used.

    well the plugin page would only be called if a cf7 shortcode is being displayed on the page (either in the main content, as a widget in the sidebar or footer).

    if You look at your error,

    Fatal error: Uncaught Error: Call to a member function prop() on bool in /home/…/wp-content/plugins/cf7-grid-layout-bk/public/class-cf7-grid-layout-public.php:351
    Stack trace:
    #0 /home/…/wp-includes/class-wp-hook.php(289): Cf7_Grid_Layout_Public->cf7_shortcode_request(‘[contact-form-7…’, ‘contact-form-7’, Array)
    #1 /home/…/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘[contact-form-7…’, Array)
    #2 /home/…/wp-includes/shortcodes.php(355): apply_filters(‘do_shortcode_ta…’, ‘[contact-form-7…’, ‘contact-form-7’, Array, Array)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/…/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(contac…’, ‘do_shortcode_ta…’, ‘[contact-form-7…’)
    #5 /home/…/wp-content/themes/moovit/aheto/contact-forms/cs_layout2.php(47): do_shortcode(‘[contact-form-7…’) #6 /home/…/wp-conten in /home/…/wp-content/plugins/cf7-grid-layout-bk/public/class-cf7-grid-layout-public.php on line 351
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    the entire stack trace is referring to the ‘contact-form-7’ shortcode, right from the WP core files themselves….so yes, defeinitely a cf7 form shortcode is being called and I reckon it is outdated. Hence the error.

    Thread Starter wpusr1

    (@wpusr1)

    Thank you for your time and patience.
    I will remove the contact-form-7 plugin and reinstall along with CF7 Smart Grid Extension and check. Will keep you posted.
    Thanks again..

    Plugin Author Aurovrata Venet

    (@aurovrata)

    sure. I will try in the next major release (v4.0 currenlty under development) to provide a more robust way to handle outdated shortcodes with a clean warning mechanism.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Error on certain pages’ is closed to new replies.