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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error: Sending a relative URL to PayPalIPN is erroneous.
Pages: [1]

Author Topic: Error: Sending a relative URL to PayPalIPN is erroneous.  (Read 1682 times)

brucep

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: WordPress 3
  • MySQL version: 5
  • PHP version: 5.2
Error: Sending a relative URL to PayPalIPN is erroneous.
February 19, 2012, 05:13:40 pm
Hi all,

I'm just getting started with CiviCRM and I'm in the process of trying to set it up for our organization.  I'm using 4.1 on WordPress 3.  I'm at the point where I've created a contribution page, using Paypal Standard as the payment processor.  During the CiviCRM setup I selected the default values for my Resource URL's.  When I try a test run of the contribution page I eventually get the following error:

Quote
Sorry. A non-recoverable error has occurred.
Sending a relative URL to PayPalIPN is erroneous. Please make your resource URL (in Administer CiviCRM » Global Settings » Resource URLs ) complete.

Return to home page.

My Resource URL is set to http://beta.emact.org/wp-content/plugins/civicrm/civicrm/
My Image Upload URL is set to http://beta.emact.org/wp-content/plugins/civicrm/files/civicrm/persist/contribute/

I tried both an empty (default) value for the custom CSS URL and the URL of my templates CSS file but both behaved the same way.  Any ideas why I'm getting an error about a relative URL when they're both absolute URL's?

Thanks,

-Bruce

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: Error: Sending a relative URL to PayPalIPN is erroneous.
February 19, 2012, 07:29:07 pm


can u check what your:

CIVICRM_UF_BASEURL

is in civicrm.settings.php

This should be in: wp-content/plugins/civicrm/

i think the right value is: http://beta.emact.org/

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

brucep

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: WordPress 3
  • MySQL version: 5
  • PHP version: 5.2
Re: Error: Sending a relative URL to PayPalIPN is erroneous.
February 20, 2012, 05:44:30 am
Yes, it's set as:

Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , 'http://beta.emact.org/' );


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: Error: Sending a relative URL to PayPalIPN is erroneous.
February 20, 2012, 07:25:56 am

can u debug:

CRM/Core/Payment/PayPalImpl.php, line 427

and see why $returnURL is not an absolute url

thanx

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

brucep

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: WordPress 3
  • MySQL version: 5
  • PHP version: 5.2
Re: Error: Sending a relative URL to PayPalIPN is erroneous.
February 20, 2012, 12:08:23 pm
Quote from: Donald Lobo on February 20, 2012, 07:25:56 am

can u debug:

CRM/Core/Payment/PayPalImpl.php, line 427

and see why $returnURL is not an absolute url

Well so far I've traced it down to the url function in CRM/Utils/System/WordPress.php.  When the URL is being put together, the variable $script is empty, so when the url function returns (in this case on line 222) the entire base of the URL is empty.  I'll see what else I can dig up.

Edit: I just determined that $config->userFrameworkFrontend on line 186 is undefined, so that conditional fails.  As a result, $script is never changed from it's default value of ''.  Not sure what userFrameworkFrontend indicates though.  That's probably all I can do given that I've never looked at the CiviCRM code until now...

-Bruce
« Last Edit: February 20, 2012, 12:20:11 pm by brucep »

brucep

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: WordPress 3
  • MySQL version: 5
  • PHP version: 5.2
Re: Error: Sending a relative URL to PayPalIPN is erroneous.
February 23, 2012, 05:39:58 pm
Any suggestions how to proceed with this problem?

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: Error: Sending a relative URL to PayPalIPN is erroneous.
February 23, 2012, 07:22:13 pm

r u using a custom permalink structure? If so, can u switch to the default and see if that works.

the custom permalink code came in via a patch and might not handle all cases.

Check:

http://forum.civicrm.org/index.php/topic,23157.msg97824.html#msg97824

and maybe see if anthony c can investigate and submit a patch

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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error: Sending a relative URL to PayPalIPN is erroneous.

This forum was archived on 2017-11-26.