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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Blank page with shortcodes
Pages: [1]

Author Topic: Blank page with shortcodes  (Read 2893 times)

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Blank page with shortcodes
July 05, 2012, 02:36:15 pm
I've setup CiviCRM and tried to use shortcodes to display contribution form on the front-end. However, the page doesn't load.  I read this: http://forum.civicrm.org/index.php/topic,24544.msg105373.html#msg105373, but not sure it's the same issue. It worked on a site I was working on last week, but not on the one now. I deactivated all plugins and used default 2010 theme and it still wouldn't display. Another thing to note, on the dashboard I can see the contribution page in test drive but not live. The live link takes me to a 404 page. Any other thoughts on what could be causing this issue?

This is the page with the contribution shortcode that isn't loading: http://www.noahslightfoundation.org/donate/ & here's the one where shortcode is working: http://sarap.is/donate/, for reference.


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: Blank page with shortcodes
July 06, 2012, 10:37:10 am

can you get it working without the shortcode?

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

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 06, 2012, 12:16:58 pm
No, it gives me a 404 error as well. I can only see it in test not live mode.

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: Blank page with shortcodes
July 06, 2012, 02:22:42 pm

and your payment processor settings are present for both test and live mode? can u check the payment processor for that contribution page

what happens if you dont have a payment processor and enable pay later

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

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 06, 2012, 02:36:17 pm
I tried it with, no payment processor, a dummy payment processor and pay later option and it works when I test drive, but not live. The payment settings are active in both setup, PayPal and Dummy. Is there another place I've missed?

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: Blank page with shortcodes
July 06, 2012, 02:56:45 pm

if its a blank page, seems like it is a php error and it should be logged in your php / apache error logs

can you check and see what the error message is

not sure what is 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

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 06, 2012, 04:33:53 pm
Thanks for responses. Does this help?

[03-Jul-2012 14:41:08] PHP Warning:  array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 169

[03-Jul-2012 14:41:08] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 173

[03-Jul-2012 14:41:08] PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 90

[03-Jul-2012 14:41:08] PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php on line 434

[03-Jul-2012 14:41:41] PHP Warning:  array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 169

[03-Jul-2012 14:41:41] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 173

[03-Jul-2012 14:41:41] PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 90

[03-Jul-2012 14:41:41] PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php on line 434

[05-Jul-2012 20:36:48] PHP Fatal error:  Call to undefined function  mailchimpsf_signup_form() in /wp-content/themes/theme1438/header.php on line 190

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: Blank page with shortcodes
July 06, 2012, 05:02:17 pm

seems like this is the issue:

[05-Jul-2012 20:36:48] PHP Fatal error:  Call to undefined function  mailchimpsf_signup_form() in /wp-content/themes/theme1438/header.php on line 190

might want to figure out why that is there or why that function is not defined

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

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 06, 2012, 05:31:55 pm
Hmmm, that is theme related. But when I changed it to default theme, it didn't display either, any thoughts on why that would be?

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: Blank page with shortcodes
July 06, 2012, 08:53:09 pm

sorry. dont know enough about WP to answer that :(

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

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 07, 2012, 09:06:48 am
Of course, makes sense. If I have more details, I'll share what I learned.

Thanks Lobo!

glocalwebtech

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Blank page with shortcodes
July 10, 2012, 04:29:55 pm
So I removed that from the header and I still got the 404 error or page not loading with the shortcode. I change permalinks to see if that was part of it, but nothing. The other other think is that the WP directory for the site is actually in a subdirectory from where the main domain points. It was built that way and redirected. Could it be redirect issues from CiviCRM trying to find it in the main directory to display on the front-end? Like I mentioned before, it works when I do a test drive in the admin dashboard. Any thoughts on this?

jltorres

  • I’m new here
  • *
  • Posts: 7
  • Karma: 4
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
Re: Blank page with shortcodes
May 09, 2013, 11:32:19 am
Was there ever a resolution to this issue? I am having the same problem.

Tadpole Collective

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
    • Tadpole Collective
  • CiviCRM version: Latest
  • CMS version: latest
Re: Blank page with shortcodes
May 14, 2013, 08:37:55 am
Yes, I believe it was a theme specific issue.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Blank page with shortcodes

This forum was archived on 2017-11-26.