WordPress.org

Forums

Contact Form 7
[resolved] Contact 7 not rendering after shortcode added (18 posts)

  1. estern23
    Member
    Posted 4 years ago #

    I created a form on with the plugin editor like i have done in the past. Then i added the shortcode to the page that i wanted the form to show up on and when i save and view the page live it shows this:

    [contact-form 404 "Not Found"]

    I have pasted the code that it told me to in the proper place on the page edit. I tried both visual and html modes and nothing seems to work.

    Please help.

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

    The [contact-form 404 "Not Found"] output means that contact form with the ID number you put in the shortcode is missing. Sometimes these problems caused by conflicts with other plugins or theme. Try deactivating all ather plugins AND switching to the default (twentyten?) theme.

  3. estern23
    Member
    Posted 4 years ago #

    I turned all plugins off except contact 7 and changed theme to be twentyten like you suggested. Then checked the form.

    Still broken.

    I tried to create a new form and test that one. Just with the default setting that you populate on Add new and it does the same thing.

    Any other suggestions?

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

    Where can we see the contact page?

  5. estern23
    Member
    Posted 4 years ago #

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

    What [contact-form ...] code have you actually inserted into the post content?

  7. webjunk
    Member
    Posted 4 years ago #

    It looks like that your shortcode is wrong:
    Need to be EXACTLY what is shown at the top of the COntact Form Editor. like:

    [contact-form 2 "Form Example"]

  8. estern23
    Member
    Posted 4 years ago #

    Yah i copied what it had in the brown box exactly. I have this working fine on many other sites.

    Then added it to my content box on the edit page. Then saved the page.

    Then viewed it live and that is what you see.

    I had to 777 the whole plugins file to view it on my plugins main screen in wp-admin. Would this have anything to do with the issue?

  9. webjunk
    Member
    Posted 4 years ago #

    DId you see the question from Takayuki Miyoshi???

    You should not need 777. Maybe you have other issues.

  10. estern23
    Member
    Posted 4 years ago #

    Like i said i did it exactly like it had on the plugin page:
    [contact-form 1 "press"]

  11. webjunk
    Member
    Posted 4 years ago #

    Now I see that shortcode and not the 404 as if you are missing: wp_head() from the header of your theme.

  12. estern23
    Member
    Posted 4 years ago #

    Yah that was because i was trying to figure it out so i deleted the plugin folder so it wasn't rendering.

    Yes i do have wp_head(), wp_footer() etc. in my theme.

    I looked over the apache error_log and found this:
    PHP Warning: preg_replace() [function.preg-replace]: Compilation failed:
    this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in

    /wp-includes/shortcodes.php on line 228,

    What version of php should this plug-in be using. I am currently on 5.1.6

  13. webjunk
    Member
    Posted 4 years ago #

    This Error indicates the PCRE_UTF8 package is not installed on your server. You would need to contact your host. Its an add-on package (not part of WP) for PCRE. If you have shell access to your server you can run the command:
    pcretest -C
    It will return a Compiled to list which if it does not include UTF-8 support its not installed. You could ask your Host why its not installed as its pretty standard.
    Your version of PHP is old but not the cause of that error. Sounds like maybe your host is out of date in general.

  14. estern23
    Member
    Posted 4 years ago #

    Yah i was looking around and found the pcretest -C and when i run it, it says that UTF-8 was there and active which is strange.

  15. webjunk
    Member
    Posted 4 years ago #

    Would still open a ticket with your host.

  16. estern23
    Member
    Posted 4 years ago #

    So we updated php and that seemed to fix the issue.

    Seems to be rendering now. Going to look into it further to see if it is fully functioning.

    Thanks for the help

  17. webjunk
    Member
    Posted 4 years ago #

    Probably newer package with the older incompatible version of PHP. Rare but does happen. Just glad its fixed for you.

  18. estern23
    Member
    Posted 4 years ago #

    Yah i am so glad that it worked out. Working great now. Didn't want to miss out on using this GREAT plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic