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 CiviEvent (Moderator: Yashodha Chaku) »
  • Could not find valid value for id
Pages: [1]

Author Topic: Could not find valid value for id  (Read 3023 times)

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Could not find valid value for id
April 08, 2009, 07:30:47 am
So here's another "Could not find valid value for id"  I've installed CiviCRM 2.2.2 on Joomla 1.5.3.  I went through all of the configuration of CiviCRM and set up an event.  I created a menu link to the event through Joomla (the event is #1).  However, in the front-end of the site, when I click the link, I get the error.

This is my server info:
Linux box293.bluehost.com 2.6.28-9.5.intel.BHsmp #1 SMP Thu Apr 2 10:18:06 MDT 2009 x86_64
Database Version:    5.0.75-community-log
Database Collation:    utf8_general_ci
PHP Version:    5.2.9
Web Server:    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Web Server to PHP interface:    cgi-fcgi

After I turned on Debugging, here is the output:
backTrace

/home/monolit2/public_html/supportsdc/newsite/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 258
/home/monolit2/public_html/supportsdc/newsite/administrator/components/com_civicrm/civicrm/CRM/Utils/Request.php, fatal, 108
/home/monolit2/public_html/supportsdc/newsite/administrator/components/com_civicrm/civicrm/CRM/Event/Page/EventInfo.php, retrieve, 58
/home/monolit2/public_html/supportsdc/newsite/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 205
/home/monolit2/public_html/supportsdc/newsite/components/com_civicrm/civicrm.php, invoke, 76
/home/monolit2/public_html/supportsdc/newsite/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/monolit2/public_html/supportsdc/newsite/libraries/joomla/application/component/helper.php, require_once, 162
/home/monolit2/public_html/supportsdc/newsite/includes/application.php, renderComponent, 124
/home/monolit2/public_html/supportsdc/newsite/index.php, dispatch, 68

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Could not find valid value for id
April 08, 2009, 07:39:29 am
hi,

To access event info page you need to pass event id in menu link.
like : http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/event/info&reset=1&id=1
in this url id=1 is the event id.

kiran
You Are Designed To Choose... Defined By Choice.

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Could not find valid value for id
April 08, 2009, 07:55:57 am
Thanks for the info and quick reply.  So the automated menu creation in Joomla 1.5 doesn't work for Event links?

Dane

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: Could not find valid value for id
April 08, 2009, 08:06:43 am

i think kiran misread your post.

The front end menu links should work (and do work on our installs). I'm not very sure why it fails on your install. Most likely the right variables are not getting passed in

If you are a php programmer and can debug: components/com_civicrm/civicrm.php (line 50) and figure out what is happening there, that would be great. Basically that code gets the task and id parameters from the ItemId

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

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Could not find valid value for id
April 08, 2009, 08:43:44 am
Lines 50-62 read:

   if ( CRM_Utils_Array::value( 'Itemid', $_GET ) ) {
        $component  =& JComponentHelper::getComponent('com_civicrm');
        $menu       =& JSite::getMenu( );
        $item       =  $menu->getItems('componentid', $component->id, true);
        $params     =  $menu->getParams( $_GET['Itemid'] );
        $args = array( 'task', 'id', 'gid', 'reset', 'pageId', 'action' );
        foreach ( $args as $a ) {
            $val = $params->get( $a, null );
            if ( $val !== null ) {
                $_GET[$a] = $val;
            }
        }
    }
« Last Edit: April 08, 2009, 08:45:25 am by danetidwell »

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: Could not find valid value for id
April 08, 2009, 08:53:43 am

yes, if you are a php programmer, please add debug statements to that piece of code and the values stored in $_GET

if not, would be great if you can find someone local to help you debug this. not sure if this is related to the fact that you are running php as cgi/fcgi

thanx

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

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Could not find valid value for id
April 08, 2009, 09:04:27 am
Ah, yeah, not a programmer :-)

sykong

  • Guest
Re: Could not find valid value for id
May 06, 2009, 07:54:19 am
I think this might be related... I am getting the same error for profile view and profile search links.

The profile edit link works, and when I click on cancel, I can able to get the form to search

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Could not find valid value for id

This forum was archived on 2017-11-26.