Magento – PayPal express checkout button missing in Shopping cart

Anyone else getting PayPal express checkout button in shopping cart missing?

enter image description here

From older posts It looks like It might be from the server being down?

Anyway, when I got to : fpdbs.paypal.com I can’t reach the website.

The button image source is : https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&buttontype=ecshortcut&locale=en_GB&ordertotal=#####&pal=########

And that fails too.

Anyone else?

unity – ‘Settings’ are missing in top bar menu ubuntu 20.04

after updating from ubuntu 18.04 to 20.04 I noticed that there is no shortcut to ‘settings’ in top right menu/dropdown. I believe it was there right after update and it disappeared somewhere down the line. On the same day I was re-installing wine (had to downgrade some deps) and pulse-effects (had issues with equalizer – had to add plugins manually).

I tried reinstalling gnome control cener using:
sudo apt-get install --reinstall gnome-control-center

I tried re-enabling the option in both gsettings and gnome-tweak-tool. I was not able to find the option.

menu I’m having problems with

Missing Temporal in Properties

I am trying to follow the tutorial here A GPX file (second example)Screen grab of Properties dialogue. but "Temporal" is missing from the properties dialogue box. I deleted Maderia and loaded Coruna in case that was the problem but "Temporal" is still missing from properties. I also un-installed Time Manager but no difference. Is there something that needs to be done to activate this property?

Edit Links Missing in Top Navigation

I created a list and the main site does not have the Edit Links option in the top navigation. The template showes as var g_wsaSiteTemplateId = ‘BLANKINTERNET#0’and I am afraid to alter this to change the entire site as I am not managing this site however they have given me temporary Site Collection Administrator. I am not IT so don’t want to alter something that would change the entire site.

I was hoping there would a setting that flips this option on without having to change templates.

Please advise. Thanks!

Material is missing after build with Unity Cloud

when I tried to build with unity cloud materials aren’t in the build.
there is no specific shader I just used the default URP material.

enter image description here

after a while, I found the problem.
when I import new models I have to make the new material and replace it with the default material so there is no problem after the build.

but I want to know is there a better solution to this problem.

enter image description here

I also checked my unity cloud build report and there weren’t any errors related to URP or materials

Material is missing after build by Unity Cloud in URP

when I tried to build with unity cloud materials aren’t in the build.
there is no specific shader I just used the default URP material.

enter image description here

after a while, I found the problem.
when I import new models I have to make the new material and replace it with the default material so there is no problem after the build.

but I want to know is there a better solution to this problem.

enter image description here

I also checked my unity cloud build report and there weren’t any errors related to URP or materials

links – How do you run code on a specific page without missing the init hook?

The earliest that functions such as get_permalink or is_page are available is parse_query (afaik). Then I thought, ok, clearly, I can’t say if( is_page('myPage') ) { add_action( 'init'... // because is_page will always resolve to false.

So then I thought, well, how about wrapping parse_query inside init like so:

add_action( 'init', function() {
    add_action( 'parse_query', function() use() {
        if( is_page( 'myPage' ) ) { //
    }, 10 );
}, 10 );

Well, that still does nothing. The code works, but hooking into init there doesn’t really work. My goal here is to make use of items that need to launch/are available on init:10. So, I said, ok, just pass them, right?

add_action( 'init', function() {
  $something_i_need_from_init_10 = //do something.
  add_action( 'parse_query', function() use( $something_i_need_from_init_10 )
  //
}

Which works, now, there are two cases that you’ll use this for:

  1. Getting something. If it’s available on init:10, isn’t it available on parse_query since parse_query come after? Sure, for most things, but remember that WP core itself gets rid of certain get_post_* functionality once it hits certain actions. Perhaps you have a service container that works well with WP and a service is only available on init:10.
  2. Doing something. Perhaps something needs to fire here. If so, this still works.

But all of this is clunky to write.

Is there no way to tell WP to run code on init, on a certain page only? Just looking at the link won’t do. There are rewrite rules, link formats and so on that one has to take care of and that probably don’t load until later on.

Ultimately, it’d be nice if all I had to write was:

add_action( 'init', function() {
  if( is_page( 'myPage' ) ) {
    //do stuff
  }
}

What can one do when trying to design this way?


I don’t know how to figure it myself, but perhaps pipelining this process through the page.php / single.php pages will work. I assume WP has to figure out very early on what page, with what template it has to serve for any given link, for which it calls these 2 (usually).