Hi Bob,
Thanks for your reply.
Yes I have the newest Joomla 3.4.4 on my sites.
Chronoforms is updated since long also.
I do have some custom code:
A Load JS on the Events On Load looks like this:
window.addEvent('domready', function() {
$$('a.multi-upload-add-attachment').each(function(el) {
el.innerHTML = 'Bifoga bild';
el.addClass('fvo-button');
});
});
And also a Custom code Zip images:
<?php
$mainframe =& JFactory::getApplication();
jimport('joomla.filesystem.file');
// check if there are any files to zip
if ( count($form->files) < 1 ) {
return;
}
$files = array();
// loop through the files and unpack any arrays from the widget
foreach ( $form->files as $k => $f ) {
if ( is_array($f) && !isset($f['name']) ) {
foreach ($f as $kk => $ff ) {
$files[$k.'_'.$kk] = $ff;
}
} else {
$files[$k] = $f;
}
}
$first_file = true;
foreach ( $files as $k => $f ) {
if ( !JFile::exists($f['path']) ) {
// check if the file exists
continue;
}
if ( $first_file ) {
// if it's the first file create the archive
$zip_path = JFile::stripExt($f['path']).'.zip';
$zip = new ZipArchive;
$result = $zip->open($zip_path, ZipArchive::CREATE);
if ( $result !== true ) {
// unable to open ZipArchive
return;
}
// create a new $form->files entry
$form->files['upload_zip'] = array(
'name' => $f['name'],
'original_name' => '',
'path' => $zip_path,
'size' => '',
'link' => str_replace(JPATH_SITE.DS, JURI::root(), $zip_path)
);
$first_file = false;
}
// add the file to the archive
$zip->addFile($f['path'], $f['name']);
// uncomment the next line to delete the original file
//JFile::delete($f['path']);
}
$zip->close();
// update the size now the archive is complete
$form->files['upload_zip']['size'] = filesize($zip_path);
?>
Error reporting is set to None.
I dont find any errors like =& JFactory...
My host tells me this when I ask about their suggestion to downgrade to PHP v 5.2 (which to me sound no good at all:
If the application installed on your website needs safe_mode option to turn ON, then you will need to use PHP 5.2 version only. Because this option is compatible with PHP 5.2.
If you require Safe_mode option enabled for your website, then you cannot use PHP 5.3 or PHP 5.4
So I feel a bit stuck on square one...
Micke