• Resolved StandOutSites

    (@standoutsites)


    After update of the plugin to the latest version, Warning is generated in Dashboard. Warning call_user_func_array() expects parameter 1 to be a valid callback, function ‘fix_import_form_size’ not found or invalid function name in /home/enter869/stage/wp-includes/class-wp-hook.php on line 286.

    We have a multisite WP v5.0.3. All sites that have your plugin enabled produce this warning. As soon as I disable your plugin, the warning disappears. Please advise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter StandOutSites

    (@standoutsites)

    Downgrading to plugin v2.0.6 fixes the problem. Not sure what is happening here.

    Hello

    Thanks for message.
    Do you have snippets calling “fix_import_form_size” function?
    Please put here your snippet code.

    Best regards

    Thread Starter StandOutSites

    (@standoutsites)

    NO I don’t. Here’s one snippet

    include get_stylesheet_directory()."/template-parts/red-flag-warning.php";

    Here are the contents of red-flag-warning.php

    
    <?php 
    // get the single post in Red Flag Parking custom posts
    $postID = 968;
    $post = get_post($postID);
    $redflag_content = apply_filters('the_content', $post->post_content);
    $red_flag_parking_active = get_field('red_flag_parking_active', $postID); 
    
    // gets the modified date
    $todaydate = get_the_modified_date(); ?>
    
    <?php if ($red_flag_parking_active['value'] == 'TRUE'): ?>
    
    	<div class="alert alert-danger text-center"><h5>Restricted Parking, Tickets & Tow</h5><span><i class="fas fa-flag fa-4x"></i></span>
    		
    		<strong><?php echo $redflag_content ?></strong>
    		
    	</div>
    
    <?php  elseif($red_flag_parking_active['value'] == 'FALSE'): ?>
    
    	<div class="alert alert-success text-center"><h5>Normal Parking</h5><span><i class="fas fa-flag fa-4x"></i></span>
    		<strong><?php echo $redflag_content; ?></strong>	
    	</div>
    
    <?php else: ?>
    
    	<div class="alert alert-success text-center"><h5>Normal Parking</h5><span><i class="fas fa-flag fa-4x"></i></span>
    		<strong><?php echo $redflag_content ?></strong>		
    	</div>
    
    <?php endif; ?>

    I reproduced this error on a site with multisite enabled.
    Currently, the plugin does not support multisite. But i know how to fix this error.

    In file wp-content/plugins/insert-php/admin/pages/import.php
    Need find line “$this->max_size_bytes = apply_filters( ‘import_upload_size_limit’, wp_max_upload_size() );” and move it into block “public function indexAction() {“.

    Or you may copy fixed file here https://pastebin.com/raw/3fjSRHbN

    Best regards

    Plugin Author webcraftic

    (@webcraftic)

    Bug fixed in new version of plugin 2.1.7, please update!

    Best regards, Alex

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘After update of plugin to Woody Ad, error’ is closed to new replies.