Problems when using Subversion and Chronoforms

Please post any ChronoForms bugs you found here

Problems when using Subversion and Chronoforms

Postby petersen on Mon Apr 14, 2008 6:17 pm

When using Subversion (and I'm assuming other forms of version control), the forms component will fail due to a bug in the script that includes the toolbars.
Fatal error: menuChronoContact::require_once() [function.require]: Failed opening required 'C:\wamp\www\sitename/components/com_chronocontact/plugins/.svn.php' (include_path='.;C:\php5\pear') in C:\wamp\www\sitename\administrator\components\com_chronocontact\toolbar.chronocontact.html.php on line 82


This is caused by the component trying to pick up files associated to Subversion (normally in a directory named .svn).

You need to replace the function MENU_Plugins_2:
Code: Select all
function MENU_Plugins() {
  $directory = JPATH_SITE.'/components/com_chronocontact/plugins/';
  $results = array();
  $handler = opendir($directory);
  while ($file = readdir($handler)) {
    if (!strpos($file, 'svn')) {
      if ($file != '.' &&; $file != '..') {
        $results[] = str_replace('.php','', $file);
      }
    }
    closedir($handler);
    foreach($results as $result){
      require_once(JPATH_SITE.'/components/com_chronocontact/plugins/'.$result.'.php');
      ${$result} = new $result();
      JToolBarHelper::custom($task = 'plugin_'.$result, $icon = 'extensions_f2.png', $iconOver = 'extensions_f2.png', $alt = ${$result}->result_TITLE, $listSelect = true) ;
  }
}
In addition, you need to modify admin.chronocontact.html.php at line 814 as follows:
Code: Select all
while ($file = readdir($handler)) {
  if (!strpos($file, 'svn')) {
    if ($file != '.' && $file != '..')
      $results[] = str_replace('.php','', $file);
    }
  }
petersen
Junior Boarder
 
Posts: 22
Joined: Thu Mar 27, 2008 3:10 pm

Re:Problems when using Subversion and Chronoforms

Postby admin on Tue Apr 15, 2008 3:13 pm

Thanks petersen, We will get this fixed very soon (few days) in the next version!

Best regards

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3282
Joined: Mon Aug 14, 2006 5:29 am

Re:Problems when using Subversion and Chronoforms

Postby petersen on Tue May 13, 2008 9:31 am

Has this been rolled in yet? Still looks like the last version is online.
petersen
Junior Boarder
 
Posts: 22
Joined: Thu Mar 27, 2008 3:10 pm

Re:Problems when using Subversion and Chronoforms

Postby GreyHead on Tue May 13, 2008 10:19 am

Hi Peteresen,

As far as I know Max hasn't yet added this to a release.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3461
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Problems when using Subversion and Chronoforms

Postby admin on Tue May 13, 2008 3:24 pm

Hi petersen, yes, the fix is done here locally but it didnt went online yet, adding some new features and fixing more bugs before it can go online!!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3282
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms Bugs

Who is online

Users browsing this forum: Gencoman and 1 guest