Migratin Drupal 8

I've to migrate Drupal 8 into a new server.

Files and DB moved.

I can not set the web folder as root from server, so I created an htaccess in the root folder:

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ /web/$1 [L]

The home page is loaded, with some JS error in console, e icons not loaded.
If I try to navigate the site I've 404, if I try to open the login page it redirects to home page.

I've also clear the cache table and set

$settings['rebuild_access'] = TRUE;

in settings.php

How do I center the map on the GPX track ?

I created a Track content type with a Geolocation GPX File field. I imported a GPX file.

When I visualize the node, the map displays the ocean. The settings in Manage the display don't allow to center the map on the track.

How do I center the map on the GPX track ?

https://www.drupal.org/files/issues/2022-06-14/Screenshot%202022-06-14%2...

Hacked website

How do I recover a hacked Drupal site?...The files have been scanned, and reveal two locations where phishing files have been added...under root / profiles and under root / vendor / stack...the files look to be collecting personnel data, login passwords and credit card details for forwarding to an email address...although oddly the site doesn't have a payment gateway...there could be other malicious code in other files that remains undetected, but generally the file directories looks to be in order...not sure if the database has been corrupted.

Want to control pagination quantity in Drupal8.

Hi Guys, 

I want to control pagination quantity in Drupal 8. 

Like, I want this < 1 2 3 > instead of this < 1 2 3 4 5 6 7 > 

How can I achieve this ?

Trying to convert drupal_attributes() to new Attribute()

Hi, 

I'm converting my D7 theme logic to D8. 

I have converted this D7 line: 

return '<div' . drupal_attributes($element['#attributes']) . '>'. $element['#children'] . '</div>';

into this:

return '<div' . new Attribute($element['#attributes']) . '>'. $element['#children'] . '</div>';

But its throwing the error like this:

TypeError: Argument 1 passed to Attribute::__construct() must be of the type int, array given.

Can anyone please help me ?

How to limit max number of pages on pager query?

There are many index pages (very similar to activity tracker) on my site showing listings of different types of nodes. Many of these have pagers that go more than 1000 pages in past.

I do not want this.

I do not want these pagers to navigate to more than  10 or 20 pages. (Pages beyond that are too old)

How do I achieve this? Where should I put the fix in code?

Thanks in advance for any support

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x