• Resolved sublimebydesign

    (@sublimebydesign)


    Hi,

    I’m a bit perplexed by this issue, as I run a localhost with the site working properly and no errors with define('WP_DEBUG', true); in wp-config.php, yet when I push to my testing server at /alpha, I receive the error messages:

    Warning: fopen(C:/xampp/htdocs/opticolour/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php): failed to open stream: No such file or directory in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4785

    Warning: fread() expects parameter 1 to be resource, boolean given in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4788

    Warning: fclose() expects parameter 1 to be resource, boolean given in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4791

    How can I fix this?

    
    ### WordPress Environment ###
    
    Home URL: https://www.opticolour.co.uk/alpha
    Site URL: https://www.opticolour.co.uk/alpha
    WC Version: 3.2.1
    Log Directory Writable: ?
    WP Version: 4.8.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.0.24
    PHP Post Max Size: 64 MB
    PHP Time Limit: 50000
    PHP Max Input Vars: 5000
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: ? 5.5.58 - We recommend a minimum MySQL version of 5.6. See: WordPress requirements
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.2.1
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ?
    Total Database Size: 23.68MB
    Database Data Size: 19.08MB
    Database Index Size: 4.60MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_blc_filters: Data: 0.02MB + Index: 0.00MB
    wp_blc_instances: Data: 0.08MB + Index: 0.05MB
    wp_blc_links: Data: 0.19MB + Index: 0.06MB
    wp_blc_synch: Data: 0.02MB + Index: 0.02MB
    wp_clean_up_optimizer: Data: 0.02MB + Index: 0.00MB
    wp_clean_up_optimizer_meta: Data: 0.02MB + Index: 0.00MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.02MB + Index: 0.09MB
    wp_duplicator_packages: Data: 0.02MB + Index: 0.02MB
    wp_dynamic_widgets: Data: 0.02MB + Index: 0.02MB
    wp_exporttopdfrecord: Data: 0.02MB + Index: 0.00MB
    wp_fmet_product_dtabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_product_gtabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_product_tabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_temp_dtabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_temp_gtabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_temp_tabs: Data: 0.02MB + Index: 0.00MB
    wp_fmet_use_gtabs: Data: 0.02MB + Index: 0.00MB
    wp_layerslider: Data: 0.02MB + Index: 0.00MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_options: Data: 5.48MB + Index: 0.13MB
    wp_postmeta: Data: 3.52MB + Index: 3.03MB
    wp_posts: Data: 8.52MB + Index: 0.50MB
    wp_revslider_css: Data: 0.13MB + Index: 0.00MB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB
    wp_revslider_sliders: Data: 0.05MB + Index: 0.00MB
    wp_revslider_slides: Data: 0.06MB + Index: 0.00MB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.05MB + Index: 0.03MB
    wp_term_relationships: Data: 0.09MB + Index: 0.08MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB
    wp_users: Data: 0.02MB + Index: 0.05MB
    wp_yoast_seo_links: Data: 0.08MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    attachment: 868
    condition_group: 21
    custom_css: 1
    customize_changeset: 13
    jetpack-testimonial: 9
    nav_menu_item: 48
    page: 48
    post: 8
    product: 224
    product_variation: 46
    revision: 710
    sidebar: 16
    slide: 30
    testimonial: 9
    testimonial_rotator: 1
    turbo-sidebar-cpt: 2
    vc_grid_item: 1
    woo_product_tab: 20
    
    ### Security ###
    
    Secure connection (HTTPS): ?Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?
    
    ### Active Plugins (23) ###
    
    LayerSlider WP: by Kreatura Media – 6.1.6
    Bootstrap 3 Shortcodes: by Michael W. Delaney
    Filip Stefansson
    and Simon Yeldon – 3.3.10
    
    Broken Link Checker: by Janis Elsts
    Vladimir Prelovac – 1.11.5
    
    Content Aware Sidebars: by Joachim Jensen – 3.7
    Duplicate Post: by Enrico Battocchi – 3.2
    Duplicator: by Snap Creek – 1.2.26
    Jetpack by WordPress.com: by Automattic – 5.4
    Make Plus: by The Theme Foundry – 1.9.6
    Media File Renamer: by Jordy Meow – 3.6.8
    Media Library Alt Fields: by Jarret Cade – 1.1
    Media Library Assistant: by David Lingren
    Fair Trade Judaica – 2.62
    
    Slider Revolution: by ThemePunch – 5.4.1
    Simple Lightbox: by Archetyped – 2.6.0
    Testimonial Rotator: by Hal Gatewood – 2.2.4.1
    WooCommerce Catalog Visibility Options: by Lucas Stark – 3.0.2 – 3.0.3 is available – Not tested with the active version of WooCommerce
    WooCommerce Colors: by WooThemes – 1.0.7 – Not tested with the active version of WooCommerce
    WooCommerce jQuery Cookie Fix: by Splashing Pixels (Roy Ho) – 1.0 – Not tested with the active version of WooCommerce
    WooCommerce Product Tabs: by Nilambar Sharma – 2.0.0 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.2.1 – 3.2.2 is available
    WordPress Importer: by wordpressdotorg – 0.6.3
    Yoast SEO: by Team Yoast – 5.7.1
    WP Migrate DB Pro Media Files: by Delicious Brains – 1.4.8
    WP Migrate DB Pro: by Delicious Brains – 1.8
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #2 - /wall-covering-glass-panels/
    Basket: ? Page not set
    Checkout: ? Page not set
    My account: ? Page visibility should be public
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Make (child theme)
    Version: 1.1.0
    Author URL: https://thethemefoundry.com
    Child Theme: ?
    Parent Theme Name: Make
    Parent Theme Version: 1.9.5 – 1.9.7 is available
    Parent Theme Author URL: https://thethemefoundry.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: make-child-theme/woocommerce/single-product/meta.php
    

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter sublimebydesign

    (@sublimebydesign)

    I should also add that if I disable every plugin except CAS, the error messages still remain. An additional message appears as they are being deactivated/activated:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php:4785) in /homepages/29/d154852339/htdocs/alpha/wp-includes/pluggable.php on line 1210

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this.

    If you haven’t already, could you check and see if the file wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php exists on the server?

    brooksdc

    (@brooksdc)

    I’m experiencing the exact same error and scenario as @sublimebydesign.

    It worked fine locally, but now that I’ve exported my local DB and imported it to my new remote DB, I get this error while debug mode is on. I’ve also run a standard search and replace on the data in this process.

    I tried deactivating and removing the plugin and data, optimizing the DB and reinstalling, but I still have the issue, with an additional unexpected output warning:

    “The plugin generated 626 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin”

    Thread Starter sublimebydesign

    (@sublimebydesign)

    Yes, the file exists with 2366Kb size. As a workaround, I deactivated the plugin on localhost, ‘pushed’ to my /alpha test site, then activated the plugin. It is now working, but I’d like to know what the issue is if it’s something other than simple file corruption, as it will affect whether I use it on other sites. I hope you understand. Great idea for a plugin though ??

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for checking, I just wanted to make sure that wasn’t the problem before looking at anything else ??

    I use something called Freemius to collect data to improve the plugin (only if you opt-in), and it looks like it stores the full path to the plugin in the database, so that might be the issue.

    Go to /wp-admin/admin.php?page=freemius on your site, and click on “Delete All Accounts” (this will simply clear all Freemius related data on the site)

    Please let me know if this works!

    And in case you want to read more about Freemius and what data is being shared when opted in: https://freemius.com/wordpress/usage-tracking/259/content-aware-sidebars/

    Thread Starter sublimebydesign

    (@sublimebydesign)

    I tried ‘delete all accounts’ as per your instructions, and pushed to the server again, but received the following error messages. I had to deactivate the plugin, push, then reactivate again to get the site back from the white screen!

    Warning: fopen(C:/xampp/htdocs/opticolour/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php): failed to open stream: No such file or directory in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4785
    
    Warning: fread() expects parameter 1 to be resource, boolean given in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4788
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php on line 4791
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php:4785) in /homepages/29/d154852339/htdocs/alpha/wp-content/plugins/wp-advanced-pdf/wp-advanced-pdf.php on line 18
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php:4785) in /homepages/29/d154852339/htdocs/alpha/wp-login.php on line 396
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/29/d154852339/htdocs/alpha/wp-includes/functions.php:4785) in /homepages/29/d154852339/htdocs/alpha/wp-login.php on line 409
    Plugin Author Joachim Jensen

    (@intoxstudio)

    Sorry for being unclear, I meant that “Delete All Accounts” should be done on the testing server (or any server that you migrate to). Obviously this shouldn’t matter if the database is cloned as well, but the Freemius related data will be regenerated on page refresh.

    However, instead of doing that, you could simply run this SQL command on the test server: DELETE FROM wp_options WHERE option_name LIKE 'fs_%'

    You might need to switch wp_ with your own table prefix. This command will remove all Freemius related data, so if that doesn’t fix the problem, it might be caused by an incompatibility with another plugin.

    All subsequent warnings you have posted should be resolved once we resolve the first one.

    Thread Starter sublimebydesign

    (@sublimebydesign)

    I’ve hit ‘delete all accounts’ on the testing server, turned the debug switch on, which produced a lengthy listing, refreshed the page and noted that there were no errors or warnings displayed.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    I am glad that seems to have solved it, and I apologise about the inconvenience.

    I have been in contact with the developers of Freemius, and in case you (or anyone reading this) experience similar problems again, you can use this plugin to fix it: https://github.com/Freemius/freemius-fixer

    And if you have any other questions about Content Aware Sidebars, please let me know.

    Thread Starter sublimebydesign

    (@sublimebydesign)

    Thank you for resolving this; it’s useful to know there is a fixer plugin ??

    Plugin Author Joachim Jensen

    (@intoxstudio)

    It looks like this will be fixed in the next version of Freemius: https://github.com/Freemius/wordpress-sdk/pull/198

    I will mark this thread resolved for now, thanks again for notifying me about it!

    revsusan

    (@revsusan)

    I am having the same issue and have done the DELETE FROM wp_options WHERE option_name LIKE ‘fs_%’ directly.

    Here’s the error I’m getting (note the /test that’s the old URL):
    Warning: fopen(/homepages/12/d272948611/htdocs/test/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php): failed to open stream: No such file or directory in /homepages/12/d272948611/htdocs/wp-includes/functions.php on line 4785

    Warning: fread() expects parameter 1 to be resource, boolean given in /homepages/12/d272948611/htdocs/wp-includes/functions.php on line 4788

    Warning: fclose() expects parameter 1 to be resource, boolean given in /homepages/12/d272948611/htdocs/wp-includes/functions.php on line 4791

    I’m able to keep my production site up by changing line 1485 from using the variable defined to setting the path without /test.

    Meaning, the code as written looks for:
    $file = “/homepages/12/d272948611/htdocs/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php”;

    But this isn’t a real fix. Do you have additional suggestions or did I miss something above?

    revsusan

    (@revsusan)

    Nevermind, I went and exported the database one more time, and while I had gotten a success message on the delete SQL, the fs_* rows were still there. I deleted the rows successfully with another approach and the plugin is back on track. Thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Error messages’ is closed to new replies.