🇫🇷France @mankin

Account created on 9 July 2014, over 10 years ago
#

Recent comments

🇫🇷France mankin

Same here.
Unable to patch for commerce_license release 3.0.1...

🇫🇷France mankin

It was my template.

When i change template, it works.

Nice!

🇫🇷France mankin

Need help here please...

🇫🇷France mankin

This is the code part i change according to you, but no results in : notice('Custom submit handler called')...

/**
 * Custom validation handler to store form values.
 */
function bee_mailer_form_validate($form, FormStateInterface $form_state) {
  \Drupal::logger('bee_mailer')->notice('Custom validation handler called');

  $values = $form_state->getValues();
  $stored_values = [
    'first_name' => $values['first_name'],
    'last_name' => $values['last_name'],
    'email' => $values['email'],
    'phone' => $values['phone'],
    'comment' => $values['comment'],
  ];
  
  // Store values in form state
  $form_state->set('bee_mailer_temp_values', $stored_values);

  \Drupal::logger('bee_mailer')->notice('Stored form values in form state: @values', ['@values' => print_r($stored_values, TRUE)]);
}

/**
 * Custom submit handler for BEE reservation forms.
 */
function bee_mailer_reservation_submit($form, FormStateInterface $form_state) {
  \Drupal::logger('bee_mailer')->notice('Custom submit handler called');

  // Retrieve values from form state
  $stored_values = $form_state->get('bee_mailer_temp_values');
  \Drupal::logger('bee_mailer')->notice('Retrieved stored values from form state: @values', ['@values' => print_r($stored_values, TRUE)]);

 

🇫🇷France mankin

Nice job! I'll recommend and show how to install EPT Bundle in a Youtube Video in french as soon ;-)

🇫🇷France mankin

Thanks!

I found a js error : Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 135168 bytes) in /****/web/core/lib/Drupal/Core/Field/WidgetBase.php on line 626".

I think this is not a problem with mercury editor, but memory. If i allocate 1024Mo to my website, i got the same error type.

"
Une erreur HTTP AJAX s'est produite.
Code de statut HTTP : 200
Debugging information follows.
Path: /node/2/edit?destination=/admin/content&ajax_form=1
StatusText: parsererror
ResponseText :
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 135168 bytes) in ****/web/core/lib/Drupal/Core/Field/WidgetBase.php on line 626
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in ****/web/vendor/composer/ClassLoader.php on line 576
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in ****/web/vendor/composer/ClassLoader.php on line 576"

This i my actually server's stats:
MemTotal: 3.73 GB
MemFree: 1.04 GB
MemAvailable: 1.59 GB

Production build 0.71.5 2024