carousel options not saving after update 23/7/2011 at 10:17
Hi,
Thank you for this plugin. I appreciate the work you put into this. I’ve been using it for about a year with no problems, once I figured out how to customize it.
Now, however, after the update to 1.0 (WP3.2.1) I had some issues with the theme. Most of them I was able to fix but now the option to disable autoslide doesn’t “stick”. It keeps on sliding and gets really crazy, going back and forth.
This is the error message I get: (I hope you can help. Thanks in advance.)
YTo1OntzOjY6ImFjdGlvbiI7czoyMToidXBkYXRlU3RhbmRhcmRPcHRpb2 5zIjtzOjc6ImNvbnRlbnQiO3M6MTg4OiJjMmh2ZDE5aGNuSnZkM005ZVdW ekpuTnNhV1JsWDNCdmMzUnpQVEVtWVhWMGIzTnNhV1JsWDNScGJXVTlOak F3TUNaaGRYUnZjMnhwWkdWZmNHOXpkSE05TUNad1lXNWxiRjkzYVdSMGFE MG1jR0Z1Wld4ZmFHVnBaMmgwUFNacGJXZGZkMmxrZEdnOUptbHRaMTlvWl dsbmFIUTlKbVZ1WVdKc1pWOXdZV2RwYm1GMGFXOXVQWGxsY3c9PSI7czox MzoiaW50ZXJuYWxfdHlwZSI7czoxMDoic2VyaWFsaXplZCI7czoxMToiY2 Fyb3VzZWxfaWQiO3M6MToiMCI7czoxMToibXVzdF9iYWNrdXAiO3M6Mzoi eWVzIjt9 (file: update_db.php - 264)
Reply To: carousel options not saving after update 23/7/2011 at 19:13
This bug has been reported, but I haven’t been able to fix it.
Basically, for some reason I don’t know, a variable named $carousel_id gets unset and when WP Carousel tries to save the carousel, it can’t.
As a temporal fix, add this code in update_db.php. Near line 264 you’ll find:
if (!isset($carousel_id))
{
$wp_carousel_error = true;
?>
<div class="error">
<p>
<?php printf(__(‘There was an error, please, report it in the forum and attach this error message:’, ‘wp_carousel’), $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE); ?>
</p>
<p>
<?php printf(‘%s’, base64_encode(serialize($_POST)).’ (file: update_db.php – ‘.__LINE__.’)'); ?>
</p>
</div>
<?php
exit;
}
Replace it with:
if (!isset($carousel_id) && isset($_POST['carousel_id']))
{
$carousel_id = $_POST['carousel_id'];
}
if (!isset($carousel_id))
{
$wp_carousel_error = true;
?>
<div class="error">
<p>
<?php printf(__(‘There was an error, please, report it in the forum and attach this error message:’, ‘wp_carousel’), $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE); ?>
</p>
<p>
<?php printf(‘%s’, base64_encode(serialize($_POST)).’ (file: update_db.php – ‘.__LINE__.’)'); ?>
</p>
</div>
<?php
exit;
}
I think this modification fixed the error the first time it was reported.
I’ll try to fix it in the next release.
Thanks for reporting and using WP Carousel!
Reply To: carousel options not saving after update 24/7/2011 at 18:33
Ok, I’m glad it worked.
I’ll mark this topic as solved.
This topic has been closed to new replies.