8 – The title of the page is not made after updating the page (possible cache problem)

That's the problem: the first time I access a page after a cache to rebuild, the title of this page is displayed correctly. But when I refresh (or access it later after navigating to other pages), the title disappears completely.

my page title.html.twig is as follows

    {% if title %}
      {{ title }}
    {% endif %}

and that does not pass the condition check.

If I debug with a stopping point in HOOK_preprocess_page_title () I see that the title is no. But if I debug HOOK_preprocess_page () the title has the correct markup. So it seems that somewhere between these two brackets, the title is being deleted / ignored.

Any ideas on why this is happening or where I could look for additional debugging?

I am currently using this workaround (included in case someone else is looking for a solution to this problem)

    function HOOK_preprocess_page_title(&$variables) {
      if (is_null($variables('title'))) {
        $request = Drupal::request();
        $route_match = Drupal::routeMatch();
        if (isset($request) && isset($route_match)) {
          $title = Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject());
          if(!empty($title)) {
            $variables('title') = DrupalCoreRenderMarkup::create('' . Html::escape($title) . '');
          }
        }
      }
    }

but I would rather find the cause of this behavior and fix it.

Thank you!

samsung – The phone is not updating!

I have a G955U Galaxy S8 + AT & T Factory unlocked under Android 7.0

Baseband Version: G955USQU1AQC9 Android Security Patch – April 1, 2017

I do not live in the United States and currently in the Philippines. The phone is working fine and the signal is too, but I can not get OTA updates. Whenever I try to update, it means that it is up to date.

I've tried different ways to update it that I've read online. The last one that I tried is following the steps described in this thread, but it gave me this output https://prnt.sc/oqjnp6

My phone is not rooted or anything other than a normal phone. I'm just trying to update it with the latest version Android 9.0 (Pie). I just created this thread for the reason that someone could help me update my phone.

I've also tried to update via SD card and Smart Switch, but nothing works. On Smart Switch, it is indicated that my device is up to date: QC9 (ATT).

Error updating python-minimal

When I run an update on Ubuntu 18.04, this indicates that the packages below can be upgraded. But when I run sudo apt upgrade it does not upgrade it. I've tried to upgrade individually but there seems to be a break in the system.

libpython-dev/bionic 2.7.15-3~oibaf~b amd64 [upgradable from: 2.7.15~rc1-1]
libpython-stdlib/bionic 2.7.15-3~oibaf~b amd64 [upgradable from: 2.7.15~rc1-1]
python/bionic 2.7.15-3~oibaf~b amd64 [upgradable from: 2.7.15~rc1-1]
python-dev/bionic 2.7.15-3~oibaf~b amd64 [upgradable from: 2.7.15~rc1-1]
python-minimal/bionic 2.7.15-3~oibaf~b amd64 [upgradable from: 2.7.15~rc1-1]

Is it possible to update these packages?

After updating the drupal to 8.5.15, I get this error -You asked for a nonexistent service "entity.memory_cache"

I receive this error in the browser.

The website has encountered an unexpected error. Please try again later.

When I checked the error log, I had this in the error log.

PHP exception not captured
Symfony Component DependencyInjection Exception ServiceNotFoundException:
"You requested a nonexistent service" entity.memory_cache ".

After that, I tried to run drupal cr, then I had this mistake-

You have requested a non-existent service "entity.memory_cache".

mongodb – The PUT operation creates a new embedded document instead of updating it on the Api platform

I am stuck on a problem that I can not solve for a few days. As noted in the title, the Annotation-based PII Platform Operation PUT does not work as expected with respect to the partial update of a document embedded with MongoDB ODM.

Indeed, despite all the different configurations that I have tried, I have not been able to update an embedded document already defined in a parent document.

I have tried to change the annotations in the relevant documents, for example by modifying the normalization and denormalization groups, by trying different embedded document strategies, by defining specific itemOperations for PUT methods, and so on. The documentation is quite mediocre on this specific problem because it seems primarily designed for SQL operations using Doctrine ORM.

The most "interesting" information I've found comes from this chapter of the Api platform documentation: https://api-platform.com/docs/core/serialization/#denormalization

As it is written "If an @id key is present in the embedded resource, the object corresponding to the given URI will be retrieved via the data provider. Any modification of the embedded relation will also be applied to this object. . ", the document should be retrieved, but it is not.

I have a parent document, Page, with an embedded document, Basic, in an embedOne relationship.

/**
 * @ApiFilter(SearchFilter::class, properties={"basic.name": "ipartial", "basic.title": "exact"})
 * 
 * @ApiResource(
 *  normalizationContext={"groups"={"read"}},
 *  denormalizationContext={"groups"={"write"}}
 * )
 *
 * @ODMDocument
 */
class Page
{
    /**
     * @ODMId(strategy="increment", type="integer")
     */
    private $id;

    /**
     * Embedded document with data shared by all Pages and Modules such as name, title, etc.
     * 
     * @AssertValid
     * @Groups({"read", "write"})
     * @ODMEmbedOne(targetDocument=Basic::class, strategy="set")
     */
    private $basic;
}

On the other side, I have a basic embedded document:

/**
 * @ApiResource()
 * 
 * @ODMEmbeddedDocument
 */
class Basic
{
    /**
     * @ApiProperty(identifier=true)
     * @Groups({"read", "write"})
     * @ODMId(strategy="INCREMENT", type="integer")
     */
    public $id;

    /**
     * @Groups({"read", "write"})
     * @ODMField(type="string")
     */
    private $title;

    /**
     * @Groups({"read", "write"})
     * @ODMField(type="string")
     */
    private $name;

    /**
     * @Groups({"read", "write"})
     * @ODMField(type="string")
     */
    private $category;
}

So when I make a "POST" request on / api / pages like this:

{
    "basic": {
        "title": "Master",
        "name": "Peter Jackson",
        "category": "Director"
    }
}

I receive this answer 201:

{
    "@context": "/api/contexts/Page",
    "@id": "/api/pages/11",
    "@type": "Page",
    "basic": {
        "@id": "/api/basics/21",
        "@type": "Basic",
        "id": 21,
        "title": "Master",
        "name": "Peter Jackson",
        "category": "Director"
    }
}

But I make a request "PUT" on this resource via api / pages / 11 with these parameters:

{
  "basic": {
    "title": "Master",
    "name": "Steven Spielberg",
    "category": "Director"
  }
}

I receive this answer 200:

{
    "@context": "/api/contexts/Page",
    "@id": "/api/pages/11",
    "@type": "Page",
    "basic": {
        "@id": "/api/basics/22",
        "@type": "Basic",
        "id": 22,
        "title": "Master",
        "name": "Steven Spielberg",
        "category": "Director"
    }
}

As you can see, a new basic embedded document is generated for the PUT operation in which the values ​​defined in the request are used. But I do not want this to happen, I want to systematically update the embedded document created because it was created. Thank you very much if you know how to handle this. Cheers!

audio – MacBook Pro 2019 plays sound when updating

Just changed my old Macbook for a new MacBook Pro 2019.

When updating to 10.14.6, the sound playback started even before the end of the update (the automatic playback was done from a tab that I had on Chrome before the update). He kept playing until I opened and closed the tab.

Is this behavior normal? How can I avoid that? Has anyone encountered anything similar?

centos – Is it normal for apache to overwrite your configuration files when updating?

I have updated Apache (httpd) via yum on centos. Unexpectedly, apache could not start after the update. After investigating, I noticed that it was regenerating a whole series of conf files in conf, conf.d and conf.modules.d. I think these are the default values, which I removed during my initial setup.

This seems dangerous, for example if the server starts correctly with all these new configuration files.

Is this the normal behavior when updating Apache on Centos? If not, what could have caused this?

7 – SQL error while updating to utf8mb4

I have followed the instructions of the Drupal page for updating uft8mb4 with the exception of 1 table that displays the errror below:

https://www.drupal.org/node/2754539

Error
SQL query:


ALTER TABLE `file_managed` CONVERT TO CHARACTER SET utf8mb4 COLLATE 
utf8mb4_general_ci
MySQL said: Documentation

#1062 - Duplicate entry 'public://listings/4232.jpg' for key 'uri'

What should I do to be able to update?

sharepoint online – "Intermediate step forbidden" error message – Updating the SP Designer 2013 permission group

When I try to run a Designer 2013 workflow with an application step, the following results are taken from my log:

25/07/2019 4:20 pm
HRO ID: i: 0 # .f | membership | bob@bob.gov
25/07/2019 4:20 pm
{"__metadata": {"type": "SP.User"}, "LoginName": "i: 0 # .f | membership | bob@bob.gov"}
25/07/2019 4:20 pm
*** User Add Response Code: Forbidden

I've set up my site to allow the application steps. I can create them in my Designer workflows and publish them successfully. I know that the URL through which I pass the REST call is correct because if I paste the URL directly into my browser, the result obtained shows me the actual members of the group of permissions that I am trying to update.

What should I look in the configurations to remedy this?

magento2 – Magento 2 generates thousands of temporary table queries when updating the product.

I have a Magento 2.2.5 store with about 20,000 products and about 250 categories organized in a tree of 2 sub-categories at most.

One of the most important categories contains 5,000 products. When I try to remove a product from the category, or delete the category of a specific product, the server takes more than 2 minutes and expires.

After reading the log general_log, I've seen thousands of queries like this:

SELECT `e`.* FROM `tmp_select_e5e424ef98e4a8a4026e18df9d8088e0` AS `e` WHERE (hash_key = '1_44083')

the peak of the database server at 100%:
enter the description of the image here

I think it has something to do with url_rewrites, but I do not understand how this is a problem with just 5k products.

Are there any configurations that I can set up, perhaps losing functionality, to be able to do something as simple as removing a product from a category?

Thank you so much.