Forums

Problems when using Subversion and Chronoforms

petersen 14 Apr, 2008
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:
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:
while ($file = readdir($handler)) {
  if (!strpos($file, 'svn')) {
    if ($file != '.' && $file != '..')
      $results[] = str_replace('.php','', $file);
    }
  }
Max_admin 15 Apr, 2008
Thanks petersen, We will get this fixed very soon (few days) in the next version!

Best regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
petersen 13 May, 2008
Has this been rolled in yet? Still looks like the last version is online.
GreyHead 13 May, 2008
Hi Peteresen,

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

Bob
Max_admin 13 May, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger