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) »
  • Country / State Drop down menus behaving oddly
Pages: [1]

Author Topic: Country / State Drop down menus behaving oddly  (Read 2004 times)

bob_bingham

  • Guest
Country / State Drop down menus behaving oddly
October 16, 2009, 05:32:40 pm
Check it out:
https://www.sfgirlschorus.org/civicrm/contribute/transact?reset=1&id=6

select "select a country" and all of the states disappear. Select the US back and the states don't come back.
I was advised that this had to do with json functions missing in php. So I upgraded to 5.3 (from 5.2.6 which was missing the json functions for some reason) and now the behavior is different, but still essentially the same: broken.....

this is odd behavior. Why aren't these all custom fields within a profile that I can tweak? As it is, editing these friggin template to remove/change field like this that are unnecessary (and in this case broken) is a total pain

One suggestion I received was to check out the global settings->localization and make sure that United states was added in the correct places. It was, but when I tried to add other countries and then hot save, I get this:

    Sorry. A non-recoverable error has occurred.

    QuickForm Error: unknown error

    Return to home page.

Error Details:

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -1
    [message] => QuickForm Error: unknown error
    [mode] => 16
    [debug_info] => Form rule callback returned invalid value in HTML_QuickForm::validate()
    [type] => HTML_QuickForm_Error
    [user_info] => Form rule callback returned invalid value in HTML_QuickForm::validate()
    [to_string] => [html_quickform_error: message="unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="QuickForm Error: " info="Form rule callback returned invalid value in HTML_QuickForm::validate()"]
)



Anybody out there to lend a hand?

This software is sucking the life out of me and the organization I am trying to assist. Three years they've been beating their heads on this software. They should be thriving and helping kids make beautiful music, not wasting away their time on this stuff!

Thanks for any help.....[/code]
« Last Edit: October 16, 2009, 05:40:20 pm by bob_bingham »

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: Country / State Drop down menus behaving oddly
October 16, 2009, 10:07:47 pm

hey bob:

Considering that i have two girls who might be interested in the chorus at some point and since SFGC is in San Francisco and so are we, i'd like to offer our help and support :)

To clarify a few things: CiviCRM is open source software. We do our best to help support and ease the transition, BUT having a positive outlook and trying to improve / fix things benefits both you and us :) We dont like to see folks get frustrated, but the software does require a fair amount of skill and knowledge to use and operate (and reading the docs / book / forums posts help).

CiviCRM does not support PHP 5.3.x, so u'll need to roll back to 5.2.10. When we checked your site, the error was PHP could not find the function json_encode which is a feature since PHP 5.2.0+ (http://php.net/manual/en/function.json-encode.php)

Can we get ssh access to your box. Check the following wiki page: http://wiki.civicrm.org/confluence/display/CRMDOC/SSH+Access+Requirements for what we need

Once u have that, please contact me online via IRC. We can also meet personally (we are in the cole valley area of SF) at a coffee shop with wifi access that is convenient

let me know how u want to go forward. We'd definitely want to see SFGC use it with minimal hassles :)

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

bob_bingham

  • Guest
Re: Country / State Drop down menus behaving oddly
October 17, 2009, 09:50:51 am
sounds good. Thanks for the offer for help. Apologies for the frustration - but perhaps by getting your hands dirty on this project you can see a bit of how some civicrm design (and documentation) difficulties are causing difficulties with the end-user. I ran out of time on this quite awhile ago.

I'll ping you via IRC Monday morning and we can figure something out.

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: Country / State Drop down menus behaving oddly
October 17, 2009, 11:47:47 am

make sure you have ssh access to the site and permissions all set before you contact us :) also ensure that you have downgraded to PHP 5.2.10

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

bob_bingham

  • Guest
Re: Country / State Drop down menus behaving oddly
October 19, 2009, 05:05:11 pm
This issue was resolved.

Lesson:

Do not assume that the json libraries are installed in your installation of PHP 5.2X

If they aren't there, install them separately. Unfortunately, I made the mistake up upgrading the entire php server package to 5.3....

CiviCRM 2.2.6 will not run under 5.3. One will get errors like this:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -1
    [message] => QuickForm Error: unknown error
    [mode] => 16
    [debug_info] => Form rule callback returned invalid value in HTML_QuickForm::validate()
    [type] => HTML_QuickForm_Error
    [user_info] => Form rule callback returned invalid value in HTML_QuickForm::validate()
    [to_string] => [html_quickform_error: message="unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="QuickForm Error: " info="Form rule callback returned invalid value in HTML_QuickForm::validate()"]
)

Once the json library was installed and I had downgraded to php 5.2.4 the drop-downs were behaving properly.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Country / State Drop down menus behaving oddly

This forum was archived on 2017-11-26.