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) »
  • Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
Pages: [1]

Author Topic: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname  (Read 2946 times)

edbneutron

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Joomla 1.7
  • MySQL version: 5.1
  • PHP version: 5.3.6
Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
September 03, 2011, 05:22:19 pm
Hello,

this is my first Installation of CiviCRM. Please let me start by saying that this a huge piece of Code!
Incredible flexible, but also VERY demanding in terms of installation and configuration.

Now on to my problem.

When i´m in the administration (Joomla 1.7) the action links get corrupted!!

(Registered    Attendee   view edit delete)

The links behind edit, view, delete get corrupted because i have "xx" in my domain-name! (beatboxx.at).
I found the problem:
in some Smarty Templates , example:
Quote
com_civicrm/civicrm/CRM/templates/CRM/Event/Form/Selector.tpl

Line 85: <td>{$row.action|replace:'xx':$participant_id}</td>

here 'xx' gets replaced with the participant_id. Now 'xx' is in my domain-name as well......
so the domain-name should be beatboxx.at and turns out as beatbo1.at, beatbo2.at, beatbo3.at and so on.

What can i do?
Any Ideas? Please HELP!!

ARRGHH! It´s 2:20 am after 15 hours of installation configuration and other horror.....
  :'( :'( :'( :'( :'( :'( :'( :'(

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
September 04, 2011, 06:44:47 am
This appears to be a serious problem and I don't have a proper solution, but in the meantime, you can hack your template by replacing that code with something like:

Code: [Select]
   
<td>
{$row.action=$row.action|replace:'beatboxx':'YYYY'}
{$row.action=$row.action|replace:'xx':$participant_id}
{$row.action|replace:'YYYY':'beatboxx'}
</td>

My Smarty skills are rusty, so you may have to play with the exact syntax a bit...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

edbneutron

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Joomla 1.7
  • MySQL version: 5.1
  • PHP version: 5.3.6
Re: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
September 14, 2011, 08:25:41 am
Hello,

thanks for your solution. I already thought of something like this....
The bad thing is that this is in about 60 internal templates of civicrm itself.

I did a workaround with a different domain name as i wanted to stay with the original civicrm code.

hmmm.  ???

I´ll see if i will change all the files.

Nevertheless, thanks!
Regards!

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: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
September 14, 2011, 09:35:10 am

we should definitely fix this across CiviCRM. using xx as a token to replace is not a good idea.

If you can take the lead on this that would be great. Ping us on IRC and we can figure out a good solution and then fix it for 4.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

tiuz

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5.3
Re: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
January 30, 2013, 09:13:45 am
It still isn't fixed.
I installed CiviCRM on a fresh Joomla 2.5.8 Installation and started the configuration and run into this problem several times.

Is there a workaround for this issue? Because it is really annoying.

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: Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname
January 30, 2013, 09:30:18 am

unfortunately no one has taken the time to submit a patch for this :(

Would be great if you can spend some time and create a patch for this. That would be appreciated and less annoying for folks following you

ping us on IRC if you need help getting started

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Internal Edit Links (view,edit,delete) for items corrupted with "xx" in hostname

This forum was archived on 2017-11-26.