Joomla 3.7.2 can't send any emails with contact forms - joomla

I'm at the end of my rope here and I'm here to get some help. I'm going to try and explain it as best as I can.
I have a website running on Joomla 3.7.2 which you can visit here: https://www.meteordesign.nl
For some reason my contact form does not work anymore. Whenever I click 'send' the page reloads but no confirmation or an email being sent.
I have tried the following:
Switched from PHP mail to SMTP and send a test mail (came in fine).
Used several other contact form modules and components and even an HTML one which you can find here https://bootstrapious.com/p/bootstrap-recaptcha
They all don't work. I have tried disabling my .htaccess file to see if that solved it but to no avail.
You can find the contact form here:
https://www.meteordesign.nl/contact
I don't know if this is important but recently my hosting provider switched to https. Could that be causing it?
I hope I explained it well. If not feel free to ask me more questions, I really need your help fixing this!

So I finally figured it out...
The problem was the cache settings on Joomla at Global configuration > System > System Cache. I had it on Progressive and after setting it to Conservative my contact form worked again!

You are likely running into a JavaScript issue. Just tested this and you seem that you have solved it. Please let us know what the issue was so that others can learn from your experience.

Related

Why does my Linkedin share button not work?

I want to create a share button for Linkedin, the GUI button is all set up, but it doesn't work when clicking it. I researched a bit and came to the conclusion that using the same sharing mechanism, other sites work but mine doesn't.
I narrowed the problem down and now I'm trying to figure out why google.com works but my site doesn't. I don't use my real company website because it's personal information, but it's a website that has been on the internet for more than 10 years (in case this information is useful). When I go to the links, my website throws an error, but Google works fine.
Ⓧ https://www.linkedin.com/cws/share/?url=https://www.my-company-website.com
〇 https://www.linkedin.com/cws/share/?url=https://www.google.com
Is there any pre-requisite I'm missing, which makes my site not work?
I realized my server was blocking Linkedin (to reduce traffic from Linkedin bots). That's why it wasn't working.
As hint: I was working on closed webpage (for outside users) and that also causing problems with Linkedin share button.
Hint 2: Website uses Lets Encrypt! SSL and information mentioned here is a fake news https://wordpress.org/support/topic/linkedin-share-button-not-working-3/ Work's fine!
If you ever get stuck on trying to figure out why your page simply doesn't populate nice preview data on your LinkedIn share page, then check out the LinkedIn Post Inspector.
Insert the URL of your page (i.e., example.com), not the URL you are using to share (i.e., linkedin.com/share?url=example.com). You'll get detailed information on how your site will appear and why, like, for instance, sharing wikipedia.org...
Hope this helps someone else with a LinkedIn share issue!

Opencart 3.0.2.0 Auto logout issue

So I am experiencing this frustrating issue for quite some time already. The scenario is when I am using admin panel, it will automatically log me out frequently(especially when I click on Save or Edit button). Sometimes it was as bad as each action click it will log me out once, so I have to repeatedly login for each action I performed( Save or Edit).
It is even worst that this is not a constant issue which means it is not every time I click on this module will have this issue which makes me impossible to trace under what circumstances this issue will comes out. By the way, after the system log me out, the message appeared at the login page was 'Invalid session token'.
And recently I got feedback from my customer that even front end is having this issue. My customer make an order after filling up all the details and confirm the payment, when try to click next button, he is being logout !! No order confirmation email send to him. And when he re-login to his account, his order details is incorrect(showing other customer details). This has seriously impact my website reputation. I believe both these front end and backend issue were from the same root cause.
All this while I have been trying to look for solution for this, I have seen similar post on Opencart forum before but can't get a solid solution. So I am opening this topic again here and hope to get a solution from stackoverflow. Solid solutions/advise/idea are all welcome. Thank you.
You may check at following things,
delete system/logs/error.txt;
check if problem has gone;
if not - check where is your disk_space (you may contact your hoster for support)
I also had the same issue.
I have changed the string of code in the htaccess file from "http" to "https" and that worked for me.

Endless spinning wheel at Woocommerce checkout

I am in the process of building a shop on wordpress using woocommerce. All is well except that at checkout there is an endless spinning wheel blocking the payment processing.
I have checked the error logs - which show no errors
I have disabled all plug ins - which makes no difference
I have reverted to the default woocommerce shopfront theme - which has the same result.
The console shows no errors.
I have also followed the instructions here https://docs.woocommerce.com/document/endless-loadingspinner-on-the-checkout-page/ which assumes its a memory limit issue. This did not work.
So, after a bit of digging I found some reference here https://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/ and here https://www.maxsangster.com/blog/woocommerce-endless-loading-spinner-on-checkout/
Referring to these two pages I have been able to see that the json response from /?wc-ajax=checkout is just returning HTML which I would imagine is where the issue is.
However I am running an Apache server rather than Nginx as has been mentioned in some threads and articles. Assuming there is a server misconfiguration of the server or something that needs changing what might that be? Bearing in mind that I do not have direct access to this, so will need to be asking someone else to sort it out for me.
And finally if there is something else I can try what might that be?
Thank you to #plushyObject for generating the spark for this one.
The issue turned out that I had a legacy static html holding page in place as the site's homepage rather than having one set up with wordpress. Simply removing the .html page and letting wordpress's homepage take over solves the problem.
The moral of the story create your holding page in wordpress.
Go to Google Developer Tools, then Go to the Network tab. Click the button and make the request and let that bad boy spin out.
You mentioned the response is returning HTML. Click on the request that goes out that appears to be taking forever (/?wc-ajax=checkout) and then click on the Preview tab to display that HTML. I bet it shows an error or a clue, anyway.
In my case the checkout was working fine on Desktop but not on Mobile. After many search on internet I read the solution of #UntitledGraphic.
I had set a redirect in ht-access. The redirect was showing a different home page for mobile. When I removed it, the error gone. I checked back & forth and was sure the ht-access redirect was the problem.
If you have set any redirect in the Htaccess then remove it. This will solve your issue in this case.
I also checked the redirect code on function.php instead of htaccess again the problem appeared. So finally removed the redirection.
In my own case the redirection was the issue. So I had to delete the redirect I created via Cpanel.

Ajax form does not work, security update in browser causing the issue?

here's my problem, I currently have a issue with a form, when the submit button is pressed, the information are not sent to the server. A programmer friend of mine checked and told me it is a security update in browser that caused the issue.
Screencap:
https://www.dropbox.com/s/3en22ryjr6idv6w/error.png
FYI, Im not a programmer, but I hope to understand more about this issue, so at least I have an idea of what is going on now. Can anyone show some resolving methods or links to tutorials to resolve it? Any help is much appreciated! Thanks in advance.
Its not a browser security update. Its the basic same-origin-policy implemented by all the browser.
Javascript loaded from a particular can't make AJAX request to other domain until same-origin-policy is relaxed. Please read more about it
understanding-the-web-same-origin-policy

Joomla Mailto Component unable to send mails occassionally

Greetings,
I will certainly hope someone will be able to provide some enlightenment to my problem.
Currently, I have 2 joomla sites, layout and menus are a replicate of the other.
I noticed that on both Joomla, I will occasionally encounter "Unable to send mail" after a form submission.
Is this the fault of my server, or the fault of Joomla's PHP Mailer ? I will certainly love to approach my hosting company for a solution but I do not want to place a false accusation on them.
By default, Joomla will use PHP's mail() function, although you can set it to use other methods (sendmail, SMTP) in the Global Configuration on the Server tab.
The best way to test this would be to set up a small PHP script that sends a message through mail(). Next time you see the message, try running the small script and see if that one fails as well.
I personally preffer using an SMTP server for mailing purpose. I guess your hosting company has provided something like smtp.yourdomain.com
You may use it.
Else, you can use the gmail server smtp.gmail.com
It wont disappoint you for sure.

Resources