Cache sometimes is not being updated on saving operations

Cache sometimes is not being updated on saving operations

I’m maintaining a pretty big news site, with many nodes and with many users who can create and edit nodes. The site is using the Paragraphs and the Memcache modules. Editors can rearrange the blocks on the front page, add and edit articles. The problem is that... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

I am trying to have my module alter menu_ui functions. Changing my module’s weight didnt help and I read that hook_module_implements_alter is the way to go. So, as described here I am appending my module to the end of the implementations: /** * Implements... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Using PrivateTempStore for anonymous users with Internal Dynamic Page Cache & Internal Page Cache modules

I’m creating a module which interacts with an external API that handles authentication and completely bypasses the Drupal authentication system. This means that users logged-in from the API side are seen as anonymous users. The module utilizes the... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Filter by field user role permission

I have created View permission field in the events content type. Its field type is Role, so I can select which roles can see the node. This works fine, but when I add events content type in the view this will displays all the data. I want to filter the data by the... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

How to store Ajax Return value into variable after clicking the Submit button

I have created form with fields of State and City. After selecting the state appropriate city records will be loaded into city field till now working fine but after clicking the submit button I am not able to store city value into variable called $data1. Please guide... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Why do I get a "URL not found" error while the image is on the server?

I have a Drupal site which I have just migrated to a different Linux server for development. The site seems to be working more or less. However, one problem persists: None of the images is shown. Instead, if I click on an image, it says: “Requested URL not... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Display Today’s Birthday in Block

I have a Content Type ‘Teams’ which have name as Title field, Image field and Date of birth field using Date module. I want to display Today’s birthday in block. I’ve tried using views but could not achieve it. Is it possible to display in... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Issue while modifying and importing the manually content type data

I have a scenario like this: I am using Feeds Importer to import one content type data. I am using GUID field as the unique field. Also, I am exporting these all the nodes of this content type using Views into a .csv file. My problem is that users can create nodes... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Change icon class in "Add to cart" button

I am using Drupal 7, Ubercart, and Bootstrap. The default Add to cart button looks like this: <button id=”edit-submit-270″ class=”node-add-to-cart btn btn-success form-submit” value=”Add to cart” name=”op”... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

How do I create and use a custom hook?

I posted a question here, which had one suggestion, but no answer. Does anyone have any advise on how to implement a custom hook in Drupal 8 which will allow other modules to update a table of contents which is created by a parent module? The table of contents will be... read more
How do you use drupal’s devel krumo ddebug_backtrace()?

How do you use drupal’s devel krumo ddebug_backtrace()?

I’ve been trying to debug a weird bug on Drupal 7 for awhile. It happens randomly on my site as it’s hard to reproduce. I’m able to finally get ddebug_backtrace() to run when the error happens. The error breaks all of my views on the site when it... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Programmatically do something when a node is updated

I want to do something when a node gets updated. To keep it simple, lets say display a drupal message. hello_world.routing.yml hello_world: path: /node/{node} defaults: _controller: Drupalhello_worldControllerHelloWorldController::hello_world_entity_update... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Hide the term id on autocomplete widget

Hide the term id on autocomplete widget How can I hide the term id on autocomplete widget ? I use drupal 8. read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

TypeError: Argument 1 passed to EntityOperations::getEntityTranslation() must implement interface EntityInterface, null given [closed]

When I go to admin/content I’m getting the following error, whereas at the same time node/{node_id} is accessible just fine. The website encountered an unexpected error. Please try again later. Recoverable fatal error: Argument 1 passed to... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

How to display a comma-separated list of multiple field values?

How can I render for example each taxonomy terms value as an inline comma-separated list (or add between each of them a “/” Character) in my field template field–node–field-tags.html.twig file or even visually with css? read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

How the get all the child menu’s Node IDs?

I’ve a very simple task to do in Drupal 8, but I’ve hard time to find the proper way to do that. I have a simple menu like this (all basic pages). Company Organization Values Terms Services Team And when we go to Company page, I want to display all three... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Update commerce cart block when product added through ajax

Hii How can I update commerce_cart_block when my product is added through ajax. Any suggestion will be helpfull. read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

How to make blob file downloadable?

I have created a Module to make blob file available for Download in Drupal 7 . Below my code for .module file <?php function blobfile_block_info() { $blocks = array(); $blocks[‘blobfile_block’] = array( ‘info’ => t(‘Blob Files... read more
An invalid implementation mymodule_form_alter was added by hook_module_implements_alter

Sending email notifications to webform submissions

I am trying to create a rule that will send an email to a list of webform submissions, notifying them when new content is created. So far, here’s what I have: Event: after saving new content of type [type] Conditions: content is of type Actions: Using a Rules... read more