WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Strange characters (12 posts)

  1. fabianocoelho
    Member
    Posted 1 year ago #

    Screenshot of error

    Everytime I activate contact form 7 these characters appear in the top of admin pages and in my site.

    Does anyone have any idea why?

    I'm running WP 3.4.2 / apache / php 5 in Mac OSX 10.8.2

    http://wordpress.org/extend/plugins/contact-form-7/

  2. noahjonah
    Member
    Posted 1 year ago #

    Try adding this to your functions.php
    remove_action('wp_head', 'wp_generator');

  3. fabianocoelho
    Member
    Posted 1 year ago #

    Thanks for the reply.
    It didn't work :(

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Try deactivating all other plugins and switching to the default theme.

  5. fabianocoelho
    Member
    Posted 1 year ago #

    Did that too
    Actually I tried it in a fresh install of WP with twentyeleven.
    Is it possible that the problem is related with language? All my WP are in brazilian portuguese

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    By switching language to en-US, is the problem fixed?

  7. fabianocoelho
    Member
    Posted 1 year ago #

  8. fabianocoelho
    Member
    Posted 1 year ago #

    A shot from the source code view

    It prints the characters right before anything else. I changed the DOCTYPE, but no luck!

  9. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Check the PHP error log.

  10. fabianocoelho
    Member
    Posted 1 year ago #

    Nothing in the error log.

    But I found the problem.

    I downloaded a new copy of wordpress and created a new site again, when I activated contact form 7 with this new site I got an error saying "Cannot modify header in contact-form-7/modules/._acceptance.php", so I realized that this file does not exist and it's created by Mac OS X, so in Terminal I deleted all files started with ._ and the 2 sites are now working.

    Is contact-form-7 reading or including the ._ (mac os x hidden files), perhaps reading all files in a folder?

    Anyway, thanks for the help :)

  11. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Contact Form 7 doesn't contain any files starting with ._. Where did you download it from?

  12. fabianocoelho
    Member
    Posted 1 year ago #

    I know that, I downloaded it from wordpress.org, files starting with "." are created from Mac OS to store some information from files like icons for instance, the ._ (which are hidden) were created from the zip file downloaded today, it's OK to create those files, the odd procedure is Contact Form 7 or WordPress try to read these files.
    It doesn't happen with any other plugin I downloaded, for example, I use a plugin called WP-paginate in this site and it worked without trouble.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic