sharepoint server – Site on https starts working only after refreshing page on http page

I have a SharePoint server with sp name which I can access by http://sp.


  1. added this server to some domain and could access it by http://sp.domain.local;
  2. created and added certificate to this server, so I could access it by https://sp.domain.local and by https://sp;
  3. allowed access to it from Internet by


When I try to access the server by http://sp.domain.local, https://sp.domain.local, after some time, for example, in a day, it allows me to be logged in, but does not display the Documents list content and search does not work.

When I refresh http://sp page, then Documents List content becomes visible and search starts to work here on http and https protocols and with sp.domain.local and names.


Which settings on SP or IIS side could be the cause of such behavior?

The reference on Markov chains uncovering the power of the subject in a better way for a working macro-economist

This is by no means a research question. But asking here I hope for the most expert opinion.

A friend of mine, who is a working economist, asked me for advice about a book which uncovers wealth and mightiness of Markov chains in a possibly better way.

Since I am not an expert in the area, I have to ask the same to wider audience of experts.

Any sugestions?

Nginx location doesn’t working, wasted days but no luck

I’ve generated WebP for all the existing images (jpe?g and png) in same directory persisting original name and appending .webp as file extension. So, wanted to serve webp instead of jpg, jpeg and png.

To configure this I tried to add below configuration for Nginx but sadly this is not working. Google

# When jpeg, jpg or png is being requesting
location ~* .(jpe?g|png)$ {
    if ($http_accept !~* "image/webp") {
    try_files $uri.webp $uri =404;
    expires max;
    add_header Vary Accept;
    # Debug
    add_header X-Serving $uri.webp;

If I change extension match like “xpe?g|xng” then it works. Gets the expected response.

location ~* .(xpe?g|xng)$ {
    if ($http_accept !~* "image/webp") {
    try_files /wp-content/uploads/2021/04/XUV700-logo.png.webp $uri =404;
    expires max;
    add_header Vary Accept;
    # Debug
    add_header X-Serving $uri.webp;

Seems only below config working. But get same response even I remove “jpe?g|png from below match”

# Long expire of static/media contents
location ~* .(?:jpe?g|png|webp|js|css|gif|swf|ico|pdf|mov|fla|zip|rar|woff2?|mp3|ttf|eot|svg)$ {
    try_files $uri =404;
    expires max;
    add_header Pragma public;
    add_header Cache-Control 'public, private, immutable';

Command to check:

curl -I "" 
 -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' 

Shortcode not working in CPT taxonomy

This shortcode is working for Post, Page, Tag, Category at the title but not print output in CPT Taxonomy.

Also, I want this should also work for Description in all Post, Page, Tag, Cat, Tax.

It means the shortcode should be work all around the website.

// Print This Year (y)
add_filter( 'the_title', 'do_shortcode' );
add_shortcode( 'y' , 'y' );
function y() {
$year = date("Y");
return "$year";
add_filter( 'the_title', 'do_shortcode' );

Spawn point not working on unity

I have two GameObjects set down. One is named Spawn Point, and it is set at the beginning of my level, and Death Point, set down at about 0,-40,0. My code tries to see if the character is below the Death Point area and moves the player to the spawn point. I feel that the answer is so simple, that I could look it up, but I looked it up, and I didn’t see it.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class death : MonoBehaviour
    public GameObject spawnPoint;
    public GameObject deathPoint;
    // Start is called before the first frame update

    // Update is called once per frame
    void Update()
       Vector3 playerPos = transform.position;
        if(playerPos.y < deathPoint.transform.position.y) {
            transform.position = spawnPoint.transform.position;

A big thank you in adavance.

php default classes not working in magento

I trying to sort cart item by price

private function getSortedItems($quote, $rule)

    $items = $this->context->getMatchingItems($quote, $rule);
    $itemObject = new ArrayObject($items);
    // Sort and print the resulting array
    $itemObject->uasort(function($a, $b) {
        return $a->getPrice() - $b->getPrice();

    foreach ($itemObject as $itm) {
        print_r($itm->getPrice());exit(" <= price");

    return $itemObject;

but its call me

Fatal error: Uncaught Error: Class ‘VendorMyModuleRuleArrayObject’ not found in /home/public_html/app/code/Vendor/MyModule/Rule/AwaBuyGetFixed.php:117 Stack trace: #0

Validation Upper case not working correctly

I am using SharePoint 2016 and I am trying to enter a validation for a single line text that must be 7 characters in lenght with a hyphen in position for (XXX-XXX).

I have two issue, first I reliased that if I enter a validation it makes the column mandatory so I need to make the column have the option of blank and if not blank then the validation sets in.

The second issue is that the formula does not really work properly as it appears I can have 2 hyphen and the last characters not capitalised.


As soon as I enter the 6th character condition as below SharePoint goes into error without saving the setting.


Any ideas on how to make the entry optional and if information is entered then to be in the format XXX-XXX.

homepage – WordPress static home page pagination not working

I am trying to add the pagination on the home page, But it is not working. Can anyone help me to fix the issue?

    <ul class="xl-products grid- masonry">

        if(is_front_page()) {
            $paged = (get_query_var('page')) ? get_query_var('page') : 1;
        }else {
            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

        $args = array(
            'post_type' => 'product',
            'posts_per_page' => 10,
            'paged'          => $paged,

        $loop = new WP_Query( $args );
        if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?>

            <li class="xl-product-item item- brick">
                <div class="product-box content">

                    <?php woocommerce_template_loop_product_thumbnail(); ?>
                    <div class="info">
                        <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                        <div class="category">

                            <?php echo wc_get_product_category_list( $loop->post->ID, ', ', '' ); ?>

                        <div class="price-wrapper">
                            <?php woocommerce_template_loop_price(); ?>

                        <div class="cart-btn">
                            <?php woocommerce_template_loop_add_to_cart(); ?>

                        <div class="user">
                            <?php echo get_avatar(get_the_author_meta( 'ID' ), 50); ?>
                            <span class="name"><?php the_author(); ?></span>


        <?php endwhile; ?>

        <?php else : echo __( 'No products found' ); ?>
        <?php endif; ?>


    <div style="text-align:center;">
        <?php //echo 4;?>

        <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
        <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>


    <?php wp_reset_postdata(); ?>

PHP calling AJAX function that relies on passed PHP function values not working

In reading I am not sure if the issue below could have something to do with needing a custom wordpress ajax handler? All of these functions are inside my functions.php file.

I have a couple of PHP functions that are supposed to pass information from one to another. The an AJAX call to the final function should produce the final result through that call. Its not happening. My count results in 0 and I am not understanding why.

If I replace my query with a static array like (44,55,99,33) then it will pass the values ok. Likewise
if I keep the query and simply replace the $id in the query and make it a static id such as ’20’ then it works. I would think that the id was the issue then and it wasnt pulling properly but it seems to work ok just not pass?

function idx(){
    global $wpdb, $id;
 $getId = $_SERVER('REQUEST_URI');
    $ecp = explode("", $getId);
    if($ecp(3) != ''){
        $id = $ecp(3);
    return $id;
add_action( 'after_setup_theme', 'idx' );


function Total_Result(){
    global $wpdb;

   $id = idx();

      /*$resultx = (44,88,59,52);*/ ;

    $resultx = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$wpdb->prefix}custom_form_submission_conversation as cc LEFT JOIN {$wpdb->prefix}custom_form_submission as cs on cc.fsid ='$id' WHERE fsid='$id'" ));
    $resultxs = array($resultx);
    $total_result =  count($resultxs(0));
    echo  $total_result;

when I var_dump $resultx I get:

array(3) { (0)=> object(stdClass)#1256 (36) { (“cid”)=> string(3) “167” (“fsid”)=> string(2) “20” (“specified_date”)=> string(3) “yes” (“price_quote”)=> string(4) “1140” (“posted_by”)=> string(9) “dc_vendor” (“limit_count”)=> string(1) “1” (“read_unread”)=> string(1) “1” (“vendor_response”)=> string(4) “zero” (“date_created”)=> string(19) “2021-04-15 11:39:08” } 

(1)=> object(stdClass)#1257 (36) { (“cid”)=> string(3) “186” (“fsid”)=> string(2) “20” (“specified_date”)=> string(3) “Yes” (“price_quote”)=> string(3) “602” (“posted_by”)=> string(8) “customer” (“limit_count”)=> string(1) “1” (“read_unread”)=> string(1) “1” (“vendor_response”)=> string(4) “zero” (“date_created”)=> string(19) “2021-04-15 11:39:08” } 

(2)=> object(stdClass)#1258 (36) { (“cid”)=> string(3) “188” (“fsid”)=> string(2) “20” (“specified_date”)=> string(3) “yes” (“price_quote”)=> string(4) “1017” (“posted_by”)=> string(9) “dc_vendor” (“limit_count”)=> string(1) “1” (“read_unread”)=> string(1) “0” (“vendor_response”)=> string(4) “zero” (“date_created”)=> string(19) “2021-04-15 11:39:08” } } 

so then I try and pass that data like so:

function getvendorresponsestatus() {
    global $wpdb;
$id = idx();
    $total_resultx = Total_Result($id);

Ive tried with and without the die();.

The AJAX call is:

    var ffiidd = jQuery('#ffiidd').val();
    var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";, {
        action: "vendorAjaxprog",
        ffiidd: ffiidd
    }, function(data) {
        console.log(data);, {
            action: "getvendorresponsestatus", //<<<<<<<< this is the action that calls the function
            fsid : ffiidd
        function(datas) {
            console.log('+ datas);
        if(data == 0){}else{
}, 5000);/*==30 seconds==*/

So the question is why wont it pass along the query array information but it passes a basic array or it will pass if I change the id in the query to be static? I know the query is good because of when I var_dumped it, I have results before I get to the Total_Result() function.

Youtube videos are not working on Simple Products PDP pages

Any simple product that has a video assigned to it, will not play the video. If you are looking at the config product then videos play without issue.

Magento Version 2.3.5-p1