• Resolved danlatorre

    (@danlatorre)


    Hello, new to this theme, and all seems okay except for something really basic. The contact form isn’t working. I configured info in the settings for the form, but nothing happens when I test it. Is there a required form plugin I need to install? Don’t see any info on your site, here, or inside the theme in WP. Thanks!

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Hi, there isn’t anything in the theme that manipulates the contact form. The theme only applies some CSS to the buttons.

    I did try the contact form on your site and it definitely isn’t working. When I hit Submit, it just returns me to the form with the same information filled in.

    I added a contact form to my test site and tried it and it worked fine.

    Your site looks really good, though! I like the blue you chose and how your profile section looks.

    Thread Starter danlatorre

    (@danlatorre)

    Okay thanks for checking. So why is the form working on your test site but not mine? Is a form plugin required like Contact Form 7 or something?

    Theme Author Tim Nicholson

    (@timnicholson)

    No form plugin is needed. The contact form is in the Jetpack plug-in.
    Can you try your site with the delivered Twenty Twenty Three theme and see if it works? If it does, then I’d contact Jetpack support.

    Thread Starter danlatorre

    (@danlatorre)

    I was looking at it again and realized it’s a Jetpack form too. So with you on that.

    When I switched to Twenty Twenty Three theme, nothing showed up on the homepage. So, here’s maybe what’s going on. See this screenshot:
    https://www.dropbox.com/s/00qq1aynobaw48a/Screenshot%202023-07-22%20at%205.35.05%20PM.png?dl=0

    I created a page for my Homepage, and selected the Flack Block “Page Home (cover image, no comments)” template, and edit it in the template editor. Versus adding that block pattern into the body of the Homepage page, and editing the Page. Is that the problem? That I should have just added the “Page Home (cover image, no comments)” pattern into the body of the Homepage page for dynamic things like a contact form to work??

    Thread Starter danlatorre

    (@danlatorre)

    Okay I found a repeatable issue. When I made a new page with the same template I customized the form works. But when I go into Settings > Reading to make that page the home page the form doesn’t work. Any idea why that is?

    Theme Author Tim Nicholson

    (@timnicholson)

    I think you are saying the form doesn’t work on your home page (default page, i.e. the site “root”), but it DOES work when the form is on other pages on your site?

    When I hit Send on your form, the URL changes to something very odd. This probably has something to do with it. So I would check your Apache rewrite rules.

    https://thewisecity.org/#contact-form-block-template-part-flat-blocks//content-home-top

    Also, the only other page I see on your site is your Privacy Policy and that URL is odd too: https://thewisecity.org/?page_id=3. This could be unrelated, but usually it would be something like this: https://thewisecity.org/privacy/

    Thread Starter danlatorre

    (@danlatorre)

    That’s right. Great catch. I’ll follow up with Pressable my host. Thanks!

    Thread Starter danlatorre

    (@danlatorre)

    Hi Time, I had Pressable look at this, and they found error logs that might mean the theme is causing some problems for me.

    For some reason, my site is now down, could be Pressable trying to create a new site, not sure. The said the theme error broke WP CLI which makes it slower for them to do tech support.

    Here’s the error, does this point to some bug in the theme you can fix?

    Fatal error: Uncaught Error: Call to undefined function flatblocks_get_block_pattern() in /srv/htdocs/wp-content/themes/flat-blocks/patterns/page-about.php:11Stack trace:#0 /wordpress/core/6.2.2/wp-includes/block-patterns.php(474): include()#1 /wordpress/core/6.2.2/wp-includes/class-wp-hook.php(308): _register_theme_block_patterns('')#2 /wordpress/core/6.2.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#3 /wordpress/core/6.2.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#4 /wordpress/core/6.2.2/wp-settings.php(623): do_action('init')#5 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('/wordpress/core...')#6 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()#7 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()#8 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))#9 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()#10 phar:///usr/local/bin/wp-cli/php/boot-phar.php(11): include('phar:///usr/loc...')#11 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')#12 {main}  thrown in /srv/htdocs/wp-content/themes/flat-blocks/patterns/page-about.php on line 11
    Theme Author Tim Nicholson

    (@timnicholson)

    Hi, thanks for sharing this. While WP-CLI must be doing some odd stuff, like specifically NOT including the theme’s function.php file which is the main one that controls the theme.

    However, I don’t want to contribute to it crashing, so I updated the code in the sample page patterns to specifically check that the function exists or it just skips pulling in that content.

    So WP-CLI shouldn’t crash, but if it’s trying to create the theme patterns, they won’t be complete. When you are running the theme on your website, both as admin and on the front-end of the site, the patters will still work fine.

    Look for an update to Flat Blocks v1.2.13.

    Thread Starter danlatorre

    (@danlatorre)

    Thanks for the updates. Btw w/ v1.2.12 and .13 I noticed Jetpack Boost mobile and desktop scores improved a lot.

    But the contact form issue remains, the form doesn’t send any info. I looked at the browser console to see what errors there were at found this over and over each time I try to use the form, not sure if that’s related at all.

    16:01:15.083 Firefox can’t establish a connection to the server at wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data.

    Thread Starter danlatorre

    (@danlatorre)

    Another thing. When I use the form, and it just reloads the page, the URL changes to this:
    https://thewisecity.org/#contact-form-block-template-part-flat-blocks//content-home-top

    Theme Author Tim Nicholson

    (@timnicholson)

    I think you probably have multiple issues going on. Have you been able to get the form Submit to work on the home page of the Twenty Twenty Three theme? If not, I’d work with your hosting provider to get that working. That theme is the default WordPress theme and if it has issues, then you know its a problem with core WordPress (or hosting configuration related to that). Try the form both on the Home page and on another page, maybe call it Contact Us.

    As far as the Flat Blocks theme goes, it looks like you have your home page setup the way you want.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Contact Form requirements’ is closed to new replies.