magento2 – Magento 2.2.6: Custom variable is not set via Event Observer

I followed the tutorial at the following link:
https://magento.stackexchange.com/a/163950/18325

But somehow I can not print the variable in the email header template.

Emailvar / registration.php:

Emailvar / etc / module.xml:



    
    

Emailvar / etc / events.xml:



    
        
    

Emailvar / Observer / Addvars.php:

getTransport();
        $transport('CustomVariable1') = 'test1';
    }
}

And in the adminpanel I added this line to the header template (used in every email):

{{var CustomVariable1|raw}}

Do I miss something? I am in developer mode, the module is active and the caches have been deleted. The actual name of NameSpace is something else, but the structure is the same.

[Vn5socks.net] Car Update 24/7 – Good Socks 4h35 PM

LIFE ~ 42.112.20.116:7200 | 0.001 | Hanoi | 44 | unknown | Vietnam | Checked for vn5socks.net
LIFE ~ 133.167.100.251:9050 | 0.08 | unknown | unknown | unknown | Japan | Checked for vn5socks.net
LIFE ~ 118.175.171.214:9999 | 0.103 | Bangkok | 40 | unknown | Thailand | Checked for vn5socks.net
LIFE ~ 47.94.244.27:7302 | 0.07 | Ottawa | ON | k1y4h7 | Canada | Checked for vn5socks.net
LIFE ~ 34.84.57.254:22080 | 0.081 | Houston | TX | 77072 | United States | Checked for vn5socks.net
LIFE ~ 192.169.202.106:42319 | 0,242 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
LIFE ~ 221.226.192.154:1086 | 0,258 | Peking | 22 | unknown | China | Checked for vn5socks.net
LIFE ~ 82.165.137.115:7061 | 0.287 | unknown | unknown | unknown | Germany | Checked for vn5socks.net
LIFE ~ 95.170.77.200:2010 | 0.261 | unknown | unknown | unknown | Netherlands | Checked for vn5socks.net
LIFE ~ 192.169.244.80:54589 | 0.421 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
LIFE ~ 72.221.164.35:60670 | 0.304 | unknown | unknown | unknown | United States | Checked for vn5socks.net
LIFE ~ 116.203.60.137:55243 | 0,314 | Mumbai | 16 | unknown | India | Checked for vn5socks.net
LIFE ~ 47.99.72.21:7004 | 0.057 | Ottawa | ON | k1y4h7 | Canada | Checked for vn5socks.net
LIFE ~ 192.169.218.22:12309 | 0.253 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
LIFE ~ 98.181.99.197:10368 | 0.312 | unknown | unknown | unknown | United States | Checked for vn5socks.net
LIFE ~ 157.230.9.227:9050 | 0.259 | Duluth | GA | 30097 | United States | Checked for vn5socks.net

Feuerhimmel
Reviewed by Feuerhimmel on
,
[Vn5socks.net] Auto Update 24/7 – Good Socks 4h35 PM
LIVE ~ 42.112.20.116:7200 | 0.001 | Hanoi | 44 | Unknown | Vietnam | Checked at vn5socks.net
LIVE ~ 133.167.100.251:9050 | 0.08 | Unknown | Unknown | Unknown | Japan | Checked at vn5socks.net
LIVE ~ 118.175.171.214:9999 | 0,103 | Bangkok | 40 | Unknown | Thailand | Checked at vn5socks.net
LIVE ~ 47.94.244.27:7302 | 0.07 | Ottawa | ON | k1y4h7 | Canada | Checked at vn5socks.net
LIVE ~ 34.84.57.254:22080 | 0,081 | Houston | TX | 77072 | United States | Checked for

Rating: 5

,

[Vn5socks.net] Car Update 24/7 – Good Socks 11:30

LIFE ~ 34.84.57.254:22080 | 0.276 | Houston | TX | 77072 | United States | Checked for vn5socks.net
LIFE ~ 118.175.171.214:9999 | 0.145 | Bangkok | 40 | Unknown | Thailand | Checked for vn5socks.net
LIFE ~ 72.217.158.195:54810 | 0.296 | Unknown | Unknown | Unknown | United States | Checked for vn5socks.net
LIFE ~ 82.165.137.115:7061 | 0.282 | Unknown | Unknown | Unknown | Germany | Checked for vn5socks.net
LIFE ~ 116.203.60.137:55243 | 0.292 | Mumbai | 16 | Unknown | India | Checked for vn5socks.net
LIFE ~ 178.62.193.217:3130 | 0.276 | Unknown | Unknown | Unknown | Russian Federation | Checked for vn5socks.net
LIFE ~ 42.112.20.116:7200 | 0,003 | Hanoi | 44 | Unknown | Vietnam | Checked for vn5socks.net
LIFE ~ 70.168.93.218:17026 | 0.316 | Santa Barbara | CA. | Unknown | United States | Checked for vn5socks.net
LIFE ~ 192.169.218.22:12309 | 0.327 | Unknown | Unknown | Unknown | Unknown | Checked for vn5socks.net
LIFE ~ 125.68.172.20:7302 | 0.359 | Cheng you | 32 | Unknown | China | Checked for vn5socks.net
LIFE ~ 184.176.166.8:17864 | 0,339 | Unknown | Unknown | Unknown | United States | Checked for vn5socks.net
LIFE ~ 192.169.236.146:3851 | 0.26 | Unknown | Unknown | Unknown | Unknown | Checked for vn5socks.net
LIFE ~ 192.169.202.106:42319 | 0.244 | Unknown | Unknown | Unknown | Unknown | Checked for vn5socks.net
LIFE ~ 80.211.71.44:7008 | 0.195 | Unknown | Unknown | Unknown | Denmark | Checked for vn5socks.net
LIFE ~ 221.226.192.154:1086 | 0.265 | Peking | 22 | Unknown | China | Checked for vn5socks.net
LIFE ~ 178.159.36.10:9050 | 0.28 | Unknown | Unknown | Unknown | Ukraine | Checked for vn5socks.net
LIFE ~ 91.121.50.14:50507 | 0,267 | Unknown | Unknown | Unknown | France | Checked for vn5socks.net
LIFE ~ 166.62.85.224:57589 | 0.245 | Unknown | Unknown | Unknown | Unknown | Checked for vn5socks.net

Feuerhimmel
Reviewed by Feuerhimmel on
,
[Vn5socks.net] Auto Update 24/7 – Good Socks 11h30
LIVE ~ 34.84.57.254:22080 | 0,276 | Houston | TX | 77072 | United States | Checked at vn5socks.net
LIVE ~ 118.175.171.214:9999 | 0,145 | Bangkok | 40 | Unknown | Thailand | Checked at vn5socks.net
LIVE ~ 72.217.158.195:54810 | 0,296 | Unknown | Unknown | Unknown | United States | Checked at vn5socks.net
LIVE ~ 82.165.137.115:7061 | 0,282 | Unknown | Unknown | Unknown | Germany | Checked at vn5socks.net
LIVE ~ 116.203.60.137:55243 | 0,292 | Mumbai | 16 | Unknown

Rating: 5

,

magento2 – Magento ver. 2.2.6 throws 2 exception

Recently browsing the site. I found out if the homepage of the site is on http, page works fine, but if it's on https, it throws the following error.

2 exception (s):
Exception # 0 (Magento Framework Exception LocalizedException): Invalid block type: directory / currency
Exception # 1 (ReflectionException): class directory / currency does not exist

Tried all CLI commands (Clean, Flush, Upgrade, Deployment, Compile) and also Composer upgrade. Nothing worked. Guess if someone can help me. Thank you in advance.

save – problem when saving existing products, 2.2.6

We have 5 – 6 products in our 3005 catalog that are existing products, but we can not save them. A "technical server error" is issued, but no logs or entries are created. The host has tried to watch the logs at their end without results. Changes must be made in a database that is not sustainable.

Run 2.2.6 and fix this problem before upgrading. Does anyone have similar problems? Tried to reindex, clear the cache, find incorrect redirects or URLs. I tried to delete an item, but the problem persists.

magento2 – Magento 2.2.6: minicart shows after clear cart the value (number of products)

After deleting (removing all products), the shopping cart does not show anything, but still shows the number of products in the mini-carton.

Show cart number

An attempt was made to create section.xml and empty the shopping cart after clicking on the "Sales / Shopping Cart / Delete" route:



    
        

but failed.

Here is the link to empty the cart on cart-info.phtml:

  • [Vn5socks.net] Car Update 24/7 – Good Socks 10h10 PM

    LIFE ~ 192.169.189.120:10306 | 0.222 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 52.116.25.164:10356 | 0,289 | Wilmington | DE | 19893 | United States | Checked for vn5socks.net
    LIFE ~ 52.116.25.174:10306 | 0,284 | Wilmington | DE | 19893 | United States | Checked for vn5socks.net
    LIFE ~ 166.62.43.205:49683 | 0.219 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 47.93.251.207:3001 | 0,248 | Ottawa | ON | k1y4h7 | Canada | Checked for vn5socks.net
    LIFE ~ 166.62.103.159:57531 | 0.395 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 52.116.25.174:10356 | 0.282 | Wilmington | DE | 19893 | United States | Checked for vn5socks.net
    LIFE ~ 166.62.118.146:41300 | 0.22 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 184.176.166.8:17864 | 0,336 | unknown | unknown | unknown | United States | Checked for vn5socks.net
    LIFE ~ 23.236.75.213:1081 | 0.226 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 169.239.221.90:50802 | 0.402 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 70.168.93.201:17009 | 0,324 | Santa Barbara | CA. | unknown | United States | Checked for vn5socks.net
    LIFE ~ 192.169.218.22:20137 | 0,383 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 47.94.19.105:3001 | 0.265 | Ottawa | ON | k1y4h7 | Canada | Checked for vn5socks.net
    LIFE ~ 47.94.244.27:7302 | 0.249 | Ottawa | ON | k1y4h7 | Canada | Checked for vn5socks.net
    LIFE ~ 220.79.34.109:2018 | 0.088 | Seoul | 11 | unknown | Korea, Republic of | Checked for vn5socks.net
    LIFE ~ 166.62.116.91:17802 | 0.215 | unknown | unknown | unknown | unknown | Checked for vn5socks.net
    LIFE ~ 70.166.38.93:24827 | 0.33 | San Diego | CA. | unknown | United States | Checked for vn5socks.net

    Feuerhimmel
    Reviewed by Feuerhimmel on
    ,
    [Vn5socks.net] Auto Update 24/7 – Good Socks 10h10 PM
    LIVE ~ 192.169.189.120:10306 | 0,222 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
    LIVE ~ 52.116.25.164:10356 | 0.289 | Wilmington | DE | 19893 | United States | Checked at vn5socks.net
    LIVE ~ 52.116.25.174:10306 | 0,284 | Wilmington | DE | 19893 | United States | Checked at vn5socks.net
    LIVE ~ 166.62.43.205:49683 | 0.219 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
    LIVE ~ 47.93.251.207:3001 | 0,248 | Ottawa | ON | k1y4h7

    Rating: 5

    magento2.2.6 – How to add a canonical tag for the entire site via the backend or by encoding to mangenot 2.2.6

    How do I add a canonical tag to Mangenot 2.2.6 for the entire website by backend or by encoding if I check my website with the MOZ Pro software whose MIS canonical day is displayed for 864 pages? However, from the Magento administrator, I follow the right way to display Canonial label

    Stores> Settings> Configuration.

    Then expand the Catalog Drop-down menu and select Catalog. Then open the Search Engine Optimization:

    I choose "yes" for both

    Use the Canonical Link Meta Tag for Categories – "Yes"
    Canonical Link Meta Tag for Products Use – "Yes"

    and save configuration.
    see picture belowEnter image description here

    Need the right solution and answer for MISSING Canonical Tag for the entire site magento 2.2.6 w