Comments (4)
Not sure. Is your cli running the same version of PHP as your webserver?
Can you try logging/var_dump-ing $name, $params
in app/code/community/Steverobbins/Slack/Model/Api/Abstract.php:113
from magento-slack.
Yup. Tried with different php versions of cli.
One more thing, I think it's somehow related to setopts encoding. Of course I will post additional logs.
Funny thing :) When you try to send two messages it also dumps an error. Even from cli.
<?php
require_once 'app/Mage.php';
Mage::app();
$chat = Mage::getModel('slack/api_chat');
$chat->setChannel('baselinker');
$chat->setText('OK1')->postMessage();
$chat->setText('OK2')->postMessage();
But the error is different:
Uncaught Mage_Core_Exception: invalid_array_arg in /public_html/app/Mage.php:595
from magento-slack.
curl -X GET https://slack.php
Log 1
array(4) {
["channel"]=>
string(9) "hidden"
["text"]=>
string(3) "OK1"
["username"]=>
string(8) "auto_bot"
["token"]=>
string(55) "hidden"
}
<br />
<b>Fatal error</b>: Uncaught exception 'Mage_Core_Exception' with message 'invalid_arg_name' in /public_html/app/Mage.php:595
from magento-slack.
Taken with
$params = $this->_prepareParams();
$result = $this->_post($name, $params);
var_dump($name);
var_dump($params);
php56 slack.php
array(4) {
["channel"]=>
string(9) "hidden"
["text"]=>
string(3) "OK1"
["username"]=>
string(8) "auto_bot"
["token"]=>
string(55) "hidden"
}
string(11) "postMessage"
array(5) {
["text"]=>
string(3) "OK2"
["username"]=>
string(8) "auto_bot"
["token"]=>
string(55) "hidden"
["ts"]=>
string(17) "1541457354.002800"
["message"]=>
array(6) {
["text"]=>
string(3) "OK1"
["username"]=>
string(8) "auto_bot"
["bot_id"]=>
string(9) "hidden"
["type"]=>
string(7) "message"
["subtype"]=>
string(11) "bot_message"
["ts"]=>
string(17) "1541457354.002800"
}
}
PHP Fatal error: Uncaught exception 'Mage_Core_Exception' with message 'invalid_array_arg' in /public_html/app/Mage.php:595
Stack trace:
from magento-slack.
Related Issues (2)
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 magento-slack.