[Plugin: Contact Form 7] .JS files messed up
-
I just upgraded to latest version 3.2 contact form 7.
And i have check with firefox firebug for errors and i see wp-content/plugins/contact-form-7/jquery.form.js?ver=2.52 400 BAD Error
/wp-content/plugins/contact-form-7/scripts.js?ver=3.0 400 BAD ErrorThis is really poor coding or what?
-
Those errors are not caused from the plugin code. Check your theme as it is probably written incorrectly.
Well your code was put inside my theme and i want it to be removed. If you know how insert code you should know how to get it out.
that is a problem. Upgrade did not remove old code and now i m in mess. Any ideas how to manualy remove this code?
I have this plugin running on many sites without the slightest problem. Takayuki Miyoshi is correct – this is most likely a theme issue.
Ok if it is theme problem, but how to delete that contact-form-7 javascript files from my theme.
just give me hint where this info is stored.You can’t delete the js and expect the plugin to still perform correctly. Have you tried:
– deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the Twenty Eleven theme to rule out any theme-specific problems.
Ok it is theme problem and i have prove that by swithching. But how can i remove old javascripts from my theme. Please give me some hint, some links or something. I think that developer of contact form 7 knows how are this codes inserted and where. So problem is that after upgrade old code was not removed, so i need to remove it manually.
Thanks for help.
The problem you now have is that your old them might be relying heavily on those javascripts. Have you spoken to the theme’s developer(s) about this?
No, i need to remove them:
wp-content/plugins/contact-form-7/jquery.form.js?ver=2.52 400 BAD Error
/wp-content/plugins/contact-form-7/scripts.js?ver=3.0I already have javascripts for contact-form-7:
/wp-content/plugins/contact-form-7/includes/js/jquery.form.jsthey decided to use inclludes folder from now on. So i just need to remove old code.
I have try to search headers of my theme but it is not working.
My site is btw: http://www.funnyanimalsvideo.org
Do you know how your current theme is adding/enqueuing its javascript?
This is probably added in headers.php and here is my code:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Answer to your question i would like to know as well. Developer of contact form 7 knows how to add javascript to template because new javascript is added, but it looks like it dont know how to remove it.
P.S. could it be that maybe wp-minify messed my theme up? But i did try to remove minify and delete all caches but this code remains in theme.
it looks like it dont know how to remove it.
A plugin should never remove a theme’s javascript.
I think we dont understand each other.
Contact Form 7 have include:
wp-content/plugins/contact-form-7/jquery.form.js?ver=2.52
/wp-content/plugins/contact-form-7/scripts.js?ver=3.0This two files in my theme. Now when i unistall, delete contact form 7 this 2 files are remaining included.
So i m asking developer of contact form 7 where are those files included so i can go in that file and remove this 2 files.
I hope this make sense.
Thanks,How would I know?
This two files in my theme. Now when i unistall, delete contact form 7 this 2 files are remaining included.
This is because those two lines are written in your theme file and not from the plugin. The problems are in your theme and not in the plugin. Ask your theme maker or who added those links to your theme to fix it.
Ok it looks like this is Wp-Minify error.
And i just think that i found a decent speed up plugin.Problem is related to contact form 7 because my old javascripts are minified and that is why i m getting error. So should i open new topic in wp-minify or continue here?
Anyway problem is here:
rel='stylesheet' href='http://www.funnyanimalsvideo.org/wp-content/plugins/wp-minify/min/?f=wp-includes/css/admin-bar.css&m=1337851609' type='text/css' media='screen' /> <script type='text/javascript' src='http://www.funnyanimalsvideo.org/wp-content/plugins/wp-minify/min/?f=wp-includes/js/swfobject.js,wp-includes/js/jquery/jquery.js,wp-includes/js/admin-bar.js,<strong>wp-content/plugins/contact-form-7/jquery.form.js</strong>,<strong>wp-content/plugins/contact-form-7/scripts.js&m=1337851617</strong>'></script> <meta
And i have dig whole internet to find where is this data stored to go there and remove this 2 lines… but without success.
Ohhh my god. I have fixed it.
Someone put a javascript codes for contact form 7 in my footer. I m not sure if that have happen with installation or what, but i did not look into footer… huh…
Anyway thanks for help, thank god it is all solved now.
- The topic ‘[Plugin: Contact Form 7] .JS files messed up’ is closed to new replies.