Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • tobyy

    (@tobyy)

    i’ve got the same problem.
    WordPress 4.9.8 (Multisite)
    GDPR Cookie Consent 1.6.9

    in the dashboard, i see the following warning when i am logged in as EDITOR! there is no warning message when i am logged in as ADMINISTRATOR.

    Warning: Invalid argument supplied for foreach() in /mypathtoWP/wp-content/plugins/cookie-law-info/admin/class-cookie-law-info-admin.php on line 159

    Warning: Cannot modify header information – headers already sent by (output started at /mypathtoWP/wp-content/plugins/cookie-law-info/admin/class-cookie-law-info-admin.php:159) in /mypathtoWP/wp-admin/includes/misc.php on line 1126

    i guess the easiest way to solve this is to turn off php warnings, but maybe you have a better solution.

    [edit]OK i guess we are hiding menu elements for editors, and that is causing the warning?[/edit]

    • This reply was modified 6 years ago by tobyy.

    it seems to support only posts out of the box.

    to add the metabox to custom post types or pages you can add this to your functions.php:

    function mycustomposttype_add_expire_date_metabox() {
    	add_meta_box( 'hugu_ped_expire_date_metabox', __( 'Expiration Date', 'hugu'), 'hugu_ped_expire_date_metabox_callback', array( 'mycustomposttype', 'page' ), 'side', 'high' );
    }
    add_action( 'add_meta_boxes', 'mycustomposttype_add_expire_date_metabox' );
    

    just replace “mycustomposttype” with your custom post type!

    just wanted to let you know that this really would be a perfect addition to your great plugin. Unfortunately we have to use private videos on one of our sites..

    any news if this feature is possible and will be implemented?
    cheers,
    toby

    i guess it depends on how the plugin makes the query for recent posts.

    i had troubles with WP_Query() and now i use query_posts() and sorting works great.

    maybe this could help as well:
    https://www.ads-software.com/support/topic/query-posts-8

    i have exactly the same problem. after reading the documentation i came up with the same code like you… but it doesn’t work

    i also tried it with this code:

    function custom_override_default_address_fields( $address_fields ) {
          $address_fields['postcode']  = array(
          'label'          => __('Postcode', 'woothemes'),
          'placeholder'    => __('Postcode', 'woothemes'),
          'required'       => false,
          'class'          => array('form-row-first'),
          'label_class'    => array('testing')
       	);  
    
    	 return $address_fields;
    }

    it seems that everything works fine (like setting required to false, change the label name, label class, placeholder…) but NOT the class!?

    maybe someone knows what could be wrong, thanks!

    tobyy

    (@tobyy)

    I have the same issue. Just wanted to add that Firebug gives this error message, maybe someone can help us?

    Image corrupt or truncated: https://mywebsite/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=660c46b675&postid=4426&rand=24636

    Firefox only loads 1/3 of the image and then puts the error message.
    The problem appears in several browser and it seems to be on all my wordpress installations, even on different servers. I think it is a problem with on the fly image generating, but i dont know what to change anymore.

    I disabled all plugins and used standard themes twenty ten, twenty eleven, twenty twelve, newest WP Version… doesnt change anything.

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