How to stop activating a plugin and show admin notice when WooCommerce plugins minimum version is not met

I have a plugin which is dependent on WooCommerce plugin. How can I stop the activation of my plugin and display an admin notice with download link of the dependent plugin, if the version of the dependent plugin is lower than a certain version?

In short, on the activation process my plugin should not be activated and display a notice with download link when any of the following is true:

  1. WooCommerce plugin is not activated (I have solution for this)
  2. The version of WooCommerce plugin is less than a certain version
    (I do not have solution for this)

Note: This question is answering my question partially, but I need to have a full solution to check the version of the dependent plugin and display admin notice accordingly.

air travel – Can an airline move a flight time up 2 hours with three days notice?

When you book an airline ticket, you agree to the terms of a contract with them, the “Conditions of Carriage,” known by a variety of names.

According to Boutique Air’s Operator-Participant Contract, you are entitled to a full refund of the ticket price if they make a “Major Change” prior to departure. Unfortunately, a two-hour schedule change is not “major” according to the agreement.

The following are major changes: (1) a change in the origin or destination city, unless the change affects only the order in which cities named in the itinerary are visited; (2) a change in the departure or return date unless the change results from a flight delay experienced by the “Air Carrier” (If, however, the delay is greater than 48 hours, it will be considered a major change.); or (3) a price increase of more than 10% occurring ten or more days before departure.

It was not clear whether both your LA flight and your AOO flight were on a single ticket, or booked separately. On a single ticket, you would likely have been re-accommodated on the next available flight (which it seems you would have refused), or been offered a partial refund (which it seems you accepted).

If you bought the AOO flight separately from your LA flight, you assumed all responsibility for failing to make the connection. After all, your LA flight could have been delayed or canceled, or rescheduled for a different departure, and that would not have been Boutique’s fault.

For what it’s worth, Altoona is less than two hours’ drive from Baltimore, so if I were in your shoes, I would have rented a car and driven home. That would have been far cheaper than booking a new flight at the last minute, especially for two people, and gotten you home faster than just about any alternative, seeing as Boutique is the only airline that flies BWI-AOO nonstop, and only does so twice a day.

DMCA Notice! (with "baggage")

Received a filled out contact form from someone claiming to have been infringed (DMCA). They stated the client’s site we host was using imag… | Read the rest of

magento2 – How to show magento default backorder notice message in minicart & sales emails(same like cart page)

For minicart in app/design/frontend//Magento_Checkout/web/template/minicart/item/default.html I added

<p><!-- ko text: message --><!-- /ko --></p>

which appended the default backorder message, same like cart page & for sales emails, I did customization.

How much time after getting DMCA notice?

How much time after getting DMCA notice?

I have a small social media website, and was thinking, if someone uploads a copyright video, like a song, or even full movie, and then original copyright owners contact me to get it removed, then how much time do I have before any legal action is initiated against the website or me?

I’d like to give the original uploader a chance to remove the content themselves, before I delete it or suspend the account.
I’d like to give them a week may be, or less.

Plus, I also need to verify if complaint maker is actual copyright owner, and uploader is not.
Normally this is a given thing, but sometimes reverse of this happens.
Someone complaints about an original copyright owner, just out of spite.
So I will need to verify before acting on the complaint.

More importantly, how do I make sure that no legal action is taken against the website or me, since I am not the one who uploaded it.
Its just a social media, free for all website…

Anybody has any experience with this?


views – Notice: Undefined offset: 0 in Errors.php

  • When I visit my site, it looks just fine.
  • After I enter the valid credentials and click login, I get a blank page but URL shows Even though, I get a blank page, I assume I logged in.
  • I can access admin panel and able to click all the buttons (structure, config, report, etc.)
  • While logged in, I click the home link to go to home page but I get the following error:

Notice: Undefined offset: 0 in
…/core/lib/Drupal/Core/Utility/Error.php on line 122

Notice: Undefined index: file in …/core/includes/ on line

Notice: Undefined index: line in …/core/includes/ on line

I can send you Error.php and files if you would like to see it.

I was working in views contextual filter which caused the above issue. In views contextual filter, I had “Provide a default value” selected and I changed it to “display all results…”. Then my site got broken.

enter image description here

How can I fix the above errors?

magento2.4.2 – Exception #0 : Notice: Trying to access array offset on value of type null in ../Calendar.php PHP 7.4

I did a new installation of Magento 2.4.2 (PHP 7.4.3). There were no errors during the installation.
The ShopURL is running.
The backend login also works.
After I switched the backend to German, the following error message occurs:

"Exception #0 (Exception): Notice: Trying to access array offset on value of type null in /myPath2project/shop/vendor/magento/framework/View/Element/Html/Calendar.php on line 114"

Where could I start to solve the problem.

Thanks in advance
Greetings heiko

air travel – What can you do to preserve a second-leg ticket if you notice that you are not going to be able to fly the first leg?

Recently I learned the hard way that Not flying the first leg of the journey – Company cancels the second-leg ticket, since companies do not allow to fly only the second flight. This is also something IATA explains in Coupon sequence and use.

I was flying from a city in Spain to a city in Portugal with TAP Air Portugal on a return ticket.

When about to take the first leg of the ticket we were several people, including my wife, our little baby and me. We did the check-in online, with my baby attached to my place (she is few months old, so she does not have a seat on her own).
When in the airport we went to the baggage drop area and were asked for the passports; we showed the ‘libro de familia’ (family book) that works to fly in a domestic flight in Spain, but they told us that is not enough to fly within the European Union. Since the baby did not have a passport, she could not fly.
After some discussion, my wife opted to stay with the baby (she needs breastfeeding, something I cannot give :P) and solve the issue, while I took the flight (to minimize the loss of money). Also, I had to redo the checking, since the baby was not flying with me anymore and I was given a ticket on my own.

So the schema is: leg 1, me flying, while my wife and baby staying.

Next day, my wife solved the problem and her and the baby flied to the city in Portugal with the same company.

Some days later we went to the airport in Portugal to take the second leg of the return ticket. To our surprise, my wife’s ticket had been cancelled because ‘she had not taken the first leg of the flight’. We had to buy another ticket for her and finally made it home.

I was quite curious about my baby not having to pay again for the ticket, since she already missed the first leg of the journey. However, my main question is: what can I do in the future to preserve the second-leg ticket if I notice that I am not going to be able to fly the first leg?

I assume this can be easily (and costly) solved with days in advance by changing your ticket. However, my question is about this happening while you are already in the airport and the flight is about to leave, without you in it.

Notice: Array to string conversion in vendor/magento/framework/Escaper.php on line 261 in magento 2.4.1

I am facing this issue when I create a custom theme under my Magento 2.4.1.
The product displaying hides automatically showing this error.

[cXF] Custom Notice | NulledTeam UnderGround

Easily style up to 6 custom notices in style properties.

How to enable the custom styling for notice?

When editing a notice in Display styling choose and enter cxfNoticeA, cxfNoticeB, cxfNoticeC, cxfNoticeD, cxfNoticeE or cxfNoticeF. Then edit the style properties.

*make sure you enter the exact same class name as shown above


< enter the class name here >

[IMG alt=”Screenshot 2019-10-12 at…