Forums

Issues since upgrading to CF V3.1_RC5.5

demo38 17 Aug, 2009
Hi Guys,
Been a long time since being able to get back on a previous project, I just upgraded and it looks like a lot of work has been done!

I'm now on Joomla 1.5.14 / ChronoForms_V3.1_RC5.5.zip / ChronoConnectivity_V2_RC3

However, some things that worked prior to upgrading, I'm not sure how to fix now?


1) Search no longer works? - The Search button is dead, does nothing.

2) Smoothbox pop-ups no longer work? - I click on an item and its link seems to be dead, nothing happens.

3) Adding a new form item / saving an edited form item doesn't save the form / changes? - When filling out the information, it seems to validate fine and then redirect fine on Submit, but nothing saves anymore.

4) The item count, all items read Number "01" instead of the actual item counts? - The item count is not working any longer.


I'm not sure where to start with these? Right now, I'm working on a test install running WAMP Server, so I've attached a form backup in case that helps?

Thanks for your help,
Jonathon
GreyHead 17 Aug, 2009
Hi Jonathon,

The form itself looks fine so I assume that these are ChronoConnectivity problems? Very hard to diagnose those from this info.

I have the new CC release installed but haven't yet tested it. I think that someone else also reported problems with the search not working. What code do you have for the search form and WHERE clause?

Bob
demo38 25 Aug, 2009
Hi Grey,
Thanks for the reply,

For Search / Where, I have:

<?php
$search_array = array('document', 'publication', 'author', 'year', 'description', 'notes', 'check2');
$where = array();
foreach ( $search_array as $search ) {
  $value = JRequest::getVar($search, '' , 'post');
  if ( $value ) {
    $where[] = " $search LIKE '%$value%' ";
  }
}
if ( !empty($where) ) {
  echo " WHERE ".implode(' AND ', $where);
}?>


For the Header, I have:

<div style="float:left"><b><a href="index.php?option=com_chronocontact&chronoformname=KHCDocumentsAddFinal">Add New Document</a> | Search KHC Documents Database.</b></div><div style="float:left">
<table style="text-align: left; width: 650px;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="font-weight: bold;"><label for="document">Document</label></td>
      <td style="font-weight: bold;"><label for="author">Author</label></td>
      <td style="font-weight: bold;"><label for="publication">Publication</label></td>
      <td style="font-weight: bold;"><label for="year">Year</label></td>
    </tr>
    <tr>
      <td><input class="cf_inputbox" title="" type="text" id="text_1" name="document"></td>
      <td><input class="cf_inputbox" title="" type="text" id="text_3" name="author"></td>
      <td><input class="cf_inputbox" title="" type="text" id="text_2" name="publication"></td>
      <td><div class="form_element cf_dropdown">
<select class="cf_inputbox validate-selection" id="select" size="1" title="" name="year">
<option value="">Select Year</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>   
</div></td>
    </tr>
    <tr>
      <td style="font-weight: bold;"><label for="description">Description</label></td>
      <td style="font-weight: bold;"><label for="notes">Notes</label></td>
      <td style="font-weight: bold;"><label for="check2">Categories</label></td>
    </tr>
    <tr>
      <td><input class="cf_inputbox" type="text" id="text_9" name="description"></td>
      <td><input class="cf_inputbox" type="text" id="text_10" name="notes"></td>
      <td><div class="form_element cf_dropdown">
<select class="cf_inputbox validate-selection" id="select" size="1" title="" name="check2">
<option value="">Choose Option</option>
<option value="cardiology">Cardiology</option>
<option value="ob gyn">OB-GYN</option>
<option value="best practice">Best Practice</option>
<option value="surgery">Surgery</option>
<option value="neuro">Neuro</option>
<option value="Womens Study">Women's Study</option>
<option value="pharmacy">Pharmacy</option>
<option value="psychiatric">Psychiatric</option>
<option value="icu">ICU</option>
<option value="ambulatory">Ambulatory</option>
<option value="nicu">NICU</option>
<option value="radiology">Radiology</option>
<option value="womens">Women's</option>
<option value="presentation">Presentation</option>
<option value="med surg unit">Med Surg Unit</option>
<option value="anesthesiology">Anesthesiology</option>
<option value="oncology">Oncology</option>
<option value="inpatients">Inpatients</option>
<option value="leed">Leed</option>
<option value="lab">Lab</option>
<option value="endo">Endo</option>
<option value="rehab">Rehab</option>
<option value="pediatric">Pediatric</option>
<option value="projects">Projects</option>
<option value="trauma">Trauma</option>
<option value="urgent care">Urgent Care</option>
<option value="lean">Lean</option>
<option value="dietary">Dietary</option>
<option value="ortho">Ortho</option>
<option value="mat mang">Mat Mang</option>
<option value="technology">Technology</option>
<option value="ebd">EBD</option>
</select>   
</div></td>
    </tr>
  </tbody>
</table>

<input type="submit" value="Search / Reset" name="undefined" style='width:100px; height:22px; color:#f2f2f2; border:0; background-color:#333333; cursor:pointer;' /><br>
</div>
<br /><br />


Please Note: Documents listed alphabetically.
<br />
<table style="text-align: left; width: 600px;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="font-weight: bold; width: 5%;">#</td>
      <td style="font-weight: bold; width: 30%;">Document</td>
      <td style="font-weight: bold; width: 25%;">Author</td>
      <td style="font-weight: bold; width: 25%;">Publication</td>
      <td style="font-weight: bold; width: 15%;">Year</td>
    </tr>
  </tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div>


And, for Body, I have:

    <p class="blocknumber">
    <span class="bignumber">
<table style="text-align: left; width: 650px;" border="0" cellpadding="8" cellspacing="0">
  <tbody>
    <tr<?php if ($i % 2) echo ' style="background-color: #f2f2f2;"';?>>
	  <td style="font-weight: bold; width: 32%;"><?php echo sprintf('%02s', (1 + $counter)); ?></span><a class="smoothbox" name="<b>KHC Document Review</b> - {document}" href="#TB_inline?height=400&width=500&inlineId=cccontent_{cf_id}_box" id="cccontent_{cf_id}"   >    {document}</a></td>
      <td style="width: 23%;">{author}</td>
      <td style="width: 23%;">{publication}</td>
      <td style="width: 7%;">{year}</td>
      <td style="width: 20%;">{edit_record}{delete_record}</td>
    </tr>
  </tbody>
</table></p>
    <div id="cccontent_{cf_id}_box" style="display: none;">
<br><br>

<b>Document Name</b>: {document}<br>
<b>Author</b>: {author}<br>
<b>Publisher</b>: {publication}<br>
<b>Year</b>: {year}<br><br>
<b>File</b>: <a href="components/com_chronocontact/uploads/KHCDocuments/{fileupload}">Download File</a><br><br>
<b>URL</b>: <a href="http://{website}" target="_blank">Website Link</a><br><br>
<b>Researched?</b> {radio3}<br>
<b>Peer Reviewed?</b> {radio4}<br><br>
<b>Description</b>: {description}<br><br>
<b>Notes</b>: {notes}<br><br>
<b>Categories</b>: {check2}
</div><?php $i++ ?>


Any insight?

Thanks!
J
GreyHead 17 Sep, 2009
Hi demo38,

Sorry to be so long in replying. I built a tiny copy of your ChronoConnectivity with just 3 records and all appears to work OK.

Do you have 'Enable Form Tags' set to 'Yes' - this seems to be the most frequent cause of searches not working?

Bob
This topic is locked and no more replies can be posted.