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) »
  • "Undefined variable: urlBase" error makes some PCPs unavailable
Pages: [1]

Author Topic: "Undefined variable: urlBase" error makes some PCPs unavailable  (Read 670 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
"Undefined variable: urlBase" error makes some PCPs unavailable
March 23, 2012, 02:04:44 pm
I have a slippery bug here that I'm not able to re-produce...

I'm running an event where several hundred people will be making personal campaign pages. So far a few dozen people have made their pages, and all is well except for about 5% of the cases that suffer from the same strange problem as follows:

A person creates a PCP. Then they go to view their page, but instead of seeing the page they get bumped to our home page and the following error displays:

Notice: Undefined variable: urlBase in CRM_PCP_Page_PCPInfo->run() (line 135 of /var/sites/bikesnotbombs.org/drupal/sites/all/modules/civicrm/CRM/PCP/Page/PCPInfo.php).

This behavior is isolated to specific personal campaign pages, meaning that most of these pages work fine. Fortunately I'm able fix the problem on a per-page basis by editing the database from the back-end. The troublesome pages have `civicrm_pcp`.`page_type` = '%%pageComponent%%' while the functional pages have `civicrm_pcp`.`page_type` = 'contribute'. So changing this value to 'contribute' fixes the problem. But it's still quite a nuisance. I've searched through my log file for relevant error entries and found nothing. Any ideas on how to avoid this issue?

Running CiviCRM 4.1.1 on Drupal 7.

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: "Undefined variable: urlBase" error makes some PCPs unavailable
March 23, 2012, 02:54:57 pm

a couple of questions:

1. Are all these new PCP's created in 4.1? or are some of them (more specifically the 5%) created prior to 4.1?

2. Any common characteristics in that 5% of the cases

ping us on irc and we can chat. I can get u to test a few patches and narrow down whats happening and why

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) »
  • "Undefined variable: urlBase" error makes some PCPs unavailable

This forum was archived on 2017-11-26.