Open wujekbogdan opened 5 years ago
Based on just this error, the error is within the package brain/cortex
that you're requiring. It seems that you are trying to call a function within a namespace, while in reality you probably need the global did_action()
function. Please share the lines of code that the error is referring to, but I'm afraid that's the case and therefore not a Mozart issue.
@coenjacobs
I'm not calling the did_action()
function, the library calls this function internally: see Cortex/Cortex.php#L55
Hi,
I'm currently fighting with rubix/ml
and Mozart. I think I've run into the same issue, therefore I created a composer project from scratch to demonstrate the issue in isolation.
The function is imported at https://github.com/ChristophWurst/rubix-ml-mozart/blob/1344bfba014c8f2c9b7d4edca5c7cc1fddcf989b/lib/Vendor/Rubix/ML/Datasets/Dataset.php#L17. As you can see here, there the original function got namespaced for the import.
The definition, however, has the original namespace: https://github.com/ChristophWurst/rubix-ml-mozart/blob/1344bfba014c8f2c9b7d4edca5c7cc1fddcf989b/lib/Vendor/Rubix/ML/functions.php#L44.
Hope this makes it easier to debug :v:
After running
"vendor/bin/mozart" compose
I'm getting the following error:My package.json