safari – How can a public WLAN load the "Accept Terms of Use" page for you to use?

For some time, I've found that my MacBook Air does not load public Wi-Fi sites. All bars in the Wi-Fi icon above are solid, but the page I can connect to will not load. Never really bothered me.

This week, my wife started chemo and radiation therapy. There is a lot to learn when that happens. I had my laptop in the clinic with me to organize some things and check some while she underwent radiation. But I could not connect to their WiFi. I've tried many ideas from my iPhone search, but nothing worked. No frustration I needed.

So today, before I went to the clinic, I searched online again for someone who had a similar problem, and I found this page.

On March 28, 2018, when someone with the same problem as me wrote JBIS wrote this: "Go http://captive.apple.com This is the only way to ensure that it is displayed. " tilt Connect to the Internet and enter it http://captive.apple.com in the search bar.

When they took my wife to the clinic for treatment today, I did just that, and it worked. Your Wi-Fi page was loading and I was able to do the things I needed to do while waiting for my wife. One of the things on my list, later, when she was resting, was to find a way to thank this side and the person who gave this endearing advice.

This site recommends that you need 50 points before you can comment – in my case, "Thanks, JBis" for a helpful response almost two years ago that has done its job today. Therefore, I could not comment on the original post.

We hope that this contribution will allow others to benefit from the solution and recognize the person – JBis – who shared it.

Follow the tutorial for Drupal 8 Commerce Custom Deals, but you'll get the error "name already in use"

I follow the tutorial on creating a custom quote in the official Drupal 8 Commerce documentation. However, I see an error that I inserted below when I click on one of the conditions, and none of the offers integrated in Commerce show a form. I followed the tutorial closely, except that the OrderPromotionOfferBase class was extended instead of the OrderFixedAmountOff class. I have inserted the content of the OrderItemFixedAmountTarget class that I have defined for the offer under the error.

Quotation fields are not displayed

error

Ajax Error:
An AJAX HTTP error has occurred.
HTTP result code: 200
Debugging information will follow.
Path: / promotion / 1 / edit? Destination = / admin / commerce / promotions & ajax_form = 1
StatusText: OK
Response Text:
(!) Fatal Error: Class Drupal  my_module  Plugin  Commerce  PromotionOffer  OrderItemFixedAmountTarget can not be declared because the name already uses / home / usertest / workspace / drupalsite / web / modules / my_module / src / plugin / commerce / becomes. PromotionOffer / OrderItemFixedAmountTarget.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000438056 {main} () ... / index.php: 0
20.0006554920Drupal  Core  DrupalKernel-> handle () ... / index.php: 19
30.00441717448Stack  StackedHttpKernel-> handle () ... / DrupalKernel.php: 693
40.00441717448Drupal  Core  StackMiddleware  NegotiationMiddleware-> handle () ... / StackedHttpKernel.php: 23
50.00441718144Drupal  Core  StackMiddleware  ReverseProxyMiddleware-> handle () ... / NegotiationMiddleware.php: 52
60.00441718144Drupal  page_cache  StackMiddleware  PageCache-> handle () ... / ReverseProxyMiddleware.php: 47
70.00441718144Drupal  page_cache  StackMiddleware  PageCache-> pass () ... / PageCache.php: 85
80.00441718144Drupal  Core  StackMiddleware  KernelPreHandle-> handle () ... / PageCache.php: 106
90.00562139576Drupal  Core  StackMiddleware  Session-> handle () ... / KernelPreHandle.php: 47
100.00642260136Symfony  Component  HttpKernel  HttpKernel-> handle () ... / Session.php: 57
110.00652260552Symfony  Component  HttpKernel  HttpKernel-> handleRaw () ... / HttpKernel.php: 68
120.02877724544Drupal  Core  EventSubscriber  EarlyRenderingControllerWrapperSubscriber-> Drupal  Core  EventSubscriber  {closure} () ... / HttpKernel.php: 151
130.02877724544Drupal  Core  EventSubscriber  EarlyRenderingControllerWrapperSubscriber-> wrapControllerExecutionInRenderContext () ... / EarlyRenderingControllerWrapperSubscriber.php: 97
140.02877727080Drupal  Core  Render  Renderer-> executeInRenderContext () ... / EarlyRenderingControllerWrapperSubscriber.php: 124
150.02877727432Drupal  Core  EventSubscriber  EarlyRenderingControllerWrapperSubscriber-> Drupal  Core  EventSubscriber  {closure} () ... / Renderer.php: 582
160.02877727432call_user_func_array: {/ home / usertest / workspace / drupalsite / web / core / lib / Drupal / Core / EventSubscriber / EarlyRenderingControllerWrapperSubscriber.php: 123}
() ... / EarlyRenderingControllerWrapperSubscriber.php: 123
170.02877727840Drupal  Core  Entity  HtmlEntityFormController-> getContentResult () ... / EarlyRenderingControllerWrapperSubscriber.php: 123
180.02917849224Drupal  Core  Form  FormBuilder-> buildForm () ... / FormController.php: 93
190.043110154816Drupal  Core  Form  FormBuilder-> processForm () ... / FormBuilder.php: 319
200.087912157904Drupal  Core  Form  FormBuilder-> rebuildForm () ... / FormBuilder.php: 626
210.087912157904Drupal  Core  Form  FormBuilder-> retrieveForm () ... / FormBuilder.php: 369
220.087912160160call_user_func_array: {/ home / usertest / workspace / drupalsite / web / core / lib / Drupal / core / Form / FormBuilder.php: 519}
() ... / FormBuilder.php: 519
230.087912160568Drupal  commerce_promotion  Form  PromotionForm-> buildForm () ... / FormBuilder.php: 519
240.088212170728Drupal  commerce_promotion  Form  PromotionForm-> buildForm () ... / PromotionForm.php: 31
250.088312171952Drupal  commerce_promotion  Form  PromotionForm-> form () ... / EntityForm.php: 117
260.088312171952Drupal  commerce_promotion  Form  PromotionForm-> form () ... / PromotionForm.php: 38
270.088312172728Drupal  Core  Entity  Entity  EntityFormDisplay-> buildForm () ... / ContentEntityForm.php: 125
280.089312198408Drupal  commerce  Plugin  Field  FieldWidget  PluginSelectWidget-> form () ... / EntityFormDisplay.php: 177
290.089312198408Drupal  commerce  Plugin  Field  FieldWidget  PluginSelectWidget-> formMultipleElements () ... / WidgetBase.php: 104
300.089312198784Drupal  commerce  Plugin  Field  FieldWidget  PluginSelectWidget-> formSingleElement () ... / WidgetBase.php: 202
310.089312199160Drupal  commerce  Plugin  Field  FieldWidget  PluginSelectWidget-> formElement () ... / WidgetBase.php: 335
320.089312201184Drupal  commerce  Plugin  Field  FieldWidget  PluginSelectWidget-> supportedConfiguration () ... / PluginSelectWidget.php: 116
330.089312201584ist_unterkategorie_von
() ... / PluginSelectWidget.php: 149
340.089312201712spl_autoload_call
() ... / PluginSelectWidget.php: 149
350.089312201840Composer  Autoload  ClassLoader-> loadClass () ... / PluginSelectWidget.php: 149
360.089412202032Composer  Autoload  includeFile () ... / ClassLoader.php: 322
370.089412202272include (& # 39; /home/usertest/workspace/drupalsite/web/modules/my_module/src/Plugin/Commerce/PromotionOffer/OrderItemFixedAmountTarget.php') ... / ClassLoader.php: 444

OrderItemFixedAmountTarget.php

Namespace Drupal  my_module  Plugin  Commerce  PromotionOffer;

use Drupal  commerce_promotion  Plugin  Commerce  PromotionOffer  OrderPromotionOfferBase;
use Drupal  commerce_promotion  Plugin  Commerce  PromotionOffer  FixedAmountOffTrait;
use Drupal  commerce_order  Adjustment;
Use Drupal  commerce_promotion  Entity  PromotionInterface.
use Drupal  Core  Entity  EntityInterface;

/ **
* @CommercePromotionOffer (
* id = "my_module_fixed_amount_target",
* label = @Translation ("Discount for each matching product to a fixed amount"),
* entity_type = "commerce_order_item",
*)
* /
Class OrderItemFixedAmountTarget extends OrderPromotionOfferBase {

use FixedAmountOffTrait;

/ **
* {@inheritdoc}
* /
public function apply (EntityInterface $ entity, PromotionInterface $ promotion) {
$ this-> assertEntity ($ entity);
/ ** @var  Drupal  commerce_order  Entity  OrderInterface $ order * /
$ order = $ entity;
$ subtotal_price = $ order-> getSubTotalPrice ();
$ amount = $ this-> getAmount ();
if ($ subtotal_price-> getCurrencyCode ()! = $ amount-> getCurrencyCode ()) {
Return;
}
// The advertising amount can not be greater than the subtotal to avoid this
// possibly with a negative total.
if ($ amount-> largerThan ($ subtotal_price)) {
$ amount = $ subtotal_price;
}
// Split amount between order items.
$ amount = $ this-> splitter-> split ($ order, $ amount);

foreach ($ order-> getItems () as $ order_item) {
if (isset ($ amounts[$order_item->id()])) {
$ order_item-> addAdjustment (new Adjustment ([
& # 39; type & # 39; => & # 39; promotion & # 39 ;,
// @todo Changes the label from the UI when added to # 2770731.
& # 39; label & # 39; => t (& # 39; discount & # 39;),
& # 39; amount & # 39; => $ amounts[$order_item->id()]-> multiply (& # 39; - 1 & # 39;),
& # 39; # 39 & source_id; => $ promotion-> id (),
]));
}
}
}
}

my_module.info.yml:

Name: "Custom Promotion Terms"
Type: Module
Description: "Offers custom quotes and conditions"
Core: 8.x.
Package: "Custom"
dependencies:
- Trade: Trade
- commerce: commerce_order
- Drupal: options

my_module.module:

<? php

/ **
* @File
* Contains my_module_custom_promotion.module.
* /

use Drupal  Core  Routing  RouteMatchInterface;

/ **
* Implemented hook_help ().
* /
function my_module_custom_promotion_help ($ route_name, RouteMatchInterface $ route_match) {
switch ($ route_name) {
// Main module help for the my_module_custom_promotion module.
case & # 39; help.page.my_module_custom_promotion & # 39 ;:
$ output = & # 39; & # 39 ;;
$ output. = & # 39;

& # 39 ;. t (& # 39; over & # 39;). & # 39;

& # 39 ;; $ output. = & # 39;

& # 39 ;. t (& # 39; my fantastic module & # 39;). & # 39;

& # 39 ;; return $ output; Default: } } / ** * Implements hook_theme (). * / Function my_module_custom_promotion_theme () { return [ 'my_module_custom_promotion' => [ 'render element' => 'children', ]. ]; }

I've tried my best, but I can not figure out what I'm doing wrong and cause this "used name" error. I searched my entire project just in case, but the text "OrderItemFixedAmountTarget" is only used in this one file.

Mailchimp Facebook integration does not save "page to use"

I have set up the Facebook integration in mailchimp. I have successfully connected to Facebook and accepted all permissions. After connecting, I've selected the page to use and the list to use under "Adding a Sign-up Form to Your Facebook Pages and Automatic Posting Campaigns." I've added the login tab / page and clicked "Save."

The tab / page will be created under the selected business page. However, when I return to the integration page in Mailchimp, another page is displayed under "Page to use" (the first one in the drop-down list). Is it the way it should work?

Just worried that the "Post on Facebook" option under a campaign will be posted on the wrong page. I can not determine on which Facebook page the campaign will be published.

Many thanks!