404 error on new pages but only for non logged in users?

So. Issue as title. Have researched lots but am near insanity!

  1. Have done all the ‘Refresh permalink’ thing
  2. Have edited .htaccess(*) and put generic rewrite code and refreshed permalinks again – the code gets overwritten with the original .htaccess rewrite code though in FTP the ‘date modified’ on the .htaccess file doesn’t change (!??!)

Tried adding new menu and new page from scratch – this also returns 404 unless logged in as a user.

Any ideas please?

(*) Original .htaccess code replaced with:

    ># BEGIN WordPress
    ><IfModule mod_rewrite.c>
    >RewriteEngine On
    >RewriteBase /
    >RewriteRule ^index.php$ - (L)
    >RewriteCond %{REQUEST_FILENAME} !-f
    >RewriteCond %{REQUEST_FILENAME} !-d
    >RewriteRule . /index.php (L)
    ># END WordPress

…gets rewritten to:

  ># BEGIN WordPress
  ># The directives (lines) between "BEGIN WordPress" and "END WordPress" are
  ># dynamically generated, and should only be modified via WordPress filters.
  ># Any changes to the directives between these markers will be overwritten.
  ><IfModule mod_rewrite.c>
  >RewriteEngine On
  >RewriteRule .* - (E=HTTP_AUTHORIZATION:%{HTTP:Authorization}) ##<--This line apparently gets added
  >RewriteBase /
  >RewriteRule ^index.php$ - (L)
  >RewriteCond %{REQUEST_FILENAME} !-f
  >RewriteCond %{REQUEST_FILENAME} !-d
  >RewriteRule . /index.php (L)
  ># END WordPress

8 – Creating a custom field programmatically with a link to the entity gives me an error

When creating a custom field with a reference to an entity, the following error appears. Here is the link of the article from where I took the example field https://www.lullabot.com/articles/extending-a-field-type-in-drupal-8.

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method DrupalCoreFieldFieldItemList::referencedEntities() in DrupalCoreFieldPluginFieldFieldWidgetEntityReferenceAutocompleteWidget->formElement() (line 98 of core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php).
DrupalCoreFieldPluginFieldFieldWidgetEntityReferenceAutocompleteWidget->formElement(Object, 0, Array, Array, Object) (Line: 29)
Drupalorders_for_crmPluginFieldFieldWidgetOrderProductsFieldWidget->formElement(Object, 0, Array, Array, Object) (Line: 344)
DrupalCoreFieldWidgetBase->formSingleElement(Object, 0, Array, Array, Object) (Line: 211)
DrupalCoreFieldWidgetBase->formMultipleElements(Object, Array, Object) (Line: 113)
DrupalCoreFieldWidgetBase->form(Object, Array, Object) (Line: 287)
DrupalCoreFieldFieldItemList->defaultValuesForm(Array, Object) (Line: 127)
Drupalfield_uiFormFieldConfigEditForm->form(Array, Object) (Line: 149)
DrupalCoreEntityEntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
DrupalCoreFormFormBuilder->retrieveForm(‘field_config_edit_form’, Object) (Line: 278)
DrupalCoreFormFormBuilder->buildForm(Object, Object) (Line: 91)
DrupalCoreControllerFormController->getContentResult(Object, Object) (Line: 39)
Drupallayout_builderControllerLayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 573)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 124)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 151)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 708)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)

partitioning – External disk fatal hardware error

I am trying to get access to my external hard drive and hopefully the data on it. However, my disk is not being recognized by the computer. I have tried opening Windows disk manager and it immediately gives me the pop-up window, that I have to Initialize the disk with ( MBR or GPT tables) if I want to use the disk, but when I click ok, it gives me the error: The request failed due to a fatal device hardware error, in disk part, it is being recognized but with the size of 0 bytes. I had used TestDisk program but the disk is not being recognized.

Are there any other steps I can try for recovering data?

error NG8001: ‘mat-form-field’ is not a known element

currently I am struggling with an error after I tried to use a few mat components like “mat-form-field” or “mat-date-range-input” etc..
I already imported in the app.module file as I always do with these kind of component, but I get many errors like this:

If ‘mat-form-field’ is an Angular component, then verify that it is part of this module
If ‘mat-label’ is an Angular component, then verify that it is part of this module.

I have to say that in the same project I a using mat-tab-group and mat-tab etc… and I have not any errors with them.

These is my code:


import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularMaterialModule } from './angular-material.module/angular-material.module.module';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/';
import { MatIconModule } from '@angular/material/icon';
import { ClipboardModule } from '@angular/cdk/clipboard';

  declarations: (), // I've omitted this part because is not relevant to this issue
  imports: (
  providers: ({provide: LocationStrategy, useClass: PathLocationStrategy}),
  bootstrap: (AppComponent)
export class AppModule { }

And my component : create.report.component.html

<mat-form-field appearance="fill">
    <mat-label>Enter a date range</mat-label>
    <mat-date-range-input (formGroup)="reportForm" (rangePicker)="picker">
      <input matStartDate formControlName="from" placeholder="Start date">
      <input matEndDate formControlName="to" placeholder="End date">
    <mat-datepicker-toggle matSuffix (for)="picker"></mat-datepicker-toggle>
    <mat-date-range-picker #picker></mat-date-range-picker>



import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators, FormGroup, FormArray, FormControl } from '@angular/forms';
import { Router } from '@angular/router';

  selector: 'app-report',
  templateUrl: './create.report.component.html'
export class CreateReportComponent implements OnInit {

  // reportForm: FormGroup = new FormGroup({
  //   from: new FormControl(),
  //   to: new FormControl()
  // });

  reportForm = new FormGroup({
    from: new FormControl(),
    to: new FormControl()

    private router: Router,
    private fb: FormBuilder) {


  ngOnInit(): void {

  buildForm() {
    // console.log('***buildForm this.hmService***', this.hmService);

    this.reportForm = this.fb.group( {
      from  : ( '', (Validators.required, Validators.minLength(5))),
      to: ( '', (Validators.required, Validators.minLength(5))),
      published  : ( '', (Validators.required, Validators.minLength(5)))


differential equations – Error on DSolve

I’ve been trying to solve this initial value problem using ‘DSolve()’:

frac{dy}{dt}=1+tspace sin(tspace y),quad y(0)=0, quad t=(0,2)

ClearAll(y, t)
eq1 := {y'(t) == 1 + t *Sin(t y(t)), y(0) == 0};
DSolve(eq1, y(t), {t, 0, 2})

All I get is the Inverse function error.

    Solve::ifun: Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information. >>

The documentation suggests it has to do with the sine function but I’m not sure how to by-pass it.

Any help would be appreciated.

typescript – Angular2-signaturepad used with angular gives module not found error

I am using angular2-signaturepad in my ionic angular app. It was compiling and working till a month back.
Now when it compiles it gives below two errors

error TS2307: Cannot find module 'angular2-signaturepad/signature-pad' or its corresponding type declarations.

error TS2305: Module '"../../../../node_modules/angular2-signaturepad/angular2-signaturepad"' has no exported member 'SignaturePadModule'.

On checking the build logs,The one that errored has
Compiling angular2-signaturepad : es2015 as esm2015

the build that worked had
[21:50:13]: ▸ Compiling angular2-signaturepad : main as commonjs

I have tried to add a postinstall step in package.json for ngcc to compile all possible options,

"postinstall": "ngcc --tsconfig tsconfig.json",
It now compiled below

[20:05:34]: ▸ Compiling angular2-signaturepad : esm2015 as esm2015
[20:05:34]: ▸ Compiling angular2-signaturepad : main as umd

Build still gave same two errors.

I am using ionic with angular 10.
I feel like I am missing something basic and simple. Appreciate any help with this!

Error con web view 1.0.7 al compilar app en ios con flutter

Obtengo el siguiente error al compilar mi app en ios: /Users/josuevargas/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTWKNavigationDelegate.h:5:9: fatal error: ‘Flutter/Flutter.h’ file not found
#import <Flutter/Flutter.h>

El plugin que utilizo es el siguiente: flutter_widget_from_html: ^0.5.1+5

Calculated (calculation based on other columns) IF OR ISBLANK AND Sharepoint Lists error formula

Can anyone help? I can’t work out why this is erroring. this section =IF(OR(ISBLANK(Tech £)),””, at the start in bold makes it error.

=IF(OR(ISBLANK((Tech £))),"",IF(AND((Tech Pay Type)="Paid in Full",(Tech Pack)="Pack 2=PC Only"),"0",IF(AND((Tech Pay Type)="Paid in Full",(Tech Pack)="Pack 1=Full Kit"),"0",IF(AND((Tech Pay Type)="Paid in Full",(Tech Pack)="No"),"Oops",IF(AND((Tech Pay Type)="N/A",(Tech Pack)="Pack 2=PC Only"),"Oops",IF(AND((Tech Pay Type)="N/A",(Tech Pack)="Pack 1=Full Kit"),"Oops",IF(AND((Tech Pay Type)="N/A",(Tech Pack)="No"),"0",IF(AND((Tech Pay Type)="Monthly",(Tech Pack)="Pack 2=PC Only"),"£23",IF(AND((Tech Pay Type)="Monthly",(Tech Pack)="Pack 1=Full Kit"),"£40",IF(AND((Tech Pay Type)="Monthly",(Tech Pack)="No"),"Oops")))))))))

Parse error for /etc/fstab trying to mount smb share

I am using FileMaker Server 19 in CentOS 7.8 and trying to mount a smb share for the backup of databases.

I have entered into fstab:
“//172.30.x.x/CentOS /opt/FileMaker/FileMaker40Server/Data/Backups cifs username=mylogin,password=mypassword, uid=989, gid=1004 0 0”

When I run “mount -a” I get the error “mount: /etc/fstab: parse error: ignore entry at line 13.”

The above is line 13…

The cifs command runs fine in the command line so I know the details are correct.

Can anyone see any obvious errors?

Thanks in advance!