danielsian
Forum Replies Created
-
Hey @wpmudevsupport12 you nailed it! It seems to be working now.
There was neither
wp_head()andwp_footer(). I guess for the plugin load all javascripts necessary to work, it needed thewp_footer().
As soon as I put those lines, my site was broken, with lots of conflicts and error messages in the console.
So I ended up adjusting all my jQuery script to be in “no conflict” mode by replacing all the default$withjQuery.noConflict().
The only point that I was not able to address was avoiding the default WP jQuery to be loaded.
In order to do that I triedwp_deregister_script('jquery')but without any success.
Thewp_head()is loading the v3.6.0 while I’m loading the v2.4.4 in the footer, needed for the theme. I hope this is not a potential issue.
Is this something to be worried about?
Thanks a lot@sterndata no problems, thanks for the tip.
@aakash8 I’ll try to make a simplified version of my theme and share a link to it.
In the meantime, I can tell in advance that I already went through the error_log and it is empty.I’ll have a look at the options you gave about the spam.
I’m afraid that it will not work because of the conflict.
But I’ll try it anyway.Thanks a lot
Hi Aakash, thanks for your quick response.
This is the pastebin link: https://pastebin.com/YpK4GAha
When I said spam, I was referring to messages from people trying to sell services related to the form, like revealing data from users that are submitting through my website, etc.
It happened like 2 hours after I put the form online. That is completely suspicious because my website is just a portfolio with a very low traffic.Regarding the tests you asked me, yes it seems like there is some conflict with my theme.
I have just switched to Twenty-Twenty-Two without deactivating any plugins, and the form worked as expected.I’m not a developer, but I was able to develop this theme by myself. I’ve got a help from someone who organized everything and encoded within WordPress structure.
The theme is very simple, a one-page theme. That’s it.
I’ve made tests by removing everything I could from the index.php, leaving only the form and it is still not working properly. I really have no idea how to move forward from here.
Would you be able to tell me anything to point me to the right direction?
It seems like it is a JavaScript conflict, but as I said, I removed pretty much all JS during my tests, but nothing has changed.Any word from you would be helpful.
Thanks.There was a typo, and instead of:
wp.media.view.Attachment.prototype.template = wp.media.template( 'attachment-custom' );Should be:
wp.media.view.Attachment.prototype.template = wp.media.template( 'attachment_custom' );