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.
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:
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);
}
}
Thanks petersen, We will get this fixed very soon (few days) in the next version!
Best regards
Max
Best regards
Max
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
Cheers
Max
This topic is locked and no more replies can be posted.