database – Migration from Drupal 7 to Drupal 8 – Source add-in error

I am trying to migrate a site from Drupal 7 to Drupal 8, however, I am still receiving this error;

Solve all issues below to continue with the update.
The d6_library_transaction add-in must define the source_module property.

Not sure where to define this. I have searched in the Library module folder and in the Migrate module folder.

Any help is appreciated.

Save PDF file from the add-in to the file system / wp_upload

I would like to call a function from another add-on, which returns a pdf. Is there a possibility to save this pdf in the WordPress file system, for example, wp-upload?

I just found $ wp_filesystem-> put_contents but it seems to be designed to write text files.

Any suggestions?

Thank you,

my custom author extract description add-in does not work

I want to show the main authors with avatars and description, so I need an extract of the descriptions.


// Top Authors-->
function author_excerpt (){
 $word_limit = 2; // Limit the number of words
 $more_txt = 'read more about:'; // The read more text
 $txt_end = '...'; // Display text end
 $authorName = get_the_author();
 $authorUrl = get_author_posts_url( get_the_author_meta('ID'));
 $authorDescriptionShort = wp_trim_words(strip_tags(get_the_author_meta('description', $contributor_id)), $word_limit, $txt_end.'
'.$more_txt.' '.$authorName.''); return $authorDescriptionShort; } function twentyfourteen_list_authors() { $contributor_ids = get_users( array( 'fields' => 'ID', 'orderby' => 'post_count', 'order' => 'DESC', 'who' => 'authors', ) ); foreach ( $contributor_ids as $contributor_id ) : $post_count = count_user_posts( $contributor_id ); // Move on if user has not published a post (yet). if ( ! $post_count ) { continue; } ?>

from the widget's php file:

echo twentyfourteen_list_authors();


How to disable an add-in in wp-admin / admin.php? Page = example

My WordPress site currently runs Optimize Dashboard (part of OptimizePress 3) and wpdatatables add-ons that conflict with each other. Certain parts of wpdatatables do not work properly while Optimize Dashboard is enabled.

How can I disable the Optimize Dashboard plug-in (located in wp-content / plugins / op-dashboard /) only when I am working on wpdatatables in the administration area (URL: wpdatatables)?

I tried using Plugin Organizer to disable Optimize Dashboard per permalink without success. It seems that most publications on selective deactivation of add-ons are for the front-end and not for the administration area.

sql server 2016 – MDS Add-in for Excel Office 365 – Error

I successfully configured Microsoft SQL Server 2016 Master Data Services (MDS), but I received an error (error?) When installing the add-in for Excel, which can download / upload data from / to the MDS repository, respectively.

enter the description of the image here

Find the screenshot of the attached error message. It seems a compatibility issue between Excel 365 and MDS 2016. But the download page doesn't mention anything specifically about it.

Could someone let me know if there is any solution for this compatibility issue? Or, if I'm hitting a mistake?

(Note: I am on a machine with Windows 10, MS Office 365, MS SQL Server 2016, MDS installed on the Windows 2016 SP2 server)

plugins: YITH product add-in not shown with WooCommerce Multi Currency Premium

I need help … I sell tickets for the event with different types of complements in euros, but on the payment page the prices must be converted to the CDM currency due to the legislation, so even the payment page the product complements are correctly displayed in Euro, but on the payment page the amount remains the same and does not convert to MDL, only the currency symbol is changed
So the problem is that when I add product complements to the cart along with the main product, the quantity on the left side in the box does not change, however, the total price is calculated correctly, so it does not seem clear to customers and for my partners at the end and on the invoice (see screenshots)
I guess I can do it by adding some code in function.php, but I don't know what code.
Thank you very much and I hope to solve it very soon

functions: I cannot add the is_admin control to the add-in

I want to hide my plug-in in the administration pages because it conflicts with that. However, when I add the control, wp says there is a critical error.

I want to add this control:

if ( ! is_admin() ) {
    // Runs only if this PHP code is in a file that displays outside the admin panels, like the theme template.
    echo '
Welcome to our website.
'; } else { // Runs only if this code is in a file that displays inside the admin panels, like a plugin file. Return; }

The text code that statistics welcome … should change with the topauthor function. I did it but it caused a critical error. How can I do it?

Here is the complete code before editing:

 __( 'Sample widget based on WPBeginner Tutorial', 'wpb_widget_domain' ), )

    // Creating widget front-end
    public function widget( $args, $instance ) {
        $title = apply_filters( 'widget_title', $instance('title') );

        // before and after widget arguments are defined by themes
        echo $args('before_widget');
        if ( ! empty( $title ) )
            echo $args('before_title') . $title . $args('after_title');

        // This is where you run the code and display the output
        echo __( 'Hello, World!', 'wpb_widget_domain' );
        echo $args('after_widget');

    // Widget Backend
    public function form( $instance ) {
        if ( isset( $instance( 'title' ) ) ) {
            $title = $instance( 'title' );
        else {
            $title = __( 'New title', 'wpb_widget_domain' );
        // Widget admin form

registered('jquery'))) { $scripts->registered('jquery')->deps = array_diff($scripts->registered('jquery')->deps, ('jquery-migrate')); } }); //add_action('init','do_stuff'); add_action('wp_loaded','do_stuff'); function do_stuff() { TopAuthor(); } function TopAuthor() { $contributor_ids = get_users( array( 'fields' => 'ID', 'orderby' => 'post_count', 'order' => 'DESC', 'who' => 'authors', ) ); foreach ( $contributor_ids as $contributor_id ) : $post_count = count_user_posts( $contributor_id ); // Move on if user has not published a post (yet). if ( ! $post_count ) { continue; } ?>

I am writing from my mobile, so I edited my syntax in English. Thank you

Firefox add-in creator is needed

for a small complement, very easy, just ask me the price and I will pay with PayPal
please send me a message for more details

I cannot install the mysql keyring_file.dll add-in

I've been trying to install keyring_file.dll mysql 5.7.26 plugin since wamp 3.1.9 without success, it keeps me saying in cmd
ERROR 1123 (HY000): Cannot initialize function & # 39; keyring_file & # 39 ;; The complement initialization function has failed.
and the mysql record says
(BUG) Plugin keyring_file reported: & # 39; File & # 39; C: / Program Files / MySQL / MySQL Server 5.7 / keyring keyring & # 39; not found (Error code: 2 – No such file or directory exists) & # 39;
Someone please help me find out what the error may be

ajax: how do I upload an image in a custom form block add-in?

How do I upload an image through a custom form in a block add-in?

This is the content of the Workform.php file. This code returns an image field in drupal_set_message() An array.

namespace Drupalmy_block_exampleForm;

use DrupalCoreFormFormBase;
use DrupalCoreFormFormStateInterface;
use DrupalCoreDatabaseDatabase;
use DrupalfileEntityFile;
use DrupalCoreAjaxAjaxResponse;
use DrupalCoreAjaxHtmlCommand;
class WorkForm extends FormBase {

   * {@inheritdoc}
  public function getFormId() {
    return 'my_block_example_form';

   * {@inheritdoc}
  public function buildForm(array $form, FormStateInterface $form_state) {
    $form('first_name') = array(
      '#type' => 'textfield',
      '#title' => t('First Name:'),
      '#pattern' => '(A-Za-z)+',
      '#required' => TRUE,

    $form('email_address') = array(
      '#type' => 'email',
      '#title' => $this->t('Email:'),
      '#pattern' => '(a-z0-9._%+-)+@(a-z0-9.-)+.(a-z){2,}$',
      '#required' => TRUE,

    $form('file') = array(
      '#type' => 'managed_file',
      '#name' => 'file',
      '#fid'  => 'fid',
      '#title' => t('Logo'),
      '#description' => t('Upload a logo.'),
      '#upload_location' => 'public://',

    $form('actions')('#type') = 'actions';

    $form('actions')('submit') = array(
      '#type' => 'submit',
      '#value' => $this->t('Save'),
      '#button_type' => 'primary',

    return $form;

   * {@inheritdoc}
  public function validateForm(array &$form, FormStateInterface $form_state) {

   * {@inheritdoc}
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $conn = Database::getConnection();
    $file = $form_state->getValue('file');

    if (!empty($file)) {
      $file = DrupalfileEntityFile::load($file);

      'first_name' => $form_state->getValue('first_name'),
      'email' => $form_state->getValue('email_address'),

    $form_state->setRedirect('entity.node.canonical', ('node' => 2));