Home Forums WordPress Plugins Hide My WP PHP 7.1 compatibility.

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13365
    uibar
    Post count: 8

    Hello!

    I tried to migrate my website to a new hosting provider that is using php 7.1 and after install, everything is fine with the new wp 4.7 but HMWP prints out tons of errors regarding some strings … if I disable the plugin everything is fine.

    And also when first started the plugin is ok, settings show up but when I try to save the settings or reset to default then everything dies and errors regarding strings everywhere.

    For the moment I will stay with my current provider but I would like to update to php 7.1 so please try to fix this issue. I don’t know exactly the error but all of them were regarding some strings stuff.

    EDIT: I remembered they were WARNINGs not ERRORs.

    • This topic was modified 8 years, 1 month ago by uibar.
    #13374
    Suman M.
    Post count: 12478

    Hi, can you please post here the detailed error messages that you were getting, so that we can look into it.

    #13375
    uibar
    Post count: 8

    Hi.

    I just recreated a new test environment to recreate the errors with php 7.1. Note: This is not the actual current live website as it is just a test from a recent backup.

    If I don’t change any settings it seams to work fine after migrate if I update the nginx config manually. But when I save even without changing any settings the warning appear.

    And also the nginx config that I should copy in my server is not showing as seen in the screenshots.

    Here is the debug info from the plugin:

    ===========================================================
     WP Settings
    ===========================================================
    WordPress version: 	WP 4.7
    Home URL: 	https://uibarcristian.com
    Site URL: 	https://uibarcristian.com
    Is SSL: 	true
    Is RTL: 	false                                          
    Permalink: 	/%year%/%monthnum%/%day%/%postname%/
    
    ============================================================
     Server Environment
    ============================================================
    PHP Version:     	7.1.0-3+deb.sury.org~xenial+1
    Server Software: 	nginx/1.11.5
    WP Max Upload Size: 2 MB
    Server upload_max_filesize:     2M
    Server post_max_size: 	8M
    WP Memory Limit: 	40M
    WP Debug Mode: 	    false
    CURL:               true
    fsockopen:          true
    
    ============================================================
     Active plugins   
    ============================================================
    Hide My WP 5.1 [http://hide-my-wp.wpwave.com/]
    Broken Link Checker 1.11.2 [http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/]
    Connects - Mailchimp Addon 2.0.2 []
    Contact Form 7 4.6 [http://contactform7.com/]
    ConvertPlug 2.3.1 [http://convertplug.com/]
    Cornerstone 1.3.3 [http://theme.co/cornerstone]
    Duplicate Post 3.0.3 [http://lopo.it/duplicate-post-plugin/]
    Google Analytics Dashboard for WP 4.9.4 [https://deconf.com]
    Google XML Sitemaps 4.0.8 [http://www.arnebrachhold.de/redir/sitemap-home/]
    Hotjar Connecticator 1.1.1 [http://www.bluemedicinelabs.com/]
    Jetpack by WordPress.com 4.4.2 [http://jetpack.com]
    Slider Revolution 5.3.0.2 [http://revolution.themepunch.com/]
    SEO Friendly Images 3.0.5 [http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images]
    Shareaholic | share buttons, analytics, related content 7.8.0.4 [https://shareaholic.com/publishers/]
    The Grid 2.2.0 [http://www.theme-one.com/the-grid/]
    Cookie Consent 2.2.3 [http://catapultthemes.com/cookie-consent/]
    W3 Total Cache 0.9.5.1 [https://www.w3-edge.com/wordpress-plugins/w3-total-cache/]
    X – Disqus Comments 1.0.0 [http://theme.co/x/]
    X – Smooth Scroll 1.0.2 [http://theme.co/x/]
    X – Under Construction 1.1.2 [http://theme.co/x/]
    
    ============================================================
     Plugin Option
    ============================================================
    null
        

    Here are the warnings:

    Warning: Illegal string offset 'li' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'import_options' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'export_options' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'nginx_config' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'debug_report' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'help' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'undo' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'custom_404' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'custom_404_page' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'trusted_user_roles' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Illegal string offset 'replace_mode' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'hide_wp_login' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'login_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'admin_key' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'hide_wp_admin' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'spy_notifier' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'customized_htaccess' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'separator' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Illegal string offset 'cdn_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'email_from_name' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'email_from_address' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'antispam' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'full_hide' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'hide_other_wp_files' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'disable_directory_listing' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'disable_canonical_redirect' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'hide_admin_bar' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'avoid_direct_access' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'direct_access_except' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'exclude_theme_access' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'exclude_plugins_access' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_theme_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_style_name' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'minify_new_style' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_include_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_plugin_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'rename_plugins' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_upload_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace_comments_post' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace_admin_ajax' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'new_content_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'separator2' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Illegal string offset 'new_admin_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'separator3' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Illegal string offset 'author_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'author_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'author_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'author_without_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'feed_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'feed_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'feed_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'post_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'post_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'post_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'page_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'page_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'page_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'paginate_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'paginate_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'paginate_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'category_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'category_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'category_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'tag_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'tag_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'tag_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'search_enable' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'search_base' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'search_query' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'nice_search_redirect' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'disable_archive' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'disable_other_wp' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_html_comments' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace_javascript_path' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_feed_meta' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_other_meta' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_default_description' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_ver_scripts' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_body_class' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'remove_menu_class' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'clean_post_class' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'clean_new_style' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace_in_ajax' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace_wpnonce' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'enable_ids' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'ids_level' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'ids_admin_include' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'ids_cookie' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'logger_link' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'log_ids_min' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'block_ids_min' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'email_ids_min' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'exception_fields' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'ids_html_fields' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'separator4' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 694
    
    Warning: Illegal string offset 'trust_network' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'help_trust_network' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'blocked_ips' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'blocked_ip_message' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'blocked_countries' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace1' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Illegal string offset 'replace2' in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: Cannot assign an empty string to a string offset in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 691
    
    Warning: array_diff_key(): Argument #1 is not an array in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 611
    
    Warning: array_keys() expects parameter 1 to be array, null given in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 611
    
    Warning: array_fill_keys() expects parameter 1 to be array, null given in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 612
    
    Warning: array_merge(): Argument #2 is not an array in /home/forge/uibarcristian.com/wp-content/plugins/hide_my_wp/lib/class.settings-api.php on line 646

    Thank you for your quick reply.

    Attachments:
    You must be logged in to view attached files.
    #13378
    uibar
    Post count: 8

    Ok. I think I managed to fix this by initateing the $defaults_val as an array instead of a string in lib/class.settings-api.php

    
    before:
            $defaults_val='';
    after:
            $defaults_val=[];
    

    This fixed the warnings and everything works fine now.

    Thank you! Please update the plugin to include this php 7.1 support fix.

    EDIT: Forgot to mention the line. It is on line 681.

    Here is the full function:

    
    public function get_defaults(){
            $defaults_val=[];
            foreach ($this->settings_fields  as $tabs => $field) {
                foreach ($field as $opt){
                    if (isset($opt['name']))  {
                        if (isset($opt['default'])) {
                            $temp = str_replace('[new_line]', "\r\n", $opt['default']);
                            $temp = str_replace('[double_slashes]', "\/", $temp);
                            $temp = str_replace('[o_cb]','{', $temp);
                            $temp = str_replace('[c_cb]','}', $temp);
                        
                            $defaults_val[$opt['name']] = str_replace('[quotation]','"', $temp);
    
                        }else {
                            $defaults_val[$opt['name']] = '';
                        }
                    }
                }
            }
            return $defaults_val;
        }
    
    • This reply was modified 8 years, 1 month ago by uibar.
    • This reply was modified 8 years, 1 month ago by uibar.
    #13395
    Suman M.
    Post count: 12478

    Thanks for the detailed error message and the details regarding how you fixed it. I have assigned this ticket to sr support so that he can look further into it and we hope to make HMWP fully compatible with PHP 7 in the upcoming versions.

    #13431
    Hassan
    Post count: 955

    It was just fixed for upcoming version! Thank you 🙂

    Please let us know if you encounter with any other error message!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.