Select Options missing after dms update
-
website: http://www.eiki.com
DMS 0.1 displays options correctly
http://www.eiki.com/?attachment_id=25584Upgrading DMS to 0.3.1 does not display options correctly
http://www.eiki.com/?attachment_id=25585I removed/deleted DMS 0.1 and installed DMS 0.3.1
DMS 0.3.1 will not save options in admin backend
I removed/deleted DMS 0.3.1 and installed DMS 0.1
Options saved and display correctly.I do not know where the problem might be.
Suggestions would be appreciated.Thanks,
John
-
Hello jfullerton,
Thank you for dropping a line. I will have to look deeper in the problem and do some checks. I had a look at your site, are you using the shortcode for displaying the select option? And what is the version of your wordpress, as I’ve not tested it on 4.0 yet.
I will write you as soon as figure what the problem might be.
Regards,
AlHi Al,
Here is information for consideration:
Website: http://www.eiki.com
Currently running WordPress 4.0
Upgraded from WordPress 3.92The issue with 0.3.1 was also present with WordPress 3.92
Currently, reverted back to DMS ver. 0.1
Current WordPress version – 4.0
Server operating system – Windows NT
Current version of PHP – PHP 5.4.14
Current version of MySQL – MySQL 5.6.17
Web server software – Microsoft-IIS/7.5
Using – <?php echo do_shortcode(‘[dms]’); ?> in the theme’s header.php
Theme – RT-Theme 17
Using the free version of the WooCommerce WordPress plugin – Version 2.2.4
Note: have just recently upgraded this plugin. Problems with DMS 0.3.1 present before and after update.
Mentioning the WooCommerce plugin as <?php echo do_shortcode(‘[dms]’); ?> has been added here (again though, DMS ver. 0.1 appears to work ok).E.g.
<?php if(!get_option(THEMESLUG.'_hide_woo_cart') && class_exists( 'Woocommerce' )):?> <?php global $woocommerce; ?> <div id="rt_woo_links"> <ul> <!-- <li class="icon_cart_contents"><a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'rt_theme'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'rt_theme'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a></li> --> <?php if ( is_user_logged_in() ) { ?> <!-- <li class="user"><a href="<?php echo get_permalink( wpml_page_id(get_option('woocommerce_myaccount_page_id')) ); ?>" title="<?php _e('My Account','rt_theme'); ?>"><?php _e('My Account','rt_theme'); ?></a></li> --> <li class="loggeduser"><?php global $current_user; get_currentuserinfo(); echo 'Welcome back ' . $current_user->first_name; ?></li> <li class="logout"><a href="<?php echo wp_logout_url(home_url('/')); ?>" title="<?php _e('Logout','rt_theme'); ?>"><?php _e('Logout','rt_theme'); ?></a></li> <?php } else { ?> <li class="login"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login','rt_theme'); ?>"><?php _e('Login','rt_theme'); ?></a></li> <?php } ?> <li class="region"><?php echo do_shortcode('[dms]'); ?></li> </ul> </div> <?php $theWPML = "true";?> <?php endif;?>In DMS backend
Added new field (undefined, see image)
http://www.eiki.com/?p=25723In DMS backend
Clicked save button (msg, Don’t bug with code, please!)(see image)
http://www.eiki.com/?p=25721Regards,
JohnHello John,
Thanks for the detailed answer.
I have had a deeper look this morning in the code and found where was the problem. And I found where I have missed to do check the option “Disable” is active in case of updating from 0.1 to higher and updating the DB with this info. Now fixed it. I have released 0.3.3 version so updating from 0.1 to this one should do the trick 🙂The second problem with adding new fields seems odd to me. Please tell me if it still persists. It might be some javascript conflict with my scripts bit tell me if it still exists.
And thanks for reporting and spending the time of being so detailed : )
Ragards,
AlHi Al,
The upgrade to 0.3.3 installed successfully (no errors reported), and the current options work correctly.
A couple of problems remain however:
- In the backend: ((Screen capture)
- added field with “undefined”
- clicking “Save” button generated message “Don’t bug with the code, please!”
- On the front end: ((Screen capture)
- New “test” option has not been added
- DMS option_value in the database returns:
a:6:{s:17:"Germany & Austria";s:19:"http://www.eiki.de/";s:14:"Eastern Europe";s:19:"http://www.eiki.cz/";s:5:"China";s:26:"http://www.eiki-china.com/";s:14:"Southeast Asia";s:22:"http://www.eiki.my/v2/";s:5:"Japan";s:19:"http://www.eiki.jp/";s:11:"EIKI CANADA";s:18:"http://www.eiki.ca";}
Is there anyway the s:#: can be figured out so that I can manually add a select option, if necessary, until the javascript is compatible? At the moment, I don’t need to add any more options, but it might be a handy bit of info to understand.
Regards,
JohnHi John,
Update the DB with the following code:
a:7:{s:17:"Germany & Austria";s:19:"http://www.eiki.de/";s:14:"Eastern Europe";s:19:"http://www.eiki.cz/";s:5:"China";s:26:"http://www.eiki-china.com/";s:14:"Southeast Asia";s:22:"http://www.eiki.my/v2/";s:5:"Japan";s:19:"http://www.eiki.jp/";s:11:"EIKI CANADA";s:18:"http://www.eiki.ca";s:x"";s:y""}where x is the number of the sting you will put in the first quotes and the y is the same but for the second quotes. For example you should have something like:
s:4"test";s:20"http://ww.wp.xz.cn"But get to the problem. You don’t have anything in the front end due to no recored made in the admin side, which is due to the error that appears. You didn’t got this issue in version 0.1 (right?) so the problem might be in the changes I’ve done regarding the js files since v 0.2. The difference is that i have forced the loading of the js files in the footer as some times it was loaded before the jQuery library was loaded (and I use jQuery).
So can you open the admin side (for this case I would ask you to use Chrome) and hit F12 for Developers tools. Then try again adding a new field and after the error shows up check in the Developers tools the console tab. There should be some error dropped about the js file or function – can you pass me this one : )Regards,
AlHi Al,
I apologize…
When I followed your instructions re Chrome, I did not encounter any errors and a new test field was added successfully.
I returned to IE 11 and cleared the cache then added a new field, and successfully saved the new option.
All the issues I was having with the upgrade from 0.1 to 0.3.1 have now been resolved with the upgrade to 0.3.3.
Thank you for your fast and excellent support. It has been a pleasure.
Best regards,
JohnThat’s great news John : )
Happy to help.
If you have any other issues feel free to report : )
Regards,
Al
The topic ‘Select Options missing after dms update’ is closed to new replies.