CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
Pages: [1]

Author Topic: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission  (Read 1310 times)

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
June 29, 2012, 10:13:58 am
Check it out: http://f2cfnd.org/donate-today/

After the first part of the donation page, it will submit to the home page with it's paramaters, and not the /donate-today page.

What is going on?! This just started happening recently for no reason..  No core, plugin, or theme updates initiated in the past 2 months..

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
June 29, 2012, 10:14:54 am
This is very urgent, This could mean they lose 100 donations/day...
« Last Edit: June 29, 2012, 12:52:28 pm by nextwave »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 01, 2012, 05:32:41 am
Not sure exactly what the problem might be, but I would suggest you trying using the "regular" CiviCRM URL like http://f2cfnd.org/?page=CiviCRM&q=civicrm/contribute etc. and see if that fixes it.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 02, 2012, 08:42:03 am
Hershel,

The homepage on this site is a custom template and CiviCRM overrides the first query_posts on that page..  I think that is the issue, I just have no idea where to begin looking through CiviCRM's codebase to fix it.

This is very urgent..
« Last Edit: July 02, 2012, 08:43:58 am by nextwave »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 02, 2012, 08:44:35 am
Yes I tried your page and I saw the problem.

Did you try the fix I said?

As I wrote, I don't know what the problem is, so you need to debug it. I gave you one suggestion for how to start doing that.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 05, 2012, 08:40:35 am
Still shows up on the homepage in the first query_posts request..

Here's the URL: http://f2cfnd.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=3

It's something to do with a custom homepage template and the URL.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 05, 2012, 09:53:37 am
If I go to that page and submit, it goes to:

http://f2cfnd.org/?page=CiviCRM&q=civicrm/contribute/transact&_qf_Confirm_display=true&qfKey=ab9a9dd8be90399203b4415b9ef216b5_782

which is correct.

I then click Continue and it goes to paypal.com

Seems to work actually.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 05, 2012, 11:43:18 am
Quote from: Hershel on July 05, 2012, 09:53:37 am
If I go to that page and submit, it goes to:

http://f2cfnd.org/?page=CiviCRM&q=civicrm/contribute/transact&_qf_Confirm_display=true&qfKey=ab9a9dd8be90399203b4415b9ef216b5_782

which is correct.

I then click Continue and it goes to paypal.com

Seems to work actually.

Hershel,

I've tried it in different browsers, logged in, logged out, but I still get the step 2 part of the donation page embedded on the front page.   When I go to the donation page directly it also embed itself in the home page template. 


Screenshots:
https://dl-web.dropbox.com/get/Public/Screen%20Shot%202012-07-05%20at%202.33.11%20PM.png?w=62165480
https://dl-web.dropbox.com/get/Public/Screen%20Shot%202012-07-05%20at%202.33.23%20PM.png?w=349285c7

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 05, 2012, 12:27:09 pm
Alright I have a manual fix in my page-home.php file.  Thing is, CiviCRM should figure out which template file to load...  If it's a home page template, it shouldn't be used on Civi pages..

Code: [Select]
<?php /* Template Name: Home */ ?>

<?php if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'CiviCRM'){

get_template_part('page');

} else{ 
?>


<?php get_header(); ?>

Home template PHP/HTML goes here.

<?php get_footer(); ?>

<?php } ?>

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission
July 06, 2012, 10:34:32 am

would be great if you can investigate and figure out how to generalize this fix so civicrm picks up the right template file.

We dont do anything special for WP theming. The code is here:

CRM/Utils/System/Base.php, function theme

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Wordpress 3.3.3 / CiviCRM 4.1 losing URL after form submission

This forum was archived on 2017-11-26.