Giter Club home page Giter Club logo

mautic-cron-commands's Issues

No support for Mautic 3

This version does not seem to work with Mautic 3 yet.

Could you please update this to support Mautic v3?

[BUG]

Bug Report

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,

Mautic 4 & 5 Support

Came across this wonderful project and would like to know if it supports Mautic 4&5?

[BUG] - v4.3.1 - removed dependent files - 500 error

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';

Error 403 - Mautic 4.4.10

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

Feature: make allowed tasks not exact match

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

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.