• Resolved Ward Graham

    (@eagrayhamgmailcom)


    error logged every page hit in ssl_error_log: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/shift8-cdn/inc/shift8_cdn_rewrite.class.php on line 49

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shift8

    (@shift8)

    Hello!

    Thank you for providing this. Are you able to provide the debug info from the plugin and paste it here?

    To do that :

    1. Go to WP Admin > Shift8 > CDN Settings
    2. Click the “Debug Info” tab
    3. Copy the debug info displayed and paste here

    Thank you!

    Thread Starter Ward Graham

    (@eagrayhamgmailcom)

    not all plugins are active however show active below

    Shift8 CDN Debug Info
    WordPress Version: 5.3.2
    Current WordPress Theme: Atahualpa version 3.7.24
    Theme Author: BytesForAll – https://forum.bytesforall.com/
    Theme URI: https://wordpress.bytesforall.com/
    PHP Version: 7.2.24
    Active Plugins:

    404page – your smart custom 404 error page (11.2.1)
    Advanced noCaptcha & invisible Captcha (5.6)
    AfterShip – WooCommerce Tracking (1.9.13)
    Ajax add to cart for WooCommerce (1.1.4)
    Akismet Anti-Spam (4.1.3)
    AMP (1.4.2)
    Arconix FAQ (1.9.1)
    Async JavaScript (2.19.07.14)
    Autoptimize (2.6.1)
    Blog2Social: Social Media Auto Post & Scheduler (6.0.0)
    Classic Editor (1.5)
    Cloudflare (3.4.1)
    Code Snippets (2.13.3)
    Coinbase Commerce (1.1.4)
    Conditional Payments for WooCommerce (2.1.4)
    Contact Form 7 (5.1.6)
    Cryptocurrency Ticker (1.5)
    Customer Reviews for WooCommerce (3.93)
    Display Posts (3.0.2)
    Ditty News Ticker (2.2.12)
    Duplicate Page and Post (2.5.6)
    Email Encoder – Protect Email Addresses (2.0.5)
    Email Subscribers & Newsletters (4.3.10)
    Enhanced E-commerce for Woocommerce store (2.3.0)
    Flamingo (2.1.1)
    Glue for Yoast SEO & AMP (0.5)
    Google Analytics Dashboard for WP (GADWP) (5.3.10)
    Google Authenticator (0.52)
    Google Reviews Widget (1.8.3)
    Jetpack by WordPress.com (8.1)
    JGC Google reCAPTCHA (1.2.4)
    Jilt for WooCommerce (1.7.1)
    Lightbox with PhotoSwipe (2.61)
    Local Search SEO Contact Page (4.0.1)
    MailPoet 3 (New) (3.42.3)
    MarketPress (200.9.6.2)
    Media File Renamer (Auto Rename) (4.6.3)
    Menu Items Visibility Control (0.3.7)
    Multi Device Switcher (1.7.0)
    P3 (Plugin Performance Profiler) (1.5.3.9)
    Per page head (1.4.2)
    PHP Everywhere (2.0.1)
    Recipe Schema (1.2)
    Reviews for Schema (1.8)
    Schema & Structured Data for WP & AMP (1.9.21)
    Shift8 CDN (1.34)
    ShortPixel Adaptive Images (1.7.5)
    Smush (3.4.2)
    Social Reviews & Recommendations (1.6.7)
    Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.22)
    Super Socializer (7.12.37)
    Theme My Login (66.4.17)
    UpdraftPlus – Backup/Restore (1.16.21)
    USPS Simple Shipping for Woocommerce (1.2.6)
    WassUp Real Time Analytics (1.9.4.4)
    Widget Context (1.2.0)
    WooCommerce (3.8.1)
    WooCommerce Admin (0.24.0)
    WooCommerce Amazon Pay Gateway (1.10.3)
    Woocommerce Blocker (1.8.3)
    WooCommerce Cash On Pickup (1.5)
    Woocommerce compatibility for Schema (1.3)
    Woocommerce Customers Order History (5.0.0)
    WooCommerce Menu Cart (2.7.6)
    WooCommerce PayPal Checkout Gateway (1.6.18)
    WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Basic) (2.6.0)
    WooCommerce Services (1.22.2)
    WooCommerce Stripe Gateway (4.3.1)
    WooReer (formerly WooCommerce Shipping Distance Matrix) (2.0.8)
    Wordfence Security (7.4.5)
    WordPress Users & WooCommerce Customers Import Export(BASIC) (1.3.6)
    WP-DBManager (2.80.1)
    WP-Sweep (1.1.1)
    WP Crontrol (1.7.1)
    WP Fastest Cache (0.9.0.1)
    WP Google My Business Auto Publish (2.18)
    WP LinkedIn Auto Publish (7.2)
    WP Responsive Menu (3.1.4)
    WP Revisions Control (1.3)
    WP Rollback (1.7.0)
    Yoast SEO (12.8.1)

    Plugin Author shift8

    (@shift8)

    Thats quite a lot of plugins to rule out! ??

    That said, this warning is not really a concern, especially in light of me seeing that the CDN is functioning on your site.

    The warning is in relation to a specific for-loop that iterates across specific URLs in your site to rewrite them to use the CDN. Its possible another plugin is interfering with this process in a limited way or under a certain condition.

    I could put a condition around that for-loop to not run if the array is empty which would get rid of the error. Alternatively you could try disabling plugins one at a time until the warning goes away. That information may be valuable in determining why or how the plugin may be interfering but again, your site is working and the CDN is working.

    I can put the condition in the queue for the next plugin update which will include additional features like the ability to purge the CDN cache.

    Thanks!

    Thread Starter Ward Graham

    (@eagrayhamgmailcom)

    in the past couple of days, there have been several plugin updates and the log messages seem to have stopped. TY!
    feature request:
    give users the ability to create a CNAME DNS entry that points to CDN shift8 FQDN instance and use a local FQDN ie cdn.example.domain or static.example.domain etc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warning’ is closed to new replies.