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) »
  • Joomla CiviEvent registration goes to admin url?
Pages: [1] 2

Author Topic: Joomla CiviEvent registration goes to admin url?  (Read 2709 times)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Joomla CiviEvent registration goes to admin url?
October 30, 2009, 02:28:18 pm
Latest Joomla 1.5.14 and CiviCRM 3.02

I have a registration page - and every submission of the registration results in a post to the joomla admin url instead of public url:
I thought  this might be a an SEF issue so turned this off. Turned on back trace and get below;

Quote
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 256
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, fatal, 211
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, key, 145
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Controller/Registration.php, __construct, 44
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(205) : eval()'d code, __construct, 1
/home/www/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, eval, 205
/home/www/public_html/administrator/components/com_civicrm/admin.civicrm.php, invoke, 45
/home/www/public_html/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 22
/home/www/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/www/public_html/administrator/includes/application.php, renderComponent, 136
/home/www/public_html/administrator/index.php, dispatch, 67

Sorry. A non-recoverable error has occurred.

Could not find valid Key

The issue tracker look large for CiviEvent issues - is this normal?

cheers
alanski

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
October 30, 2009, 03:01:31 pm
Just rechecking settings:
 * CIVICRM_UF_BASEURL - home URL for your site:
 * Administration site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/administrator/' );
 * Front-end site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/' );

Surely for joomla there should be two different defines vars?On efor front and back - instructions see to imply either but in effect the Administration one is the one that works....

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
October 30, 2009, 03:21:57 pm
Seeing uid posts and collation i can see that my civic tables are all in utf8_unicode as opposed to general - is this right?

Is this error possibly caused by legacy profile fields that have been changed from individual to participant in event reg profile(s)?

This is the only change I can think of that has occurred.....

alanski

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Joomla CiviEvent registration goes to admin url?
October 30, 2009, 04:32:20 pm
There is a separate civicrm.settings.php file for Joomla front-end which sets the CIVICRM_UF_BASEURL for front-end civicrm pages. Should be in joomla_root/components/com_civicrm
Protect your investment in CiviCRM by  becoming a Member!

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
October 30, 2009, 04:45:39 pm
Ah OK,
Thanks
Just checked that. No administrator path in there.

So i have the correct settings /path front and back....

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 07:23:34 am
Update:
This is still an issue
I can access the event reg profile thru Joomla menu as profiletest.html or I can try using the civicrm url as below;

index.php?option=com_civicrm&task=civicrm/event/register&id=7&reset=1
either way I am still getting errors like:

invalid key/ no gid - seemingly intermittent.

Key Questions arising from examination -please feel free to correct my interpretation of what is wrong ;):
1.Civi Event form produces a url with the wrong action (eg it adds the joomla administrator url to the domain)
So where is this created? Obvious place to look is configs and these all seem fine front and back? It seems to be getting the administrator path from somewhere - could it be reading the wrong param?

2.The Joomla menu profile link seems to be missing a gid value or a name value. The backtrace seems to indicate errors in these values?
I looked on issue tracker but couldnt find a clear reference to this - might be blnd though.

Would love to tget this solved as site was meant to be collecting registrations MOnday - eek

any pointers appreciated

alanski

2. Even with manually typing the correct url

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: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 07:53:01 am

what version are u using?

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 08:21:31 am
as above
Latest Joomla 1.5.14 and CiviCRM 3.02  ;)
should add php5.2.8 MysQL 5.081 community...
« Last Edit: November 01, 2009, 08:40:06 am by alanski »

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: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 10:00:49 am

can you reproduce this on our joomla demo server which is running pretty close versions of the stack that you are

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 10:50:59 am
Hi lobo,
happy to do but before i do...
Just looked at he demo though and noticed some interesting differences in the profiles when editing them.

I have a profile called 'Event Reg Extra'

I have an interesting used for when editing the profile settings  - as well as 'CiviEvent' I also have 'CiviEvent_Additional'
I haven't seen this before and not sure if it is meant to be there.....

Is this normal?

alanski



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: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 10:53:18 am

yes, that is normal. it is the profile for the additional participants form (if that option is chosen)

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 11:32:19 am
Ah ok.
Thanks -

Just noticed all my event templates have gone and we dont use multiple registrations.....

We are also running 3.02 and the demo is 3.0 - will thi smake a difference?
As we type I am trying to mimick our profile on Joomla demo

alanski

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 12:18:36 pm
OK Have been unable to recreate issue on demo but have noticed two things which may be connected to my issue.

When editing the falls event here the last option 'Live Registration' gives incorrect URL - it includes the path and word 'administrator' as in my main issue - the form action url containing this and being incorrect.

The other thing I can find that is different is that the Background and Info page in the demo (Fall Fundraiser Dinner) contains the fields from the registration extra profile at the footer - in my installation this profile does not appear on the Background and Info tab of the event.

Not sure where to go from here - disappearing event templates (template name still in db!) , and no registration form front end - rebuild from scratch, restore older version and re upgrade, download to macbook and run thru Netbeans IDE debugger?

Am doing the latter anyway now (using a xammp stack).

Any more options / thoughts?

cheers
alanski




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: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 02:11:59 pm

the live registration url is a bug. please file an issue and we'll fix in a future version

i suspect there is something wrong with your install. you might want to cntact someone from http://civicrm.org/professional/

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla CiviEvent registration goes to admin url?
November 01, 2009, 02:32:27 pm
Thanks.
Quote
i suspect there is something wrong with your install.
Yeah got that.  :)
This data/install was setup by Michael McAndrew on 2.5.x and worked for collecting registrations until we upgraded to 3.0.1 and then 3.02.

I'll ask Michael to take a look.

thanks

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Joomla CiviEvent registration goes to admin url?

This forum was archived on 2017-11-26.