Git Product home page Git Product logo

Comments (1)

Krinkle avatar Krinkle commented on July 17, 2024

Which version of Less.php are you using? And which version of PHP?

I believe you're on a fairly new version of PHP. The PHP Notice: Trying to access array offset on value of type null message was introduced in PHP 7.4.0. And became a Warning in PHP 8.0.0. To my knowledge this is not yet an "error". This means the program will continue to succeed and output the same CSS as it otherwise would. If you encounter these on user-facing web pages, make sure debugging is off by setting display_errors = Off in PHP itself.

Are you using an old version of Less.php? Less_Parser->NewObj3() was removed in Less.php v3.2.0. I suggest upgrading to Less.php v4.4.0 first.

The $op[0] line of code was also removed in https://gerrit.wikimedia.org/r/c/mediawiki/libs/less.php/+/1013411 and released in v4.3.0. However, to my knowledge this did not fix a bug. I suspect your input.less file might be containing invalid LESS syntax, and this internal warning might be a red herring. Once you upgrade, the warning will be solved, and you will either find success or a clearer error message pointing to the root cause :)

from less.php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.