Welcome screen trap!
-
Hi, just updated from v1.x, and now no matter what I click on, it keeps redirecting me to the groups 2 welcome page. There’s nothing I can do to make it go away, can’t even go to plugins page to disable it! Totally prevented from doing anything π
-
had to edit admin welcome php file in plugin and just remove
if ( get_transient( 'groups_plugin_activated' ) || get_transient( 'groups_plugin_updated_legacy' ) ) { $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX; $doing_cron = defined( 'DOING_CRON' ) && DOING_CRON; // we'll delete the transients in the welcome screen handler if ( !$doing_ajax && !$doing_cron && ( empty( $_GET['page'] ) || $_GET['page'] !== 'groups-welcome' ) && !is_network_admin() && !isset( $_GET['activate-multi'] ) && current_user_can( GROUPS_ACCESS_GROUPS ) && apply_filters( 'groups_welcome_show', true ) ) { wp_safe_redirect( admin_url( 'index.php?page=groups-welcome' ) ); exit; } }I know you can’t remove all of that, but there’s something in there that’s not right that’s causing the trap.
I had exactly the same problem after upgrading to 2.0.1 just now. Thanks for doing the sleuth work, andrewfitz!
If I’m reading the code correctly, that block applies only when there is a record (transient) that you’ve just upgraded or activated the plugin. So deleting the entire block should pose no problems to long-term use (and it’ll get overwritten during the next regular upgrade anyway).
I’ve no idea why the transient isn’t removed, but I don’t have time to comb through the code to find the proper fix; hopefully itthinx will get it sorted out shortly. In the meantime, it works fine on my WP 4.7.2 with just that block deleted.
In case anyone else runs into this and isn’t terribly familiar with the folder structure, here’s where I found that code bit to remove:
website-root/wp-content/plugins/groups/lib/admin/class-groups-admin-welcome.php. I just snipped everything inside the “public static function admin_init() { }” function and left the empty curly braces as a stub function.Same problem here. Worse than Yoast!
Thanks @andrewfitz @matthewm @deaner666 – very sorry for the inconvenience caused. Also thanks for your feedback on solving the issue, I’m trying to track down the cause of this right now to issue an update with this fix.
Would you mind sharing details about your environment, especially other plugins installed?
I’m on WP Engine so I wondered if it was something to do with cacheing.
Caching is what I have in mind, too – I’ll also check with a test site we have on WPEngine
I’m on Siteground. So I have total cache plugin and SG super cache plugin active.
@deaner666 I’ve just checked with the test site we have on WP Engine and after the upgrade I get the welcome screen but it doesn’t stick. Object Caching is enabled there.
@andrewfitz Ok thanks, we don’t have a test site in place there but given that it worked fine with WP Engine’s cache, I might be wrong in thinking it’s related to caching.
Would you mind letting me know what other plugins you have activated? I’ll assume everyone is running WordPress 4.7.2 unless otherwise indicated.
Also, is there anything in debug.log if you had debugging enabled when you ran the upgrade?
Yep. 4.7.2. It’s a WooCommerce site but not using WooCommerce/Groups mash-up plugin.
Full list of plugins:
Akismet
Bitcoin Payments for WooCommerce
Compress JPEG & PNG images
Conversio for WooCommerce
Drip for WooCommerce
Email Marketing by Drip
Follow-Up Emails
Gravity Forms
Groups
Imsanity
Jetpack by WordPress.com
Print 2 Media Core Functionality
Recent Posts Plus
WooCommerce
WooCommerce – Gravity Forms Product Add-Ons
WooCommerce Composite Products
WooCommerce Dynamic Pricing
WooCommerce Google Analytics Integration
WooCommerce Helper
WooCommerce Product Add-ons
WooCommerce Product Bundles
WooCommerce Review for Discount
WooCommerce Stripe Gateway
WooCommerce Table Rate Shipping
WooDojo
WooSidebars
WooSlider
WP Migrate DB Pro
WP Migrate DB Pro Media Files
WP Product Feed Manager
Yoast SEO### WordPress Environment ### WC Version: 2.6.14 Log Directory Writable: β WP Version: 4.7.2 WP Multisite: β WP Memory Limit: 838,861 TB WP Debug Mode: β WP Cron: β Language: en_US ### Server Environment ### Server Info: Apache/2.4.25 (Unix) mod_hive/6.6 OpenSSL/1.0.1e-fips mod_fastcgi/2.4.6 PHP Version: 5.6.99-hhvm PHP Post Max Size: 10 MB PHP Time Limit: 0 PHP Max Input Vars: cURL Version: 7.30.0 OpenSSL/1.0.0 SUHOSIN Installed: β MySQL Version: 5.6.31 Max Upload Size: 100 MB Default Timezone is UTC: β fsockopen/cURL: β SoapClient: β DOMDocument: β GZip: β Multibyte String: β Remote Post: β Remote Get: β WCS_DEBUG: β No Subscriptions Mode: β Live Zapier Integration - Active Feeds: β 1 active Zapier Feed. ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: β woocommerce_api_keys: β woocommerce_attribute_taxonomies: β woocommerce_downloadable_product_permissions: β woocommerce_order_items: β woocommerce_order_itemmeta: β woocommerce_tax_rates: β woocommerce_tax_rate_locations: β woocommerce_shipping_zones: β woocommerce_shipping_zone_locations: β woocommerce_shipping_zone_methods: β woocommerce_payment_tokens: β woocommerce_payment_tokenmeta: β MaxMind GeoIP Database: β ### Active Plugins (49) ### WP REST JMESPath: by β NextScripts: Social Networks Auto-Poster: by NextScripts β 3.7.15 Woocommerce Easy Content Restriction: by SFNdesign Curtis McHale β 1.2.5 bbPress Notify (No-Spam): by Vinny Alves (UseStrict Consulting) β 1.15.4 Groups: by itthinx β 2.0.1 Login Logo: by Mark Jaquith β 0.7 W3 Total Cache: by Frederick Townes β 0.9.5.2 SG Optimizer: by SiteGround β 3.0.5 Safe Redirect Manager: by Taylor Lovett (10up) β 1.7.8 Product Customer List for WooCommerce: by Kokomo β 2.4.1 Groups Restrict Categories: by itthinx β 1.4.0 Groups 404 Redirect: by itthinx β 1.2.4 AffiliateWP: by AffiliateWP LLC β 1.9.5.1 Akismet: by Automattic β 3.2 ARVE Advanced Responsive Video Embedder: by Nicolas Jonas β 8.0.5 BackupBuddy: by iThemes β 7.2.1.0 BAW Login/Logout menu: by Juliobox β 1.3.3 bbPress: by The bbPress Community β 2.5.12 Contact Form 7: by Takayuki Miyoshi β 4.6.1 DesignThemes Core Features Plugin: by DesignThemes β 1.8 Duplicate Post: by Enrico Battocchi β 3.1.2 Email Login: by Beau Lebens β 4.6.4 Enhanced E-commerce for Woocommerce store: by Tatvic β 1.0.19 Groups bbPress: by itthinx β 1.0.0 Groups WooCommerce: by itthinx β 1.10.0 iThemes Security Pro: by iThemes β 3.1.1 Nav Menu Roles: by Kathy Darling β 1.8.6 P3 (Plugin Performance Profiler): by GoDaddy.com β 1.5.3.9 Plugin Organizer: by Jeff Sterup β 7.3 Recent Posts by Category Widget: by Ross Cornell β 1.3 Sensei: by WooThemes β 1.9.9 Slider Revolution: by ThemePunch β 5.2.6 The Events Calendar: by Modern Tribe Inc. β 4.3 The Events Calendar PRO: by Modern Tribe Inc. β 4.3 Ultimate Addons for Visual Composer: by Brainstorm Force β 3.16.7 Vimeography: by Dave Kiss β 1.4.1 Vimeography Pro: by Dave Kiss β 1.1.1 Vimeography Theme: Playlister: by Dave Kiss β 1.0.2 WooChimp: by RightPress β 2.1 WooCommerce: by WooThemes β 2.6.14 WooCommerce - Autocomplete Orders: by Serious Plugins β 1.1.4 WooCommerce Filter Orders by Product: by Md. Kowsar Hossain β 2.0.6 WooCommerce Name Your Price: by Kathy Darling β 2.4.2 WooCommerce Stripe Gateway: by WooCommerce β 3.0.7 WooCommerce Subscriptions: by Prospress Inc. β 2.1.2 WooCommerce Zapier Integration: by OM4 β 1.6.3 WPBakery Visual Composer: by Michael M - WPBakery.com β 4.12 wpMandrill: by Mandrill β 1.33 Yoast SEO: by Team Yoast β 4.2.1 ### Settings ### Force SSL: β Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 ### API ### API Enabled: β ### WC Pages ### Shop Base: #152 - /shop/ Cart: #153 - /cart/ Checkout: #154 - /checkout/ My Account: #155 - /my-account/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) ### Theme ### Name: LMS Version: 4.3 Author URL: http://themeforest.net/user/designthemes Child Theme: β β If you're modifying WooCommerce on a parent theme you didn't build personally then we recommend using a child theme. See: How to create a child theme WooCommerce Support: β ### Templates ### Overrides: lms/woocommerce/cart/cross-sells.php-
This reply was modified 9 years, 3 months ago by
andrewfitz.
Many thanks for the details and feedback!
To solve this issue the Welcome screen is now dismissible, with the usual little cross on top right. The new version 2.0.2 has just been released with this fix.
I hope this will help those with this issue. The actual cause of the Welcome screen sticking around hasn’t been discovered yet, so if anyone wants to provide further feedback please feel free to post here.
-
This reply was modified 9 years, 3 months ago by
The topic ‘Welcome screen trap!’ is closed to new replies.