magento2.4 – Static content doesn’t load with nginx, works with apache

I’m setting up a staging server for a server that’s already in production and functioning with Apache. My staging I’m setting with nginx because I want to test the performance difference.

When I access the store, no CSS/JS/images get loaded and I get a lot of “not found” on nginx error log.

All errors are like this:

2021/01/22 19:09:18 (error) 248516#248516: *26 open() "/var/www/html/WEBSITE/pub/static/version1611342481/frontend/Nexa/STORE/fr_CA/Magento_Catalog/images/product/placeholder/image.jpg" failed (2: No such file or directory), client: redactedIP, server: http://URL/, request: "GET /pub/static/version1611342481/frontend/Nexa/STORE/fr_CA/Magento_Catalog/images/product/placeholder/image.jpg HTTP/1.1", host: "WEBSITE", referrer: "WEBSITE/category/subcategory/product.html"

(redacted because of NDA)

There’s no folder version1611342481 inside pub/static, but there’s no folder like that as well on production server and it’s working alright. Same code and versions on both.

How can I debug/solve this?

Taxonomy term lookup during content migration is failing

I’m importing some data from a CSV file as nodes into my site. I’m having trouble with importing values into a entity reference field (which is a taxonomy term with multiple values).

Here’s just that field (not going to write the entire migrations file as everything else but that field works)

  field_cars_available:
    - plugin: skip_on_empty
      source: "Audi, BMW, Citroen, Renault, Volvo"
      method: process
    - plugin: entity_lookup
      source: "Audi, BMW, Citroen, Renault, Volvo"
      value_key: name
      bundle_key: vid
      bundle: proposed_usage
      entity_type: taxonomy_term
      ignore_case: true
    - plugin: explode
      delimiter: ','
    - plugin: callback
      callable: trim

I’ve replaced the source file with the actual value for that field (so that it’s more clear).
The only error I get is that the migration failed.

Any help?

8 – Unable to get titles to show up as higher priority in search than content

I have a website I am working on that has a TON of content. The client has noticed that when searching for titles in the site search, it seems to prioritize the body content over the title.

So I changed the search index for titles to be fulltext with a boost of 13. With the rendered output set to a boost of 1. Then I reindexed and that didn’t fix it. I did a full rebuild of tracking information. Same problem.

I found this article: https://medium.com/@easternstandard/how-to-configure-drupal-8-text-search-to-return-better-more-intuitive-search-results-fe0a78136ad7

And followed the instructions there (pretty much what I had already done) and reindexed. Same issue.

An example of this is that we have an article about the response to covid where the phrase “response to covid” is part of the title. When I search for that phrase I do not see it in any of the first-page search results. It is set to show 20 items. In fact, the article in question doesn’t come up until result number 39. None of the prior articles seem to have covid in the title at all. Even searching with quotations makes no difference.

This is currently using the database search/index. I am tempted to implement Solr. But that is a whole-nother ball of wax and I am on a deadline right now.

We are running Drupal 8.9.9 and the Search API 8.x-1.18.

What can I do differently to make it value the title over the rendered content?

nodes – Clip sites to a specific content type

I’m searching for a possibility to clip websites to Drupal much like the Clipper Chrome extension for Notion or Evernote.

In Notion, it lets me add Youtube videos to any database, takes the page title, the platform icon, the thumbnail, the URL and embeds the video to a new entry in my database. I would like to do the same with Drupal and expend on the data which is clipped like getting the channel and create a relation from one content type to another.

I will provide SEO friendly Article – 100 Unique Content in 24 hrs for $1

I will provide SEO friendly Article – 100 Unique Content in 24 hrs


Are you looking for SEO Friendly Unique Content?

You are in the right place!!!

Quality of your content plays a major role in improving ranking in search engines. Content which is written professionally have lower bounce rate and gets plenty of social media attention. If you have very nicely design website but content is duplicate then its not worth. SEO Friendly Unique content get less time for rank in first compare to other. So it is very important for website to have unique content to rank in search engine.


My services:-

  • Free of misspellings and grammars errors
  • Copyscape passed content (Plagiarism Free)

Topics:-

Software
Networking
Tech
Health
Beauty
& Others


Note:

100% money-back guaranteed


If you’ll not satisfied with my work I’ll return your money.

Contact me before placing the order to avoid any difficulty


.(tagsToTranslate)article(t)content(t)uniquecontent(t)seocontent(t)unique(t)seo

I will provide excellent content creation and SEO friendly writing services for $5

I will provide excellent content creation and SEO friendly writing services

Crisp & Compact – 500 Words

Short, Attention Grabbing, and Well Researched Content. All niche articles!

Content Is Key in Digital Marketing

Content should be sharp and pointed well on target. It is of utmost importance

that your website looks and sounds attractive to visitors.

The content we write for you will be:

  • 100% Original – Each article will be unique and guaranteed to pass Copyscape.
  • Easy to Understand – Articles will be distilled into easy to understand language.
  • High Quality – Each article will be in a proper format, Grammarly Approved, and spell-checked.
  • Engaging – Each post will be well-researched, keyword-driven, and engaging.
  • On-time – You will get on-time responses and reliable communication.

Contact me before you place an order.

Order Now or Regret Later!

It is not every day when you see a content service offering you Copyscape plus Grammarly approved articles regularly.

.

entities – Clip (web)sites to a specific content type in drupal

i’m searching for a possibility to clip websites to drupal much like the “Clipper” chrome extensions for notion or evernote? (https://chrome.google.com/webstore/detail/save-to-notion/ldmmifpegigmeammaeckplhnjbbpccmm?hl=de)

In notion it lets me add youtube videos to any database, takes the page title, the platform icon, the thumnail, the url and embeds the video to a new entry in my database. I would like to do the same with drupal and expend on the data which is clipped like getting the channel and create a relation from one content type to another.

content type – How do I make fields for documents but not the doc set they reside in?

I need to be able to create document sets where each document with the doc set has a required field, without requiring that that field be required when the doc set is created.

When I click on “+ New” in our document library, the only option is to create a new document set. This is how we want it, but at the Doc Set level, we only care about a location and borrower name as seen in the following image:
Required Fields for Document Set

Once we click save, however we need to have a required column (called “Borrower Doc Type”) that ensures users designate what type of borrower document they’re uploading to the document set. This is a Choice column that will be different for each document with in the doc set. We have tried the following:

  • adding the custom “Borrower Doc Type” column to the Doc Set as required – This makes it so that the user is prompted to add the “Borrower Doc Type” when the doc set is created, but that is wrong because there is no single Doc Type that applies to the entire Document Set. We just need to know the document type of the files added to the doc set.
  • adding the custom “Borrower Doc Type” column to the document library – This ensures that the user doesn’t have to enter the Borrower Doc Type when the document set is created, but it does not make the column required for documents uploaded to the document set.

We’re using SharePoint Online via Office365. I feel like I’m running around in circles trying to figure this out, but I’m positive it should be a simple solution.

content type – Hot do I make fields for documents but not the doc set they reside in?

I need to be able to create document sets where each document with the doc set has a required field, without requiring that that field be required when the doc set is created.

When I click on “+ New” in our document library, the only option is to create a new document set. This is how we want it, but at the Doc Set level, we only care about a location and borrower name as seen in the following image:
Required Fields for Document Set

Once we click save, however we need to have a required column (called “Borrower Doc Type”) that ensures users designate what type of borrower document they’re uploading to the document set. This is a Choice column that will be different for each document with in the doc set. We have tried the following:

  • adding the custom “Borrower Doc Type” column to the Doc Set as required – This makes it so that the user is prompted to add the “Borrower Doc Type” when the doc set is created, but that is wrong because there is no single Doc Type that applies to the entire Document Set. We just need to know the document type of the files added to the doc set.
  • adding the custom “Borrower Doc Type” column to the document library – This ensures that the user doesn’t have to enter the Borrower Doc Type when the document set is created, but it does not make the column required for documents uploaded to the document set.

We’re using SharePoint Online via Office365. I feel like I’m running around in circles trying to figure this out, but I’m positive it should be a simple solution.

Do you find ads distracting to your content?

I'm wondering if using Google Adsense is worth it for your blog. What does an average CPM look like? And do you find ads distracting to your content?

Thanks