Plugin Author
cpres
(@cpres)
Woah, just saw this sorry for the delay!
That’s an interesting error you got there. What is the slide title that you’re using? Perhaps that’s what’s breaking it?
Any new info you can give after you’ve had some time with it?
Thanks for coming back to me – I like the slide display, so would hope to use it on our club site
Still same issue – original slide title was imported as dsc0002.jpg, I tried to change the title to “Southport 24Hr race” (without quotes of course!)
I have put a snapshot of the admin page on my own website and give you a link http://cp-software.co.uk/budworth/satellite_slide_title_error.png
If you need more info, let me know…
Thanks
Chris
P.S.
I meanwhile attempted to work out the code and applied a “patch”, hence the snapshot shows a later line number.
I really don’t want to hack core files, but leave it to you who understands what they are doing.
I am pretty sure the issue is that when the form is submitted it’s seeing an array, not a string, and this caused the validate function to trip over.
if it helps at all, my work-patch is here:
function validate($data = null) {
$this -> errors = array();
if (!empty($data)) {
$data = (empty($data[$this -> model])) ? $data : $data[$this -> model];
foreach ($data as $dkey => $dval) {
// addition: if a form is posted, $data is array[2]
if ( is_array($dval) ) {
foreach ($dval as $akey => $aval) {
$akey = stripslashes($aval);
}
extract($dval, EXTR_SKIP);
}else
// end addition
$this -> data -> {$dkey} = stripslashes($dval);
}
Plugin Author
cpres
(@cpres)
You, my friend chrisHe, rock. That’s exactly the fix that’s needed 🙂 Thanks!
@cpres Hi, thanks for that! Not 100% sure but I think same issue occurs in gallery.php as well as slide.php (function Validate() looks v similar!
Cheers