GK Contact on home page doesn't work.

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Dec 14, 2015 6:51 pm
Reply with quote
Report this post
Hello. Here's my site: http://lauraroushphotography.com/new2016 and the form at the bottom appears to be properly configured. In the component itself, I have a valid email address under the "System - GK Contact" plugin. When you click on the "Send" button, it just errors out. In the Global Configuration - Server - Mail settings, I have it also in there correctly using the PHP Mailer.

Any thoughts?
Thanks,
Joe
User avatar
Expert Boarder

teitbite
Wed Dec 16, 2015 11:07 am
Reply with quote
Report this post
Hi

Looks like the problem appears because form is trying to use a secured connection while Your site is not configured to use one. Please send me an access to joomla panel I'll see if it's because of settings.
User avatar
Moderator

GK User
Fri Dec 18, 2015 3:15 pm
Reply with quote
Report this post
I PM'd you login details.

teitbite wrote:Looks like the problem appears because form is trying to use a secured connection while Your site is not configured to use one. Please send me an access to joomla panel I'll see if it's because of settings.
User avatar
Expert Boarder

teitbite
Sun Dec 20, 2015 11:30 am
Reply with quote
Report this post
Hi

Please edit file /plugins/system/plg_gkcontact/plg_gkcontact.php and replace line 66:

Code: Select all
      $cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];



with:

Code: Select all
      $cur_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
User avatar
Moderator

GK User
Wed Dec 23, 2015 5:13 pm
Reply with quote
Report this post
Ok, I've done that, and it seemed to get me one step closer.
Now, when I submit the message, I get the site error that says:

Could not instantiate mail function.
An error occured during sending your message: Could not instantiate mail function.


Now, I'm pretty sure this is not the case, because the site sends mails fine using the same email address on the "Contact Me" page here: http://lauraroushphotography.com/new2016/index.php/contact-me-today
User avatar
Expert Boarder

teitbite
Sun Dec 27, 2015 6:10 pm
Reply with quote
Report this post
Hi

Have You tried to configure SMPT in global joomla configuration ? Maybe mail function is disabled on Your server. Please check that and if this will not work I'll send this problem to programmers.
User avatar
Moderator

GK User
Tue Dec 29, 2015 4:59 pm
Reply with quote
Report this post
I switched to the SMTP mail version and that seemed to work.
Strange, who knows what was causing that, but it works now, so I won't complain.
Thank you again for all of your help.
Joe
User avatar
Expert Boarder

teitbite
Thu Dec 31, 2015 1:30 pm
Reply with quote
Report this post
Hi

Standard mail() function has a flaw where anyone can use a server to send a mail, so it's being removed from most of servers for security reasons. That's why it may now work on every server.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron