Abland
Forum Replies Created
-
@tonyzeoli – I’m not familiar with the plugin build. I just posted because my site crashed and I fixed it by renaming the filenames in the require statements. I just shared it as a temp fix for anyone’s site experiencing the same until the plugin itself gets corrected, and in case it helped you figure out the fix.
I think the WordPress repository had an issue to deliver those files in the includes folder the way they did. Maybe reissue the plugin with the files you know are correct using a small version number increase like 2.2.6.1.
@tonyzeoli – and I just downloaded the update version 2,2,6 and the files in the include folder are also named as above.
- This reply was modified 5 years, 7 months ago by Abland.
I just checked again to confirm the naming of those files.
When I updated the site it crashed and the files in the include folder were named:
/includes/post_types.php
/includes/master_schedule.php
/includes/shortcodes.php
/includes/widget_djcomingup.php
/includes/widget_djonair.php
/includes/widget_nowplaying.php
/includes/support_functions.phpThat’s why renaming them in radio-station.php to the above fixed it.
Hey, All, @tonyzeoli
In radio-station/radio-station.php there’s spelling issues of the file names line 57 to 63
Currently
require RADIO_STATION_DIR . '/includes/post-types.php'; require RADIO_STATION_DIR . '/includes/master-schedule.php'; require RADIO_STATION_DIR . '/includes/shortcodes.php'; require RADIO_STATION_DIR . '/includes/class-dj-upcoming-widget.php'; require RADIO_STATION_DIR . '/includes/class-dj-widget.php'; require RADIO_STATION_DIR . '/includes/class-playlist-widget.php'; require RADIO_STATION_DIR . '/includes/support-functions.php';
Needs to be:
require RADIO_STATION_DIR . '/includes/post_types.php'; require RADIO_STATION_DIR . '/includes/master_schedule.php'; require RADIO_STATION_DIR . '/includes/shortcodes.php'; require RADIO_STATION_DIR . '/includes/widget_djcomingup.php'; require RADIO_STATION_DIR . '/includes/widget_djonair.php'; require RADIO_STATION_DIR . '/includes/widget_nowplaying.php'; require RADIO_STATION_DIR . '/includes/support_functions.php';
- This reply was modified 5 years, 7 months ago by Abland.
Hi @wfdave
Here’s some from one site. Some urls are repeated in the actual scan:
https://www.google.com/recaptcha/api.js
https://www.google.com/maps/embed/v1/place
https://www.google.com/intl/
https://www.google.com/adsense/new/myads/auto-ads/
https://www.google.com/support/webmasters/bin/answer.pyForum: Plugins
In reply to: [WooCommerce] WooCommerce Blocks Super Admin PermissionsThank you, Vladimir, (@shinephp)
That code snippet into the theme functions.php should do the trick quite nicely. I appreciate the time and interest you’ve put into this.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Blocks Super Admin PermissionsThank you, Vladimir (@shinephp)
Removing the shop_manager condition fixed the drop down issue. In the same file, includes/wc-user-functions.php just below the code you posted there is this code:
function wc_modify_map_meta_cap( $caps, $cap, $user_id, $args ) { switch ( $cap ) { case 'edit_user': case 'remove_user': case 'promote_user': case 'delete_user': if ( ! isset( $args[0] ) || $args[0] === $user_id ) { break; } else { if ( user_can( $args[0], 'administrator' ) && ! current_user_can( 'administrator' ) ) { $caps[] = 'do_not_allow'; } // Shop managers can only edit customer info. if ( current_user_can( 'shop_manager' ) ) { $userdata = get_userdata( $args[0] ); $shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) ); if ( property_exists( $userdata, 'roles' ) && ! empty( $userdata->roles ) && ! array_intersect( $userdata->roles, $shop_manager_editable_roles ) ) { $caps[] = 'do_not_allow'; } } } break; } return $caps; } add_filter( 'map_meta_cap', 'wc_modify_map_meta_cap', 10, 4 );
Removing the shop_manager conditional allows Super Admin to edit users again also.
I agree – not a friendly behavior … hopefully they fix this quickly
Forum: Plugins
In reply to: [WC Fields Factory] Bug since latest updatePHP Version 7.1.6
I’ll check out the latest release shortly – thanks!
Forum: Plugins
In reply to: [WC Fields Factory] Bug since latest updateSame issue here. Previous versions are available here:
https://www.ads-software.com/plugins/wc-fields-factory/advanced/
Scroll to the bottom of the page.
Regards
I haven’t experienced this with other plugins, but this one yes.
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Can’t use coupons and this plugin together.Just to chime in – my issue happened on two sites using a Genesis child theme which I built in Dynamik. However it still works with the temp fix I posted.
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Coupon codes not working in cartHi, vinorum,
What I did was in the plugin folder I edited the following file:
/lib/class.yith-woocommerce-gift-cards.phpLine 586 I added an inline style:
<div class="<?php echo apply_filters( 'yith_ywgc_cart_discount_classes', "coupon" ); ?>" style="margin-right: 10px;">
That spaced them out nicely for my use but you could probably do a display: block; clear: both; or similar to get them one on top of the other.
Because of the labels being a bit confusing to me on first glance I also edited those.
Same location as above but following Line 586:
<label for="discount_code"><?php echo apply_filters( 'yith_ywgc_cart_discount_label', __( "Gift Card: ", 'yith-woocommerce-gift-cards' ) ); ?></label> <input type="text" name="discount_code" class="input-text" id="discount_code" value="" placeholder="<?php echo apply_filters( 'yith_ywgc_cart_discount_placeholder', __( "Gift Card code", 'yith-woocommerce-gift-cards' ) ); ?>"> <input type="submit" class="button" name="apply_coupon" value="<?php echo apply_filters( 'yith_ywgc_cart_discount_submit_text', __( "Apply discount", 'yith-woocommerce-gift-cards' ) ); ?>">
You can see where I used “Gift Card” in two spots so it’s different enough from “Coupon”.
- This reply was modified 8 years, 6 months ago by Abland. Reason: format way off
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Can’t use coupons and this plugin together.Hi, Chris,
That bit of css just hides the repeating form fields at the top – the gift card and the coupon fields both remain below the cart page content. I use both, too ??
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Coupon codes not working in cartAn added note to my little fix hack – it produces repeating coupon fields above the message region so a little css deals with that. Like I said, it is a hack but YITH must be working on a fix so it is something for the meantime ??
.woocommerce-cart .woocommerce .coupon { display: none; }
- This reply was modified 8 years, 6 months ago by Abland. Reason: punctuation caused unwanted code field