mooshmedia
Forum Replies Created
-
So what happens if the error message is NOT in a coloured box?
Also my error is not surrounded by any boarder at all
There are a lot of things wrong with this plug in recently. All of a sudden Form Lightbox plugin doesn’t work with it either. Error and issues everywhere.
Forum: Plugins
In reply to: [cformsII] PHP warning in "lib_nonajax.php" on line 478I fixed mine by going to the file “lib_nonajax.php” making a duplicate of it and then deleting the following from the original copy of that file… Until I have heard back from the developers on this error, I am happy with my fix.
### form w/ files, within session or single form
if ( $doAttach && $ongoingSession!=’0′ && is_array($file) ){
foreach( $file[tmp_name] as $fn ){
cforms2_base64($fn, $doAttach);
### debug
cforms2_dbg( “File = $fn, attach = $doAttach” );
}
}### end of session w/ files
if( $ongoingSession==’0′ && is_array($_SESSION[‘cforms’][‘upload’]) ){
foreach ( array_keys($_SESSION[‘cforms’][‘upload’]) as $n ) {
foreach ( array_keys($_SESSION[‘cforms’][‘upload’][$n][‘files’]) as $m ){
cforms2_base64(str_replace(‘xx’,$subID,$_SESSION[‘cforms’][‘upload’][$n][‘files’][$m]), $_SESSION[‘cforms’][‘upload’][$n][‘doAttach’] );
### debug
cforms2_dbg( “(end of session) File = “.$_SESSION[‘cforms’][‘upload’][$n][‘files’][$m].”, attach = “.$_SESSION[‘cforms’][‘upload’][$n][‘doAttach’] );
}
}
}Forum: Plugins
In reply to: [cformsII] Warning: Invalid argument supplied for foreachWell I fixed it by taking out the following code…
### form w/ files, within session or single form
if ( $doAttach && $ongoingSession!=’0′ && is_array($file) ){
foreach( $file[tmp_name] as $fn ){
cforms2_base64($fn, $doAttach);
### debug
cforms2_dbg( “File = $fn, attach = $doAttach” );
}
}