Forum
Perch Runway 3 - official app errors
Just upgraded to Perch Runway 3 (which is awesome) and updated all plugins including MailChimp which gives the following errors on the 'Campaigns' page:
Notice: Undefined index: subject_line in [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php on line 171
Notice: Undefined index: subject_line in [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php on line 172
Notice: Undefined index: subject_line in [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php:171) in [redacted]/core/lib/PerchUtil.class.php on line 1383
Warning: Cannot modify header information - headers already sent by (output started at [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php:171) in [redacted]/core/lib/PerchUtil.class.php on line 1384
Warning: Cannot modify header information - headers already sent by (output started at [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php:171) in [redacted]/core/lib/PerchUtil.class.php on line 1385
Warning: Cannot modify header information - headers already sent by (output started at [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php:171) in [redacted]/core/lib/PerchUtil.class.php on line 1391
Warning: Cannot modify header information - headers already sent by (output started at [redacted]/addons/apps/perch_mailchimp/lib/PerchMailChimp_Campaigns.class.php:171) in [redacted]/core/inc/top.php on line 17
Diagnostics report (which shows another error regarding Comments app):
Perch Runway: 3.0
Production mode: Production (100)
Installed apps: content (3.0), assets (3.0), categories (3.0), perch_forms (1.9), perch_gallery (2.8.8), perch_shop_orders (1.1), perch_shop_products (1.1), chirp_seo (1), perch_shop (1.1), perch_comments (1.2.1), perch_members (1.6), perch_mailchimp (3.1)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_categories (11), perch2_category_counts (0), perch2_category_sets (1), perch2_chirp_seo (1), perch2_collection_index (40), perch2_collection_items (8), perch2_collection_revisions (4), perch2_collections (0), perch2_comments (0), perch2_comments_votes (0), perch2_content_index (569), perch2_content_items (215), perch2_content_locks (0), perch2_content_regions (23), perch2_forms (2), perch2_forms_responses (2), perch2_gallery_albums (6), perch2_gallery_image_versions (708), perch2_gallery_images (118), perch2_mailchimp_campaigns (0), perch2_mailchimp_imports (0), perch2_mailchimp_lists (1), perch2_mailchimp_subscribers (69), perch2_mailchimp_subscriptions (71), perch2_mailchimp_webhooks (1), perch2_members (0), perch2_members_forms (0), perch2_members_member_tags (0), perch2_members_sessions (0), perch2_members_tags (0), perch2_menu_items (17), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (7), perch2_page_templates (6), perch2_pages (13), perch2_resource_log (507), perch2_resource_tags (0), perch2_resources (119), perch2_resources_to_tags (0), perch2_settings (40), perch2_shop_addresses (0), perch2_shop_admin_index (64), perch2_shop_brands (8), perch2_shop_cart (1208), perch2_shop_cart_data (3), perch2_shop_cart_items (2), perch2_shop_countries (250), perch2_shop_currencies (152), perch2_shop_customers (0), perch2_shop_emails (1), perch2_shop_index (270), perch2_shop_option_values (0), perch2_shop_options (0), perch2_shop_order_items (0), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (0), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (0), perch2_shop_product_options (0), perch2_shop_product_tags (0), perch2_shop_products (3), perch2_shop_promotions (0), perch2_shop_search (3), perch2_shop_shipping_zone_countries (3), perch2_shop_shipping_zones (2), perch2_shop_shippings (2), perch2_shop_tax_exhibits (0), perch2_shop_tax_group_rates (1), perch2_shop_tax_groups (1), perch2_shop_tax_locations (1), perch2_shop_tax_rates (1), perch2_shop_variants (0), perch2_user_passwords (1), perch2_user_privileges (78), perch2_user_role_privileges (23), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
$apps_list = array(
'perch_members',
'perch_shop',
'perch_forms',
'perch_mailchimp',
'perch_gallery',
'perch_comments',
'chirp_seo'
);
Fatal error: Cannot redeclare scheduled_comments_delete_spam() (previously declared in [redacted]/addons/apps/_perch_comments/scheduled_tasks.php:5) in [redacted]/addons/apps/perch_comments/scheduled_tasks.php on line 29
There's an Untitled Campaign in MailChimp account, Sync is bringing in new subscribers, everything else seems to be working.
Bonus: noticed the 'Learn how to mark up your post here.' link below Forum Thread is 404.
Do you have campaigns with a subject line?
Hi Drew, no. Looks like this was a test campaign that was never fully setup. I've just deleted it and the errors disappeared.
I'll put in some extra tests for that. The previous version would have thrown the same error.
I'd have thought so but I just tried this:
Sync working correctly in both instances. I'm pretty confident this is therefore a Runway 3 only edge case (or perhaps something different in the Mailchimp app between version 3.01 on the live Runway 2 instance or 3.1 on the local Runway 3 instance).
It's otherwise the same code, so that's a puzzle, but at any rate it's fixed for the next release.
Thanks Drew. Just in case I checked if I was running different php versions but alas they are identical too.
Regarding the fatal error in the diagnostics report (last line of my original post), this was because I had underscored the old app folders (which I thought would entirely exclude them from perch) in case I needed to roll-back, but looks like the report doesn't exclude those:
Removed old app folders ad all is good with the report now. Just in case the underscored _perch_mailchimp folder was causing the campaign page issue, I checked again and no, so the checks you've added are legit.
Thanks again.