• Resolved Imageestalhun

    (@estalhun)


    Hi,

    There are a lot of errors in the error_log file:
    [05-Nov-2020 13:48:44 UTC] PHP Warning: Use of undefined constant default_topic_count_text – assumed ‘default_topic_count_text’ (this will throw an Error in a future version of PHP) in /home/xxxx/xxxx/wp-content/plugins/insert-php-code-snippet/widget.php(64) : eval()’d code on line 15

    Approximately 2000 errors per day!

    Please fix it ASAP.

    Regards,
    Estal

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Imagesumaiyaf

    (@sumaiyaf)

    Hi,
    This error is because of the short code you are using. Please share the short code for further checking. If you have any issues then please drop a mail at [email protected] or
    contact our support desk at http://xyzscripts.com/members/support/

    • This reply was modified 5 years ago by Imagesumaiyaf.
    Thread Starter Imageestalhun

    (@estalhun)

    <?php if ( function_exists( ‘wp_tag_cloud’ ) ) : ?>
    <?php
    echo ‘<div class=”widget_tag_cloud tagcloud”>’;
    $args = array(
    ‘smallest’ => 12,
    ‘largest’ => 12,
    ‘unit’ => ‘pt’,
    ‘number’ => 0,
    ‘format’ => ‘flat’,
    ‘separator’ => ” “,
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘exclude’ => null,
    ‘include’ => null,
    ‘topic_count_text_callback’ => default_topic_count_text,
    ‘link’ => ‘view’,
    ‘taxonomy’ => ‘post_tag’,
    ‘echo’ => true,
    ‘child_of’ => null, // see Note!
    );
    wp_tag_cloud($args);
    echo ‘</div>’;
    ?>
    <?php endif; ?>

    Thread Starter Imageestalhun

    (@estalhun)

    You are absolutely right.
    default_topic_count_text is obsolete.

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

The topic ‘PHP Warning: Use of undefined constant default_topic’ is closed to new replies.