Drupal is up and running but how do I ...?

Error: Drupal\mysql\Driver\Database\mysql\Connection" not found

When I upload Drupal from my local environment to the server, I encounter the following error. The PHP version is 8.1, the database is 5.7, and Drupal is 10.2.2. The server environment and the local environment are basically the same. I have tried various methods, and I am sure the database is not the problem.(I used the Drupal website program from my local environment and connected to the database on the server, and it works normally).

but it keeps displaying the following error.

Xss::filter on user entered URL (Reflected cross-site scripting)

If an end user is subjected to reflected cross-site scripting and enters a URL as such https://example.com/<script>alert('alert')</script>. 

Does Drupal run it through its static function Xss::filter as described in the API Docs Drupal 10.3Xss.phpXss ?

Is this accurate? If not, then what is the process flow?

Thank you in advance,

Mark

[SOLVED] JS library does not load from theme.libraries.yml

I am trying to load adsense JS code into the header. But it's not showing. I'm using:

googleads:
  header: true
  js:
    https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxx: { type: external, attributes: { async: true; crossorigin: anonymous } }

Another one however shows properly:

How to load an image from Wiki Commons fast?

There is an image weighting 10 MB hosted on Wiki Commons which I load via its URL.

#element {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/example.jpg');
}

How can I load it fast directly from Wiki Commons?

I don't want to download the image, compress it and then upload the image to be a local one, rather, I want to load it from Wiki Commons directly, just a bit faster. What then will you suggest me to try?

drupal 6.38 migration from live to local, images not showing

i am archiving a old site on a local machine running xampp that will display the site in a museum. it is old drupal 6.38.

i have successfully migrated it and everything works except the images are not displaying and this site has 7gigs of historical images.

the old image path shows http://localhost/sites/default/files/scenic stuff 001resized.jpg 

Private folder filled-up with generated sample images

I have managed a Drupal site for years, from version 7 through 10, and just recently noticed a strange behavior: thousands of images named generateImage_xxxxxx.jpg are being generated into the site's private folder. I have no idea which module is responsible, and I can't find anything related to this in the server logs. Any idea what could be causing this issue?"

Pages

Subscribe with RSS Subscribe to RSS - Post installation