An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can sue this page to temporarily close Web Parts

I have updated SP2013 farm to SP2016 in a new environment. Everything went well except some customised web parts. When I click on ex “Create customer” which is a customised webpart I get the error message:

An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can sue this page to temporarily close Web Parts or remove personal settings. I have already deleted and readded the webparts, edited the web.config with different solutions which I found on the Internet but I just got more problems. I have even deleted and reinstalled the PerformancePoint service application. When I try to add a standard SP webpart, it works fine but not the customised webpart.

Have you please any idea about this issue and how to solve it?

Regards Ashraf

Template filter error: Type Error occurred when creating object

I am facing following exception

Template filter error: Type Error occurred when creating object 

I am getting this exception when I am injecting block \Magento\Catalog\Block\Product\ListProduct in my custom block \Anshu\CustomModule\Block\Custom

Let me know if anyone aware of this type of issue, what is causing this issue and how this can be fixed

As a non-Finnish citizen, am I subject income-based traffic fines if the traffic violation occurred in Finland?

I read on https://www.theatlantic.com/business/archive/2015/03/finland-home-of-the-103000-speeding-ticket/387484/ that most of Scandinavia determines fines based on income. E.g.:

In 2002, a Nokia executive was fined the equivalent of $ 103,000 for going 45 in a 30 zone on his motorcycle.

As a non-Finnish citizen, am I subject income-based traffic fines if the traffic violation occurred in Finland?

SharePoint 2013 workflow is suspended. and prompt the error “An unhandled exception occurred during the execution of the workflow instance.”

As title, May I Know any steps to solve the problems. Many thanks.

Exception: Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentNullException: Value cannot be null. Parameter name: Input at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Search REST API – An unknown error occurred

Wondering if you could help me please, I am currently calling the SharePoint rest search api with a number of parameters as below:

GET: https://tenant.sharepoint.com/sites/sitecol/_api/search/query? querytext='path:https://tenant.sharepoint.com/sites/sitecol ContentTypeId:0x0101008CA34DF8F4904B3EB1EB49AC10614C68*' &trimduplicates=false &startrow=0 &rowlimit=1 &selectproperties='Write,Path,LastModifiedTime'&refiners='LastModifiedTime(discretize=manual/2017-12-01/2018-01-01/2018-03-01/2018-03-01/2018-04-01/2018-05-01/2018-06-01/2018-07-01/2018-08-01/2018-09-01/2018-10-01/2018-11-01/2018-12-01/2019-01-01/2019-03-01/2019-03-01/2019-04-01/2019-05-01/2019-06-01/2019-07-01,sort=name/descending,filter=99/1/*)' &ClientType='ContentSearchRegular' 

I am using the header Accept: application/json;odata=nometadata

However when running this in Postman or SharePoint online I get the following returned:

{ “odata.error”: { “code”: “-1, Microsoft.Office.Server.Search.REST.SearchServiceException”, “message”: { “lang”: “en-US”, “value”: “An unknown error occurred.” } } }

The only method I appear to have found to fix this is to reduce the number of thresholds in the refiner parameter however I am unable to find any documentation detailing the maximum number of thresholds that can be used.

I appreciate any help that anyone can give on this matter.

change cache to Reids and the exception:NOAUTH Authentication required occurred

My magento version is 2.2.6,It is strange,becuase I can see the data in Reids,that means can write to Reids,and the system knows the password,Why did I mention this error when I visited the website?

enter image description here

enter image description here

'session' => [     'save' => 'redis',     [         'host' => '127.0.0.1',         'port' => '6379',         'password' => '123456',  'cache' =>     array (         'frontend' =>             array (                 'default' =>                     array (                         'backend' => 'Cm_Cache_Backend_Redis',                         'backend_options' =>                             array (                                 'server' => '127.0.0.1',                                 'port' => '6379',                                 'persistent' => '',                                 'database' => 1,                                 'password' => '123456', 'page_cache' =>     array (         'backend' => 'Cm_Cache_Backend_Redis',         'backend_options' =>             array (                 'server' => '127.0.0.1',                 'port' => '6379',                 'password'=>'123456', 

SharePoint: Https WebClient Request occurred “The remote server returned an error: (401) Unauthorized”

I had the below code in a SharePoint Webpart and it worked properly:

using (var wb = new WebClient()) {     wb.UseDefaultCredentials = true;     var data = wb.DownloadData(@"http://sharepointSite/_layouts/15/Resources/Stamps/image.png"); } 

If I try to use https in browser like:

https://sharepointSite/_layouts/15/Resources/Stamps/image.png 

After entering the credential I can download it:

but the problem is where I try to use https in my code:

 using (var wb = new WebClient()) {     wb.UseDefaultCredentials = true;     var data = wb.DownloadData(@"https://sharepointSite/_layouts/15/Resources/Stamps/image.png"); } 

and I’ve got error:

The remote server returned an error: (401) Unauthorized.

Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object

I’m trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I’m getting the following error:

Error filtering template: Type Error occurred when creating object: Magento\Catalog\Model\Product\Interceptor

I can’t see what I’m doing wrong here, but I must be missing something. Module works fine without the di preference. Here are the relevant files (below) and I’m running magento setup:upgrade and magento setup:di:compile after making any changes.

Vendor/Module/etc/di.xml

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">     <preference for="Magento\Catalog\Model\Product\Url" type="Vendor\Module\Model\Product\Url" /> </config> 

Vendor/Module/Model/Product/Url.php

<?php /**  * Copyright © Magento, Inc. All rights reserved.  * See COPYING.txt for license details.  */ namespace Vendor\Module\Model\Product;  use \Magento\UrlRewrite\Model\UrlFinderInterface; use \Magento\UrlRewrite\Service\V1\Data\UrlRewrite;  /**  * Product Url model  *  * @api  * @since 100.0.2  */ class Url extends \Magento\Framework\DataObject {     /**      * URL instance      *      * @var \Magento\Framework\UrlFactory      */     protected $  urlFactory;      /**      * @var \Magento\Framework\Filter\FilterManager      */     protected $  filter;      /**      * Store manager      *      * @var \Magento\Store\Model\StoreManagerInterface      */     protected $  storeManager;      /**      * @var \Magento\Framework\Session\SidResolverInterface      */     protected $  sidResolver;      /**      * @var \Magento\UrlRewrite\Model\UrlFinderInterface      */     protected $  urlFinder;      /**      * @param \Magento\Framework\UrlFactory $  urlFactory      * @param \Magento\Store\Model\StoreManagerInterface $  storeManager      * @param \Magento\Framework\Filter\FilterManager $  filter      * @param \Magento\Framework\Session\SidResolverInterface $  sidResolver      * @param UrlFinderInterface $  urlFinder      * @param array $  data      */     public function __construct(         \Magento\Framework\UrlFactory $  urlFactory,         \Magento\Store\Model\StoreManagerInterface $  storeManager,         \Magento\Framework\Filter\FilterManager $  filter,         \Magento\Framework\Session\SidResolverInterface $  sidResolver,         UrlFinderInterface $  urlFinder,         array $  data = []     ) {         parent::__construct($  data);         $  this->urlFactory = $  urlFactory;         $  this->storeManager = $  storeManager;         $  this->filter = $  filter;         $  this->sidResolver = $  sidResolver;         $  this->urlFinder = $  urlFinder;     }      /**      * Retrieve URL Instance      *      * @return \Magento\Framework\UrlInterface      */     private function getUrlInstance()     {         return $  this->urlFactory->create();     }      /**      * Retrieve URL in current store      *      * @param \Magento\Catalog\Model\Product $  product      * @param array $  params the URL route params      * @return string      */     public function getUrlInStore(\Magento\Catalog\Model\Product $  product, $  params = [])     {         $  params['_scope_to_url'] = true;         return $  this->getUrl($  product, $  params);     }      /**      * Retrieve Product URL      *      * @param  \Magento\Catalog\Model\Product $  product      * @param  bool $  useSid forced SID mode      * @return string      */     public function getProductUrl($  product, $  useSid = null)     {         if ($  useSid === null) {             $  useSid = $  this->sidResolver->getUseSessionInUrl();         }          $  params = [];         if (!$  useSid) {             $  params['_nosid'] = true;         }          return $  this->getUrl($  product, $  params);     }      /**      * Format Key for URL      *      * @param string $  str      * @return string      */     public function formatUrlKey($  str)     {         return $  this->filter->translitUrl($  str);     }      /**      * Retrieve Product URL using UrlDataObject      *      * @param \Magento\Catalog\Model\Product $  product      * @param array $  params      * @return string      * @SuppressWarnings(PHPMD.CyclomaticComplexity)      * @SuppressWarnings(PHPMD.NPathComplexity)      */     public function getUrl(\Magento\Catalog\Model\Product $  product, $  params = [])     {         $  routePath = '';         $  routeParams = $  params;          $  storeId = $  product->getStoreId();          $  categoryId = null;          if (!isset($  params['_ignore_category']) && $  product->getCategoryId() && !$  product->getDoNotUseCategoryId()) {             $  categoryId = $  product->getCategoryId();           }          if ($  product->hasUrlDataObject()) {             $  requestPath = $  product->getUrlDataObject()->getUrlRewrite();             $  routeParams['_scope'] = $  product->getUrlDataObject()->getStoreId();         } else {             $  requestPath = $  product->getRequestPath();             if (empty($  requestPath) && $  requestPath !== false) {                 $  filterData = [                     UrlRewrite::ENTITY_ID => $  product->getId(),                     UrlRewrite::ENTITY_TYPE => \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator::ENTITY_TYPE,                     UrlRewrite::STORE_ID => $  storeId,                 ];                 if ($  categoryId) {                     $  filterData[UrlRewrite::METADATA]['category_id'] = $  categoryId;                 }                 $  rewrite = $  this->urlFinder->findOneByData($  filterData);                 if ($  rewrite) {                     $  requestPath = $  rewrite->getRequestPath();                     $  product->setRequestPath($  requestPath);                 } else {                     $  product->setRequestPath(false);                 }             }         }          if (isset($  routeParams['_scope'])) {             $  storeId = $  this->storeManager->getStore($  routeParams['_scope'])->getId();         }          if ($  storeId != $  this->storeManager->getStore()->getId()) {             $  routeParams['_scope_to_url'] = true;         }          if (!empty($  requestPath)) {             $  routeParams['_direct'] = $  requestPath;         } else {             $  routePath = 'catalog/product/view';             $  routeParams['id'] = $  product->getId();             $  routeParams['s'] = $  product->getUrlKey();             if ($  categoryId) {                 $  routeParams['category'] = $  categoryId;             }         }          // reset cached URL instance GET query params         if (!isset($  routeParams['_query'])) {             $  routeParams['_query'] = [];         }          return $  this->getUrlInstance()->setScope($  storeId)->getUrl($  routePath, $  routeParams);     } }