mailchimp / mc-woocommerce

MailChimp for Woocommerce Integration. Syncs all data (subscriber, customers, orders, products) and enables marketing automation with email campaigns, automations, ads, postcards and more.
https://wordpress.org/plugins/mailchimp-for-woocommerce/
GNU General Public License v2.0
82 stars 66 forks source link

Conflicts with Swift framework #63

Closed lduh closed 8 years ago

lduh commented 8 years ago

from https://wordpress.org/support/topic/fatal-error-on-activation-108/page/2/

Fatal error on activation: Parse error: syntax error, unexpected ‘[‘ in /home/.sites/435/site1386/web/new/wp-content/plugins/mailchimp-for-woocommerce/includes/slack/Contracts/Http/Interactor.php on line 13

WordPress Environment

Home URL: https://www.artseries.com.br Site URL: https://www.artseries.com.br WC Version: 2.6.4 Log Directory Writable: ✔ WP Version: 4.6.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: pt_BR

Server Environment

Server Info: Apache PHP Version: 5.6.24 PHP Post Max Size: 80 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.19.7 NSS/3.21 Basic ECC

SUHOSIN Installed: – MySQL Version: 5.6.31 Max Upload Size: 80 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Post Remoto: ✔ Remote Get: ✔

Database

WC Database Version: 2.6.4 : 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)

404 Redirection: por flippingwp.com – 1.8 Akismet: por Automattic – 3.2 Atelier Demo Content: por Swift Ideas – 2.1 Autoptimize: por Frank Goossens (futtta) – 2.1.0 Bling WooCommerce: por Bling – 1.0.2 Breadcrumb NavXT: por John Havlik – 5.5.2 Formulário de contato 7: por Takayuki Miyoshi – 4.5.1 Easy WP SMTP: por wpecommerce – 1.2.3 Enhanced E-commerce for Woocommerce store: por Tatvic – 1.0.18 Go Pricing - WordPress Responsive Pricing Tables: por Granth – 3.3.3 Google Analytics by MonsterInsights: por MonsterInsights – 5.5.3 Google Tag Manager: por George Stephanis – 1.0.1 Header and Footer Scripts: por Anand Kumar – 1.3.4 Image Cleanup: por Robbert Langezaal – 1.9.1 Instagram Feed Pro Personal: por Smash Balloon – 2.3 WooCommerce Quickview: por Iconic – 3.4.2 Media File Renamer: por Jordy Meow – 2.7.8 oAuth Twitter Feed for Developers: por Storm Consultancy (Liam Gladdy) – 2.2.1 PixelYourSite PRO: por PixelYourSite – 4.0.3 Popup Maker: por WP Popup Maker – 1.4.20 Regenerate Thumbnails: por Alex Mills (Viper007Bond) – 2.2.6 Slider Revolution: por ThemePunch – 5.2.6 SEO Friendly Images: por Vladimir Prelovac – 3.0.5 Smart Manager: por Store Apps – 3.9.18 Swift Framework: por Swift Ideas – 2.5.16 WooCommerce Dynamic Pricing & Discounts: por RightPress – 1.0.18 WooCommerce Product Feed: por WebAppick – 1.5.30 Woo Mercado Pago Module: por Mercado Pago – 2.1.3 WooCommerce Conversion Tracking: por Tareq Hasan – 1.2.1 WooCommerce Correios: por Claudio Sanches – 3.1.3 WooCommerce Print Invoice & Delivery Note: por Triggvy Gunderson – 4.1.5 WooCommerce Extra Checkout Fields for Brazil: por Claudio Sanches – 3.4.4 Follow-Up Emails: por WooThemes – 4.4.16 WooCommerce AdWords Conversion Tracking: por Wolf+Bär GmbH – 1.3.5 WooCommerce AdWords Dynamic Remarketing: por Wolf + Bär GmbH – 1.3.3 WooCommerce MailChimp: por Saint Systems – 2.0.19 WooCommerce MercadoPago: por Claudio Sanches – 2.0.6 WooCommerce Moip: por Claudio Sanches – 2.2.10 WooCommerce Parcelas: por Filipe Seabra – 1.2.8.3 WooCommerce Product Stock Alert: por Dualcube Arim Ghosh Aveek Kr. Saha – 1.3.0

WooCommerce Sequential Order Numbers: por SkyVerge – 1.7.0 WooCommerce: por WooThemes – 2.6.4 WooCommerce Helper: por WooCommerce – 1.7.1 Wordfence Security: por Wordfence – 6.2.2 Yoast SEO: por Equipe da Yoast – 3.7.0 YITH WooCommerce Wishlist: por YITHEMES – 2.0.16 YITH WooCommerce Zoom Magnifier: por YITHEMES – 1.2.21 Zopim Widget: por Zopim – 1.4.3

Settings

Force SSL: ✔ Currency: BRL (R$) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2

API

API Enabled: ✔

WC Pages

Base da loja: #4 - /shop/ Carrinho: #5 - /cart/ Finalizar compra: #6 - /cart/checkout/ Minha conta: #7 - /minha-conta/

Taxonomies

Product Types: external (external) grouped (grouped) simple (simple) variable (variable)

Theme

Name: Atelier Child Theme Version: 1.0 Author URL: http://www.swiftideas.com Child Theme: ✔ Parent Theme Name: Atelier Parent Theme Version: 2.4.13 Parent Theme Author URL: http://www.swiftideas.com WooCommerce Support: ✔

Templates

Overrides: atelier/woocommerce/archive-product.php atelier/woocommerce/cart/cart-totals.php atelier/woocommerce/cart/cart.php atelier/woocommerce/checkout/form-checkout.php atelier/woocommerce/checkout/thankyou.php atelier/woocommerce/content-product.php atelier/woocommerce/content-product_cat.php atelier/woocommerce/content-single-product.php atelier/woocommerce/global/quantity-input.php atelier/woocommerce/loop/add-to-cart.php atelier/woocommerce/loop/loop-end.php atelier/woocommerce/loop/loop-start.php atelier/woocommerce/loop/pagination.php atelier/woocommerce/loop/result-count.php atelier/woocommerce/myaccount/form-login.php atelier/woocommerce/single-product/add-to-cart/external.php atelier/woocommerce/single-product/add-to-cart/grouped.php atelier/woocommerce/single-product/add-to-cart/simple.php atelier/woocommerce/single-product/add-to-cart/variable.php atelier/woocommerce/single-product/product-image.php atelier/woocommerce/single-product/product-thumbnails.php atelier/woocommerce/single-product/related.php atelier/woocommerce/single-product/review.php atelier/woocommerce/single-product/tabs/additional-information.php atelier/woocommerce/single-product/tabs/description.php atelier/woocommerce/single-product/tabs/tabs.php atelier/woocommerce/single-product/up-sells.php atelier/woocommerce/single-product-reviews.php atelier/woocommerce/single-product.php

ryanhungate commented 8 years ago

@lduh this one just needs to upgrade to the newest version. For the most part, this fatal error was from php array references from [] to array() and have been downshifted to support the older php versions as of last week.

lduh commented 8 years ago

@ryanhungate he filed after the namespace fix.

ryanhungate commented 8 years ago

@lduh so chances are he is not using the latest release... we're going to need to verify that he's using the 1.0.3 version if we can.

ryanhungate commented 8 years ago

@lduh have we verified what version he's on?

lduh commented 8 years ago

I'm fairly certain he was on 1.0.3. I just tried installing 1.0.5 on mouthfeels with swift+atelier child, and it broke my plugin page(https://cl.ly/0k0c023i3t3z)

logs show: [Mon Oct 24 13:51:27.887679 2016] [:error] [pid 12555] [client 199.33.145.48:15179] PHP Fatal error: Class name must be a valid object or a string in /var/www/mouthfeels.com/public_html/wordpress/wp-content/plugins/mailchimp-for-woocommerce/mailchimp-woocommerce.php on line 198, referer: http://mouthfeels.com/wordpress/wp-login.php

ryanhungate commented 8 years ago

@lduh so this had to do with the auto updater we're using... and it seems as if the theme is using this as well - but not autoloading our 'github' version, which means that it's possible other themes would be doing the same thing.

The way I fixed the issue was to make sure that the github updater class exists before loading it up. This means if there is that conflict, our updater won't work, but we may not even need this thing moving forward with the way our SVN from wordpress.org is updating versions.