Comments (2)
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.
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)
- Miss _DB_PREFIX_
- Multiple shop support ?
- $this->_erroors[]
- Module Fails with PS 1.6.0.10 HOT 1
- Hard coded database
- configuration error
- New Install - Tax doubled HOT 1
- Module not working with Prestashop 1.7.3.2
- Avatax module validateAddress not checking state (from @alex974)
- Memory Exhausted HOT 2
- Exemptions not handled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalaratax.