Variations are not showing, PHP Deprecated: options.php argument
-
Just installed WPC variations 2.1.1.
PHP 7.3 WordPress 5.4.1Variations are not showing.
In debug log got:
PHP Deprecated: options.php argument does not exist since 2.7.0_woovr_activ
… and more 8 lines with different arguments-
This topic was modified 5 years, 12 months ago by
mulli.bahr.
-
This topic was modified 5 years, 12 months ago by
-
Thanks for reporting this issue, @mullibahr .
Can you please provide some screenshots of errors on your site? It’s best if you can give us a link to your published variable product with Radio Button turned on so that we can observe the error directly on your site.
I checked on our test site and version 2.1.1 was still working fine. You can check it here on our live demo https://demo.wpclever.net/woovr/product/hoodie/.
After receiving your information, we will check and keep you posted about this later on.
Best regards.
-
This reply was modified 5 years, 12 months ago by
WPClever.
I am testing the plugin on a Hebrew site.
On admin panel, whenevr I save the options on thesettingtab.
I get the following in my debug.log (showing only 2 lines):[26-May-2020 17:05:55 UTC] PHP Deprecated: options.php נקרא באמצעות ארגומנט שכבר <strong>לא קיים</strong> מגרסה 2.7.0! ההגדרה <code>_woovr_show_description</code> איננה קיימת. הגדרות לא רשומות הוצאו משימוש. ראו https://developer.wordpress.org/plugins/settings/settings-api/ in /home/lagunamulli/public_html/wp-includes/functions.php on line 4997 [26-May-2020 17:05:55 UTC] PHP Deprecated: options.php נקרא באמצעות ארגומנט שכבר <strong>לא קיים</strong> מגרסה 2.7.0! ההגדרה <code>_woovr_show_availability</code> איננה קיימת. הגדרות לא רשומות הוצאו משימוש. ראו https://developer.wordpress.org/plugins/settings/settings-api/ in /home/lagunamulli/public_html/wp-includes/functions.php on line 4997Translation: options.php is called with an argumen that does not exists since 2.7.0.
Definitions not listed are not in use (not sure about translation of last 3 words). see https://developer.wordpress.org/plugins/settings/settings-api/ in <my-path>/wp-includes/functions.php line 4997
I have coppied only 2 lines from debug.log, for readability. The complete list is for:<code>_woovr_active</code> <code>_woovr_hide_unpurchasable</code> <code>_woovr_selector</code> <code>_woovr_variation_name</code> <code>_woovr_show_clear</code> <code>_woovr_show_image</code> <code>_woovr_show_price</code> <code>_woovr_show_description</code> <code>_woovr_show_availability</code>Hope that helps.
WPC plugin that I am using:
<?php /** * Plugin Name: WPC Variations Radio Buttons for WooCommerce * Plugin URI: https://wpclever.net/ * Description: WPC Variations Radio Buttons will replaces dropdown selects by radio buttons for the buyer more easier in selecting the variations. * Version: 2.1.1 * Author: WPClever.net * Author URI: https://wpclever.net * Text Domain: wpc-variations-radio-buttons * Domain Path: /languages/ * Requires at least: 4.0 * Tested up to: 5.4.1 * WC requires at least: 3.0 * WC tested up to: 4.1.0 */I guess issue is related to the following lines:
(action=options.php is on line 137 in the code)<div class="wpclever_settings_page_content"> <?php if ( $active_tab === 'settings' ) { $woovr_active = get_option( '_woovr_active', 'yes' ); $woovr_hide_unpurchasable = get_option( '_woovr_hide_unpurchasable', 'no' ); $woovr_selector = get_option( '_woovr_selector', 'default' ); $woovr_variation_name = get_option( '_woovr_variation_name', 'default' ); $woovr_show_clear = get_option( '_woovr_show_clear', 'yes' ); $woovr_show_image = get_option( '_woovr_show_image', 'yes' ); $woovr_show_price = get_option( '_woovr_show_price', 'yes' ); $woovr_show_availability = get_option( '_woovr_show_availability', 'yes' ); $woovr_show_description = get_option( '_woovr_show_description', 'yes' ); ?> <form method="post" action="options.php"> <?php wp_nonce_field( 'update-options' ) ?> <table class="form-table">According to the WordPress codex, I suspect it should be something like:
<form method="POST" action="options.php"> <?php settings_fields( 'my-page' ); //pass slug name of page, also referred //to in Settings API as option group name do_settings_sections( 'my-page' ); //pass slug name of page submit_button(); ?> </form>-
This reply was modified 5 years, 11 months ago by
mulli.bahr.
-
This reply was modified 5 years, 11 months ago by
mulli.bahr.
-
This reply was modified 5 years, 11 months ago by
mulli.bahr.
-
This reply was modified 5 years, 11 months ago by
mulli.bahr.
-
This reply was modified 5 years, 11 months ago by
mulli.bahr.
-
This reply was modified 5 years, 12 months ago by
The topic ‘Variations are not showing, PHP Deprecated: options.php argument’ is closed to new replies.