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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • [Solved] CiviContribute - New Contribution page errors out on Joomla 1.5.10 ins
Pages: [1]

Author Topic: [Solved] CiviContribute - New Contribution page errors out on Joomla 1.5.10 ins  (Read 1455 times)

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
[Solved] CiviContribute - New Contribution page errors out on Joomla 1.5.10 ins
June 03, 2009, 07:04:09 am
Trying to get this installed and configured as a favor for a friend, and have no experience what so ever with this plugin (also my first time working with Joomla so I am doubly handicapped here). I am trying to get the CiviMember setup and configured for paid memberships, but when I go into CiviContribute to setup a New Contribution Page, it just errors out (blank page). I have narrowed it down to the core/menu.php, wherein it is trying to unserialize some DB items that are causing the error. Error log states the following:
----------
PHP Notice:  unserialize()  [<a href='function.unserialize'>function.unserialize</a>]: Argument is not a string in /var/www/html/members.rfw.org/administrator/components/com_civicrm/civicrm/CRM/Core/Menu.php on line 618.
----------
Versions:
-Joomla: 1.5.10
-PHP: 5.1.6
-MySQL: 5.0.22
-Apache: Apache/2.2.3 (CentOS)
-CiviCRM: 2.2.5
Anybody have any quick fix for this? I still have a lot of other stuff to do, and a deadline of tomorrow afternoon to do it, so I am really hoping I can get this one solved fast and move on.
Thanks anyone that looks at least. I really appreciate it.
« Last Edit: June 04, 2009, 06:54:14 am by websitesRevolt »

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: CiviContribute - New Contribution page errors out on new Joomla 1.5.10
June 03, 2009, 08:06:48 am

try doing a menu rebuild to see if that error will go away.

as admin the url is:

administrator/index2.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1

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

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: CiviContribute - New Contribution page errors out on new Joomla 1.5.10
June 03, 2009, 08:46:27 am
Didn't work... It appears thats just a notice error though...If I throw an "or die();" onto the end, civiCRM doesnt work in any component so it must be an error thats thrown everytime the menu component loads.
 I missed a fatal one at the bottom of the log however that is more likely the cause.
The fatal error thrown is:
------
PHP Fatal error: Call to undefined function array_fill_keys() in /joomlaRoot/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/ContributionPage.php on line 220
------

So why isn't array_fill_keys working... its native as of PHP5, is it overridden somewhere?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviContribute - New Contribution page errors out on new Joomla 1.5.10
June 03, 2009, 02:13:27 pm
Might want to verify the version of PHP that your site is running under (we've seen several hosting situations where several PHP versions are available and sometimes it's not clear which one your site is using).
Protect your investment in CiviCRM by  becoming a Member!

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: CiviContribute - New Contribution page errors out on new Joomla 1.5.10
June 04, 2009, 05:37:26 am
The version of PHP I listed is the version being ran... I just found a post thats related though.
http://forum.civicrm.org/index.php/topic,5003.msg26270.html#msg26270

This post states that array_fill_keys is only available in php 5.2 and higher (the php manual says versions 5 -5.2).
There is a replacement function noted in that post, but the person who had the problem wasnt savvy enough to figure out where it belongs. I am going to attempt this fix, and will let everyone know if it works, so that perhaps this can be solved for anyone else in my position in the future.

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: CiviContribute - New Contribution page errors out on new Joomla 1.5.10
June 04, 2009, 06:53:15 am
Ok this worked... I inserted this between lines 219 and 220 of the administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/ContributionPage.php, and problem solved.
Code: [Select]
<?php
if (! function_exists("array_fill_keys")) {
   function 
array_fill_keys($keys, $value) {
       return 
array_combine($keys, array_fill(0, count($keys), $value));
   }
}
?>
Thanks to Lobo for the answer ;]

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • [Solved] CiviContribute - New Contribution page errors out on Joomla 1.5.10 ins

This forum was archived on 2017-11-26.