How do you query solr server from php in Drupal 8?

I have installed search_api, search_api_solr and search_api_attachments. Also have Solr v.8.4.0 installed.

I installed php SolrClient for Centos 7 following this guidance: https://stackoverflow.com/questions/22959330/fatal-error-class-solrclient-not-found , but I still get "Class 'SolrClient' not found" every time I run

Upgraded to Drupal 8.8.1 Docker 'make environment' error

I recently upgraded to Drupal 8.8.1 and I received the below error after running 'make environment' (the upgrade went well and had no error).

ln: target 'EntityKernelTestBase.php' is not a directory
make: *** [environment] Error 1

The 'EntityKernelTestBase.php' file was removed from 'web/core/tests/Drupal/KernelTests/Core/Entity directory every time I run the 'make environment' command. 

I have no idea what went wrong, it did not happen before the upgrade which was v8.7.6.

Block set to display only on <front> is showing up on Pager links

I've set a Block to display only on the <front>, however, Pager links eg www.domain.com/?page=2 also display said block. The expected result is only display on the main index. Is this normal or am I missing something?
 

ContentEntity Caching (disabling)

I am trying to turn off entity caching for a custom entity in 8.7.3. This is an existing entity if that matters. Described via:

 * @ContentEntityType(
 *   id = "shift",
 *   label = @Translation("Shift"),
 *   base_table = "scheduler_entity_shifts",
 *   entity_keys = {
 *     "id" = "id",
 *     "uuid" = "uuid",
 *   },
 *   static_cache = FALSE,
 *   persistent_cache = FALSE,
 *   translatable = FALSE,
 * )

I added the last 3 lines. I have added a hook:

White spaced added below footer

Hi,

Below every page on my site here: https://chesapeakeregional.com, there is white space being output under the footer. As far as I can tell, it's on every page. 

When I inspect the page, I see this code: <iframe owner="archetype" style="display: none; visibility: hidden;"></iframe> but am unsure where the site may be outputting an iframe below the footer. Any ideas on if this is a Drupal 8/module issue or something added into the code?

Base table or view not found: 1146 Table 'crr.cache_config' doesn't exist:

Hi,

I installed Drupal 8.8.1 successfully but after some time I am getting following error, when I cleared cache. Any idea or help what could be causing this?

Look like cache-config table  is does not exist, when I verify MySql database table not exist message.

Getting table does not exist error message from below tables.

Cache_data,Cache_config,Cache_bootstrap

I did database updates using composer and drush but no luck.

Error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x