Account created on 27 February 2011, about 14 years ago
#

Recent comments

🇮🇹Italy trickfun

Thank you i'mbatman
but the feature print system node url nor the alias.
Can you check?

🇮🇹Italy trickfun

Have you clean the cache?
Look inside metatag\Plugin\Field\FieldFormatter if MetatagEmptyFormatter exists.
Thank you

🇮🇹Italy trickfun

You need to use MetatagFormatter not EmptyFormatter.

🇮🇹Italy trickfun

@aditi saraf
- go to node article configuration page
- add metatag field to node
- go to your view
- setup you view as table of fields
- add new field to view. search for metatag field name.
- run the view
- the metatag column field is empty.

🇮🇹Italy trickfun

@aditi saraf
The problem is not the metatag into html page but the value of metatag in view table.
Add metatag field to your view and show me the result table with metatag column.

The metatag column is empty.
Thank you

🇮🇹Italy trickfun

@aditi saraf try my patch
thank you

🇮🇹Italy trickfun

@tostinni, create a simple view of articles.
When i add metatag field i have only the "Empty formatter" in the formatter select.
The formatter code is:

/**
 * Plugin implementation of the 'metatag_empty_formatter' formatter.
 *
 * @FieldFormatter(
 *   id = "metatag_empty_formatter",
 *   module = "metatag",
 *   label = @Translation("Empty formatter"),
 *   field_types = {
 *     "metatag"
 *   }
 * )
 */
class MetatagEmptyFormatter extends FormatterBase {

  /**
   * {@inheritdoc}
   */
  public function viewElements(FieldItemListInterface $items, $langcode) {
    // Does not actually output anything.
    return [];
  }

}

How can print meta values if the formatter returns empty array?

🇮🇹Italy trickfun

Thank you dvmanjunath
Finally a configuration that works properly!!

🇮🇹Italy trickfun

Hi all,
any news here?

Aggregation doesn't work from Drupal 10.X
It's a problem speed up a site without compress css and js.
Thank you

🇮🇹Italy trickfun

Why doesn't provide a better button? or a button like action?
I don't want override button inside admin theme.
Thank you

🇮🇹Italy trickfun

The patch show correct value.

🇮🇹Italy trickfun

Patch #54 works fine on Drupal 11.1
Thank you

🇮🇹Italy trickfun

Sorry same as https://www.drupal.org/project/token/issues/1614456 [current-page:query:?] should fall back to empty string Needs work
but i thnk is a bug not a feature request

🇮🇹Italy trickfun

Same error for me.
Drupal 11.1
Column is empty

🇮🇹Italy trickfun

Hi simonbaese,
here new information

ResponseText: The website encountered an unexpected error. Try again later.Error: Unknown named parameter $__disable_customize__ in Drupal\symfony_mailer\EmailFactory->initEmail() (line 92 of modules/contrib/symfony_mailer/src/EmailFactory.php). Drupal\symfony_mailer_queue\Service\EmailFactory->newTypedEmail('easy_email', 'user_password_recovery', Array, 1) (Line: 87)
Drupal\symfony_mailer_queue\Plugin\QueueWorker\SymfonyMailerQueueWorker->processItem(Object) (Line: 107)
Drupal\queue_ui\QueueUIBatch->step('symfony_mailer_queue', Array) (Line: 297)
_batch_process() (Line: 139)
_batch_do() (Line: 95)
_batch_page(Object) (Line: 52)
Drupal\system\Controller\BatchController->batchPage(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 593)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Drupal 11.1
Symfony Mailer 1.5.0

Enable module
Goto /admin/config/system/mailer/policy/_
Add Queue sending
Goto /user/password
Recover password

I use Queue UI 3.2.1
Goto /admin/config/system/queue-ui
Execute Sends emails and retries failures

Thank you

🇮🇹Italy trickfun

Hi leocosmos,
The permission is right.
Other folders were created without problems
The webserver configuration and the permissions are the same in all my drupal installation.

Thank you

🇮🇹Italy trickfun

When D11 version will be available?
Thank you

🇮🇹Italy trickfun

I can't install Commerce 3
Patch is installed but i can't update to 3 version.
Thank you

🇮🇹Italy trickfun

Patch checks user configuration and change status condition.

🇮🇹Italy trickfun

Same error for me.
I need to uncheck "Shippable" and "Has dimensions" traits before remove module.
May be useful a warning before uninstall.

🇮🇹Italy trickfun

Is this module still alive? it looks dead.
any updates from authors?

Thank you

🇮🇹Italy trickfun

Thank you zegenuity
Can you provide better documentation to send mail programmatically?

🇮🇹Italy trickfun

I encountered the same error

Docker image: Ubuntu 20.04
PHP: 8.3
Drupal 10.4.1
Nginx 1.27.3

No css/js folder created inside default/files.
Thank you

🇮🇹Italy trickfun

@megachriz
in production i haven't problem. all item processed
strange behavior

🇮🇹Italy trickfun

Thank megachriz,
info for you,
if i select "directory" fetcher and running process using "Import" i can process only 200 items.
if i select "upload file" fetcher and i running process using "Import" i can process all items.

🇮🇹Italy trickfun

When i run feed from feed process page i can't process more than 200 items.

If i setup "Force update", i can update the first 200 items.
If i don't flag "Force update" i can update 0 items.
Only 200 items are processed.

To update more than 200 items i need to change line_limit in yml file.
So line_limit is the max items processed.

I think is important to have this value as field in feed configuration form.
Thank you

🇮🇹Italy trickfun

Hi shubham_pareek_19
same error for file field.

Thank you

🇮🇹Italy trickfun

In another project i have this error
module 2.0.9 and patch #270

Uncaught TypeError: Drupal.facets is undefined
    attach https://tc.algra.it/modules/contrib/facets/js/soft-limit.js?v=10.3.10:14

soft-limit.js hasn't Drupal in (function ($, once) {
row 6 and row 73

and

TypeError: settings.facets_views_ajax is undefined
    updateFacetsSummaryBlock https://tc.algra.it/modules/contrib/facets/js/facets-views-ajax.js?som2ct:227

inside updateFacetsSummaryBlock function i don't have settings.facets_views_ajax variable
i don't install summary block.

I update patch #270 with both fix

🇮🇹Italy trickfun

Patch #270 works for me with version 2.0.9.
Thank you

🇮🇹Italy trickfun

Same issue here https://www.drupal.org/project/commerce/issues/3373306#comment-15866731 Customers cannot edit or delete payment methods during checkout Active
I think that editing should be directly in checkout because a large number simply close the browser window and never return if there isn't an edit button.

Thank you

🇮🇹Italy trickfun

I agree. Editing should be directly in checkout because a large number simply close the browser window and never return if there isn't an edit button.
Patch doesn't work on checkout.

🇮🇹Italy trickfun

This is my controller to generate PDF view with batch

  /**
   * Starts the batch process to flush image styles.
   */
  public function generate() {

    $destination = \Drupal::request()->get('destination');

    // Create a new batch builder.
    $batch_builder = new BatchBuilder();

    // Set batch title and messages.
    $batch_builder->setTitle($this->t('Generating PDF'))
      ->setInitMessage($this->t('Starting generating PDF...'))
      ->setProgressMessage($this->t('Generate PDF.'))
      ->setErrorMessage($this->t('An error occurred during the generating process.'));

    // Add a batch operation 
    $batch_builder->addOperation([__CLASS__, 'buildPDF'], [$destination]);

    // Set a callback to handle completion.
    $batch_builder->setFinishCallback([__CLASS__, 'finishBatch']);

    // Set the batch.
    batch_set($batch_builder->toArray());

    // Return a redirect to the batch processing page.
    return batch_process();
  }

  /**
   * Flushes a single image style.
   *
   * @param string $style_name
   *   The name of the image style to be flushed.
   * @param array $context
   *   The batch context.
   */
  public static function buildPDF($destination, &$context) {

    // Initialize progress counter, which will keep track of how many items
    // we've processed.
    $context['sandbox']['progress'] = 0;

    $context['results'] = [
      'automatic_download' => TRUE,
      'redirect_url' => $destination,
    ];

    $export_type = 'pdf';
    $view_name = '<view_name>';
    $display_id = 'page_1';

    // Create the Print engine plugin.
    $config = \Drupal::config('entity_print.settings');
    $view = \Drupal::entityTypeManager()->getStorage('view')->load($view_name);
    
    $executable = $view->getExecutable();
    $executable->setDisplay($display_id);

    $scheme = 'public';
    $filename = 'pdf_catalog/name.pdf'; 

    $print_engine = \Drupal::service('plugin.manager.entity_print.print_engine')->createSelectedInstance($export_type);
    // The Print is sent straight to the browser.
    $path = \Drupal::service('entity_print.print_builder')->savePrintable([$view], $print_engine, $scheme, $filename);

    $context['sandbox']['progress'] = 1;
    $context['results']['vde_file'] = $path;
    $context['finished'] = 1;
  }

  /**
   * Callback to handle batch completion.
   *
   * @param bool $success
   *   Whether the batch process was successful.
   * @param array $results
   *   The batch results.
   * @param array $operations
   *   The remaining batch operations.
   */
  public static function finishBatch($success, $results, $operations) {

    // Set Drupal status message to let the user know the results of the export.
    // The 'success' parameter means no fatal PHP errors were detected.
    // All other error management should be handled using 'results'.
    $response = new RedirectResponse($results['redirect_url']);
    if ($success && isset($results['vde_file']) && file_exists($results['vde_file'])) {
      // Check the permissions of the file to grant access and allow
      // modules to hook into permissions via hook_file_download().
      $headers = \Drupal::moduleHandler()->invokeAll('file_download', [$results['vde_file']]);

      // Require at least one module granting access and none denying access.

      // Create a web server accessible URL for the private file.
      // Permissions for accessing this URL will be inherited from the View
      // display's configuration.
      $url = \Drupal::service('file_url_generator')->generateAbsoluteString($results['vde_file']);
      $message = t('Export complete. Download the file <a target="_blank" download href=":download_url"  data-download-enabled="false" id="vde-automatic-download">here</a>.', [':download_url' => $url]);
      // If the user specified instant download than redirect to the file.
      if ($results['automatic_download']) {

        // Prevents browser from displaying JSON data if automatic download
        // is selected.
        if (!preg_match("/^.*\.(json)$/i", $results['vde_file'])) {
          $message = t('Export complete. Download the file <a target="_blank" download href=":download_url" data-download-enabled="true" id="vde-automatic-download">here</a> if file is not automatically downloaded.', [':download_url' => $url]);
        }
      }

      \Drupal::messenger()->addMessage($message);
      return $response;
    }
    else {
      $message = t('Export failed. Make sure the private file system is configured and check the error log.');
      \Drupal::messenger()->addError($message);
      return $response;
    }

  }

🇮🇹Italy trickfun

Very usefull with view.
Thank you

🇮🇹Italy trickfun

Patch doesn't work with batch process and savePrintable method.
Theme resolver get right theme but PDF is rendered with admin theme again.

Production build 0.71.5 2024