Before you ask please READ THIS

Contact Form not working

edited November 2012 in Airlock Posts: 21
Hi,

For some reason my contact form isn't working.

When you click on 'Submit Form' the URL goes to: http://anamatias.nfshost.com/contact/ (I think this is the old URL when I was working on wordpress in 'offline' mode.)

Thanks for the help.

Comments

  • AirAir
    Posts: 10,970
    As I mentioned in private message you have different values in Settings->General in WordPress Address (URL) and Site Address (URL). This is start of the problem as I suppose as I never tested setting this two different, but now is the highest time:-)

    In advance/apollo13.php line ~1464 there is
    http' . $ssss . '://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]
    And this can cause issue
    Change ALL above code to ' . home_url() . $_SERVER["REQUEST_URI"]
    and check does it help.

    As for portfolio page you have mentioned earlier it might be same thing so please try
    In advance/apollo13.php line ~1753 there is
    		if( defined( 'PORTFOLIO_PAGE' ) && PORTFOLIO_PAGE ){
    $href = site_url() . '?page_id=' . $this->get_option( 'portfolio_options', 'portfolio_page' );
    $title = __( 'Back to Portfolio', TPL_SLUG );
    }
    else{
    $href = site_url() . '?page_id=' . get_option( 'page_for_posts');
    $title = __( 'Back to Blog', TPL_SLUG );
    }
    change to
    		if( defined( 'PORTFOLIO_PAGE' ) && PORTFOLIO_PAGE ){
    $href = home_url() . '?page_id=' . $this->get_option( 'portfolio_options', 'portfolio_page' );
    $title = __( 'Back to Portfolio', TPL_SLUG );
    }
    else{
    $href = home_url() . '?page_id=' . get_option( 'page_for_posts');
    $title = __( 'Back to Blog', TPL_SLUG );
    }
    With regards.
  • Hi,

    First of all, thank you SO MUCH for all your support and quick answers!
    Everything went well with those codes, the contact form and 'back to portfolio' are working just perfect!

    Tell me something, now I've to be very carefully when doing the theme updates right?

    Thank you!
  • AirAir
    Posts: 10,970
    There was no update of Airlock for long time, and I don't think there will be any so sleep peacefully :-)

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!