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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • CRM_Core_Page_AJAX_Location::jqState() warning
Pages: [1]

Author Topic: CRM_Core_Page_AJAX_Location::jqState() warning  (Read 1386 times)

mrl586

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.5.9
  • PHP version: 5.3.5
CRM_Core_Page_AJAX_Location::jqState() warning
June 29, 2010, 01:50:02 pm
Is this bug or feature?
Code: [Select]
warning: Parameter 1 to CRM_Core_Page_AJAX_Location::jqState() expected to be a reference, value given in /path/to/drupal/sites/all/modules/civicrm/CRM/Core/Invoke.php on line 186.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CRM_Core_Page_AJAX_Location::jqState() warning
June 29, 2010, 02:16:24 pm
Can you give exact steps to replicate this.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

mrl586

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.5.9
  • PHP version: 5.3.5
Re: CRM_Core_Page_AJAX_Location::jqState() warning
June 29, 2010, 02:21:05 pm
1. Go to your Drupal site
2. Login this site
3. See this warning on Drupal index page

Drupal error log says this that error:
Code: [Select]
Tyyppi php
Päivämäärä Sunnuntai, Kesäkuu 27, 2010 - 01:45
Käyttäjä mrl586
Sijainti http://www.example.org/civicrm/ajax/jqState?_id=country-1&_name=country-1&_value=1199
Viittaaja http://www.example.org/admin/reports/event/51
Viesti Parameter 1 to CRM_Core_Page_AJAX_Location::jqState() expected to be a reference, value given tiedostossa /path/to/drupal/sites/all/modules/civicrm/CRM/Core/Invoke.php rivillä 186.
Vakavuus virhe
« Last Edit: June 29, 2010, 02:25:55 pm by mrl586 »

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: CRM_Core_Page_AJAX_Location::jqState() warning
June 29, 2010, 10:33:29 pm
Hey mrl586 ,

Its  a issue with PHP 5.3 and replicates when more than one country is enabled, you can apply the below patch.

Code: [Select]
Index: CRM/Core/Page/AJAX/Location.php
===================================================================
--- CRM/Core/Page/AJAX/Location.php (revision 28512)
+++ CRM/Core/Page/AJAX/Location.php (working copy)
@@ -100,7 +100,7 @@
         CRM_Utils_System::civiExit( );
     }
 
-    function jqState( &$config ) {
+    function jqState( $config ) {
         if ( ! isset( $_GET['_value'] ) ||
         empty( $_GET['_value'] ) ) {
             CRM_Utils_System::civiExit( );

Regards,
Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • CRM_Core_Page_AJAX_Location::jqState() warning

This forum was archived on 2017-11-26.