Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • exactly same here, I suspect Enfold theme, because both sites with this theme has same issue.

    I dunno how manually increment Enfold theme, and see if it disapears. (I tried change version in style.css, but no luck)

    same here. I had same issues with iThemes, when db backup is performed, debug log increase of new line with this error.

    Thread Starter mikrom

    (@mikrom)

    another fix: plugin PHP compatibility checker displays 43 warnings in this plugin only because “File has mixed line endings; this may cause incorrect results”

    after batch change to one united EOL it will pass without any error!

    There is plugin for that, or you can grab his code and add in Your functions.php etc..

    /* Admin bar link to delete WP Super Cache's Cache. Stolen from wp-super-cache-clear-cache-menu, https://apasionados.es/ */
    function only_show_option_if_wp_super_cache_is_active() {
    	if (is_plugin_active('wp-super-cache/wp-cache.php')) {
    		function clear_all_cached_files_wpsupercache() {
    			global $wp_admin_bar;
    			if (!is_super_admin() || !is_admin_bar_showing())
    				return;
          $args = array(
            'id' => 'delete-cache-completly',
            'title' => 'Clear WP Super Cache',
            'href' => wp_nonce_url(admin_url('options-general.php?page=wpsupercache&wp_delete_cache=1&tab=contents'), 'wp-cache'),
            'parent' => '',
            'meta' => array(
    				  'title' => 'Clear all cached files of WP Super Cache'
             )
          );
    			$wp_admin_bar->add_menu($args);
    		}
    		add_action('wp_before_admin_bar_render', 'clear_all_cached_files_wpsupercache', 999);
    	} 
    }
    add_action('admin_init', 'only_show_option_if_wp_super_cache_is_active');
    Thread Starter mikrom

    (@mikrom)

    right, as workaround I can probably inject my custom css into html in my custom plugin (same as modifying functions.php in theme). probably a few rows.

    I would like to avoid child theme ??

    EDIT:

    function add_custom_css() {
        wp_enqueue_style('mikrom-plugin', plugins_url('custom.min.css', __FILE__ ));
    }
    add_action('wp_enqueue_scripts', 'add_custom_css');

    does the trick for now.

    • This reply was modified 8 years, 4 months ago by mikrom.
    Thread Starter mikrom

    (@mikrom)

    any news with
    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; randomize has a deprecated constructor in /hosting/www/xxx/www/wp-content/plugins/randomize/randomize.php on line 30
    ?

    Thread Starter mikrom

    (@mikrom)

    yes, but mainly I think hueman authors can chenge for example in init-front.php around line 458

    this

            <script type="text/javascript">
              jQuery( function($){
                if ( $('#flexslider-featured').length ) {
                  $('#flexslider-featured').on('featured-slider-ready', function() {
                    $( '#<?php echo $_unique_id; ?>' ).animateSvg();
                  });
                } else { $( '#<?php echo $_unique_id; ?>' ).animateSvg( { svg_opacity : 0.3, filter_opacity : 0.5 } ); }
              });
            </script>

    to that

            <script type="text/javascript">
    jQuery(function(a){a("#flexslider-featured").length?a("#flexslider-featured").on("featured-slider-ready",function(){a("#<?php echo $_unique_id; ?>").animateSvg()}):a("#<?php echo $_unique_id; ?>").animateSvg({svg_opacity:.3,filter_opacity:.5})});
            </script>

    etc in other mentioned files ??

    Thread Starter mikrom

    (@mikrom)

    definitelly PHP7 issue

    FILE: /hosting/www/mikrom.cz/www/wp-content/plugins/randomize/randomize.php
    ------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------
     32 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
    ------------------------------------------------------------------------------------------
    Forum: Plugins
    In reply to: [Broken Link Checker] PHP 7
    FILE: /hosting/www/mikrom.cz/www/wp-content/plugins/broken-link-checker/includes/admin/table-printer.php
    --------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------
     28 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
    --------------------------------------------------------------------------------------------------------
    
    FILE: /hosting/www/mikrom.cz/www/wp-content/plugins/broken-link-checker/includes/utility-class.php
    --------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------
     42 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    --------------------------------------------------------------------------------------------------
    
    FILE: /hosting/www/mikrom.cz/www/wp-content/plugins/broken-link-checker/modules/checkers/http.php
    -------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------
     100 | ERROR | preg_replace() - /e modifier is forbidden since PHP 7.0
    -------------------------------------------------------------------------------------------------

    following

    I am using it on PHP7 and seems to work without any issues.

    But You are right, Checker found two issues:

     307 | ERROR   | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     315 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    Thread Starter mikrom

    (@mikrom)

    yes I know, i was only curious, so I enabled debug. I am using latest WP on PHP7 maybe this is it.

    Thread Starter mikrom

    (@mikrom)

    bad news:
    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; randomize has a deprecated constructor in /hosting/www/xxx/www/wp-content/plugins/randomize/randomize.php on line 30
    with updated version :/

    Thread Starter mikrom

    (@mikrom)

    thanks for update!

    great! I just had this error when I try exclude w3tc cache from file changes

Viewing 14 replies - 1 through 14 (of 14 total)