Support

Account

Forum Replies Created

  • Hi,

    I´m a Pro user over several Years.
    I love the wp-config feature.
    But today, I wanted to update the Plugin and I get the Message:
    Please reactivate your license to unlock updates.

    I tried to delete it from my wp-config – upload – re-enter into config – upload.
    Still didn´t work. So deleted – upload – manually input the license in backend – re-enter in config – upload – then it worked.

    It is a complete new installation, without any plugins and the underscores.me theme.

    The update was from 5.11.1 to 5.11.4

    Just to let you know…

    Best regards
    Martin

  • Hi,

    I can inform you, that the Error Messages are not caused from your Plugin.

    I did overtake a website. I found in the functions a code, which provided an image gallery with “next / prev” Navigation. So every Image has its own URL.

    define('ARBP_VERSION', '0.2');
    define('ARBP_TYPE', 'ar_big_pictures');
    define('ARBP_IMAGE_TYPE', 'ar_biggallery');
    
    add_action('init', 'register_arbp_type');
    //add_image_size(ARBP_IMAGE_TYPE, 930, 523, true); 
    
    add_filter( 'intermediate_image_sizes', function($sizes){
        if (!isset($_REQUEST['post_id'])) { return; }
        
        $type = get_post_type($_REQUEST['post_id']);
        foreach($sizes as $key => $value){
            /*if(($type == ARBP_TYPE  &&  $value != ARBP_IMAGE_TYPE && $value != 'thumbnail')
               || ($type != ARBP_TYPE && $value == ARBP_IMAGE_TYPE)){*/
    	if ($type != ARBP_TYPE && $value == ARBP_IMAGE_TYPE) {
                unset($sizes[$key]);
            }
        }
        return $sizes;
    });
    
     
    function register_arbp_type() {
    	
    	$labels = array(
    		'name' => 'Diashow',
    		'singular_name' => 'Diashow',
    		'add_new' => 'Neu',
    		'add_new_item' => 'Neue Diashow',
    		'edit_item' => 'Bearbeite Diashow',
    		'new_item' => 'Neue Diashow',
    		'all_items' => 'Alle Diashows',
    		'view_item' => 'Diashow betrachten',
    		'search_items' => 'Suche nach Diashows',
    		'not_found' =>  'Keine Diashows gefunden',
    		'not_found_in_trash' => 'Keine Diashows im Papierkorb gefunde', 
    		'parent_item_colon' => '',
    		'menu_name' => 'Diashows'
    	  );
    
    	$args = array(
    		'labels' => $labels,
    		'public' => true,
    		'publicly_queryable' => true,
    		'show_ui' => true, 
    		'show_in_menu' => true, 
    		'query_var' => true,
    		'rewrite' => array( 'slug' => 'diashow' ),
    		'capability_type' => 'post',
    		'has_archive' => true, 
    		'hierarchical' => false,
    		'menu_position' => null,
    		
    		'taxonomies' => array('category'),
    		
    		'supports' => array( 'title', 'editor', 'author', 'comments', 'excerpt', 'thumbnail' )
    	); 
    	
    	register_post_type(ARBP_TYPE , $args );
    }
    
    if (is_admin() && isset($_GET['post_type']) && $_GET['post_type'] == ARBP_TYPE) {
        add_action( 'wp_print_scripts', 'ar_big_picts_de_script', 110 );
    }
    
    function ar_big_picts_de_script() {
        wp_dequeue_script('wp-category-permalink.js');
        wp_deregister_script('wp-category-permalink.js');
    }

    When I delete this Code, the Error Messages disappear.

    Just because I’m corious – do you see where the Problem is?

    Thanks a lot for your Help!

    Best
    Mikkel

  • array(1) { [0]=> array(24) { [“ID”]=> int(282347) [“id”]=> int(282347) [“title”]=> string(14) “04_Car_917” [“filename”]=> string(18) “04_Car_917.jpg” [“filesize”]=> int(223682) [“url”]=> string(69) “https://domainname.com/uploads/2019/03/04_Car_917.jpg” [“link”]=> string(75) “https://domainname.com/attachment/04_Car_917” [“alt”]=> string(0) “” [“author”]=> string(4) “1838” [“description”]=> string(0) “” [“caption”]=> string(183) “Der 917-001 wurde als erstes von insgesamt 25 Exemplaren gezeigt.” [“name”]=> string(14) “04_porsche_917” [“status”]=> string(7) “inherit” [“uploaded_to”]=> int(282339) [“date”]=> string(19) “2019-03-12 08:03:18” [“modified”]=> string(19) “2019-03-12 08:04:52” [“menu_order”]=> int(0) [“mime_type”]=> string(10) “image/jpeg” [“type”]=> string(5) “image” [“subtype”]=> string(4) “jpeg” [“icon”]=> string(65) “https://domainname.com/wp-includes/images/media/default.png” [“width”]=> int(1150) [“height”]=> int(647) [“sizes”]=> array(0) { } } }

  • I try to put in the Error Message and the Output from var_dump, but it won’t let me…

  • Hi,

    sorry for the late reply.

    This is what I get with (for testing) 1 image:

    Warning: Invalid argument supplied for foreach() in /var/www/html/live/files/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php on line 3213

    array(1) { [0]=> array(24) { ["ID"]=> int(282347) ["id"]=> int(282347) ["title"]=> string(14) "04_Porsche_917" ["filename"]=> string(18) "04_Porsche_917.jpg" ["filesize"]=> int(223682) ["url"]=> string(69) "https://aure3.will-fahren.at/files/uploads/2019/03/04_Porsche_917.jpg" ["link"]=> string(75) "https://aure3.will-fahren.at/autowelt/porsche-917/attachment/04_porsche_917" ["alt"]=> string(0) "" ["author"]=> string(4) "1838" ["description"]=> string(0) "" ["caption"]=> string(183) "Der 917-001 wurde als erstes von insgesamt 25 Exemplaren der Homologationsserie im Frühjahr 1969 aufgebaut und als Gruppe-4-Sportwagen vor dem Porsche Werk 1 in Zuffenhausen gezeigt." ["name"]=> string(14) "04_porsche_917" ["status"]=> string(7) "inherit" ["uploaded_to"]=> int(282339) ["date"]=> string(19) "2019-03-12 08:03:18" ["modified"]=> string(19) "2019-03-12 08:04:52" ["menu_order"]=> int(0) ["mime_type"]=> string(10) "image/jpeg" ["type"]=> string(5) "image" ["subtype"]=> string(4) "jpeg" ["icon"]=> string(65) "https://aure3.will-fahren.at/wp-includes/images/media/default.png" ["width"]=> int(1150) ["height"]=> int(647) ["sizes"]=> array(0) { } } }

    I realized that this error message also appears in the Admin Area right above the Custom Fields.

    Thanks and Greetings
    Mikkel

  • Hi,

    sorry for the late reply.

    This is what I get with (for testing) 1 image:

    Warning: Invalid argument supplied for foreach() in /var/www/html/live/files/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php on line 3213
    array(1) { [0]=> array(24) { ["ID"]=> int(282347) ["id"]=> int(282347) ["title"]=> string(14) "04_Porsche_917" ["filename"]=> string(18) "04_Porsche_917.jpg" ["filesize"]=> int(223682) ["url"]=> string(69) "https://aure3.will-fahren.at/files/uploads/2019/03/04_Porsche_917.jpg" ["link"]=> string(75) "https://aure3.will-fahren.at/autowelt/porsche-917/attachment/04_porsche_917" ["alt"]=> string(0) "" ["author"]=> string(4) "1838" ["description"]=> string(0) "" ["caption"]=> string(183) "Der 917-001 wurde als erstes von insgesamt 25 Exemplaren der Homologationsserie im Frühjahr 1969 aufgebaut und als Gruppe-4-Sportwagen vor dem Porsche Werk 1 in Zuffenhausen gezeigt." ["name"]=> string(14) "04_porsche_917" ["status"]=> string(7) "inherit" ["uploaded_to"]=> int(282339) ["date"]=> string(19) "2019-03-12 08:03:18" ["modified"]=> string(19) "2019-03-12 08:04:52" ["menu_order"]=> int(0) ["mime_type"]=> string(10) "image/jpeg" ["type"]=> string(5) "image" ["subtype"]=> string(4) "jpeg" ["icon"]=> string(65) "https://aure3.will-fahren.at/wp-includes/images/media/default.png" ["width"]=> int(1150) ["height"]=> int(647) ["sizes"]=> array(0) { } } }

    I realized that this error message also appears in the Admin Area right above the Custom Fields.

    Thanks and Greetings
    Mikkel

  • Hello John,

    yes you are right – I forgot to put in another line of code:

    <?php $images = get_field('bildergalerie'); if( $images ): ?>
        <div class="ar-karussell-wrapper">
        <div class="ar-karussell">
    
            <?php foreach( $images as $image ): ?>
                
                <div class="carousel-cell">
                    <figure class="article-feat-figure">
                    <img data-flickity-lazyload-src="<?php echo $image['url']; ?>" alt="<?php echo $image['caption']; ?>">
                    </figure>
    
                <?php 
                  if($image['caption']!="" ){
                ?>
    
                <div class="img-caption-featured"><?php echo $image['caption']; ?></div>
                    <?php }
                        else{ ?>
                    <?php } ?>
                </div>
            <?php endforeach; ?>
    					
        </div>
        </div>
    <?php endif; ?>

    The Gallery is on a post.

    Thanks for your reply!
    Best Mikkel

  • Sorry, can´t edit my original post. It is not a repeater – it is a Gallery Field…

  • I think this happens on svg Images…

  • Ok, I´m Sorry that I didn´t post some code examples.

    Here is the Code i have which is working fine:

    <div class="zeitschrift-box-wrapper">
                <?php if( have_rows('zeitschrift_box') ): while( have_rows('zeitschrift_box') ): the_row(); ?>
                <img src="<?php echo $upload_dir['baseurl']; ?>/2018/03/second-bg.svg" alt="B2B Publishing">
                <?php the_sub_field('text'); ?>
                <a href="<?php the_sub_field('link'); ?>"><?php the_sub_field('link_text'); ?></a>
                <?php endwhile; ?>
                <?php endif; ?>
            </div>

    What if I have three of these blocks in a “parent” Group?

    Do you know what I mean?

    Greets
    M

  • Yes, I did it once with a repeater field. Can you provide a simple code example how to do it?

    Would be nice.

    Thanks for your reply!
    M

  • Hello,

    yes I know the description of this Error. In fact, if we turn up the RAM it will work. So it is a Problem with the Memory.
    But as I mentioned before, it does not have anything to do with your Plugin.

    A Co-Worker installed a Facebook Pixel Plugin, without my permission. As we de-installed this Plugin – everything worked as it should.

    The option, as I described, is still not working. But I think the solution is elsewhere.

    Thanks for your reply anyways.

    I love to work with your plugin.
    I did so much individual stuff the last couple of years with it.
    It completely changed my skill level…

    Thanks a lot for it!!!

    Greetz
    Martin

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