GithubHelp home page GithubHelp logo

Comments (2)

AnimusImmodicus avatar AnimusImmodicus commented on May 14, 2024

This issue should be fixed by our latest commit 078f888.

However, we do not have this issue in any of our environments. Therefore, I am curious to know what $className was causing the error.

As far as I understand, some other module or part of Prestashop in your environment was encountering our autoloader via the spl_autoload_register() queue and then failing a regular expression check that was in the Avalara module since the initial commit. Because our autoloader shouldn't handle this class anyway (or care if it matches our regular expression) I simply updated our module to return, instead of dying.

from avalaratax.

seigieu avatar seigieu commented on May 14, 2024

Problem is, that your:

if (!preg_match('/^\w+$/', $className)) die('Invalid classname.');
Does detect \namespaces\myclassnmae as invalid. Thus it detects valid classname as invalid and emits error.

Also, next time if your module kills script, please specify who does it:

if (!preg_match('/^\w+$/', $className)) die('avalaraAutoload:: Invalid classname.');

I spent some time looking where was script dying.

from avalaratax.

Related Issues (12)

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.