virgilwashere / mautic-cron-commands Goto Github PK
View Code? Open in Web Editor NEWScript to run Mautic commands from a web page.
Home Page: https://www.mautic.org
License: GNU General Public License v3.0
Script to run Mautic commands from a web page.
Home Page: https://www.mautic.org
License: GNU General Public License v3.0
After updating to 4.4.10 commands.php throws aout
403 - Forbidden
You don't have permission to access this resource.
With 4.4.9 everything was fine.
Any idea what could happen and how to fix ?
thank you
Andreas
This version does not seem to work with Mautic 3 yet.
Could you please update this to support Mautic v3?
I installed the script file, but when trying to execute a command, it could bring me to http://mautic/
I figured this was due to $server_name that was null
I found out this issue about filter_input :
xwp/stream#254
so I changed the line
$server_name = filter_input(INPUT_SERVER, 'SERVER_NAME');
to
if (filter_has_var(INPUT_SERVER, "SERVER_NAME")) { $server_name = filter_input(INPUT_SERVER, "SERVER_NAME", FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE); } else { if (isset($_SERVER["SERVER_NAME"])) $server_name = filter_var($_SERVER["SERVER_NAME"], FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE); else $server_name = null; }
and it worked.
Hope this will help.
Maybe it could be good to include it in the source file ;-)
Cheers,
CONTRIBUTING.md
Complete the repository meta documents.
Add sections as new comments
With the latest upgrade, dependent files such as the autoload.php have been removed along with other structural changes to the mautic app.
As a result things are no longer loading and throwing 500 errors
Resolution:
require_once $docroot.'/app/autoload.php';
to
require_once $docroot.'/autoload.php';
Came across this wonderful project and would like to know if it supports Mautic 4&5?
Currently, the requested task has to be an exact match to the array elements.
$task = urldecode($_GET['task']);
if (!in_array($task, $allowedCmds)) {
http_response_code(403);
die("Command {$task} is not allowed!");
}
I would like to make the check for the base command only
mautic:segments:update
vs
mautic:segments:update --max-contacts=300 --batch-limit=300 --quiet
Use Symfony\Component\Console\Question\Question
to request input for some commands.
Will be especially useful for batch limits/counters and integrations.
Hi @virgilwashere Any chance of upgrading this to work with v4?
M.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.