Yes, I’m sure there’s ways to do this that are neater than the above but I think it needs to be tried first, it may not work
Use MODx, or the cat gets it!
I just tried that snippet and it does return the expected values.
Values yes, but Provisioner still won’t log in.
OK, its looking as though if you want to use Provisioner with 2.1.1+ you’ll have to revert that line of code, or come up with another cunning plan!
Use MODx, or the cat gets it!
-
☆ A M B ☆
- 3,112 Posts
@shamblett,
what is the last version of this extra?
The current provision on extra shows Provisioner 1.0.0-pl, while strangely the previous one was 1.9.0.
EDIT:
So I download it, installed it.
And this is the report logs:
[2011-08-04 10:18:59] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 692) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:18:59] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 702) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:18:59] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 704) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:18:59] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 716) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:18:59] (ERROR @ D:\localhost\convert-evo2revo\revo\core\model\modx\modconnectorresponse.class.php : 129) Recoverable error: Argument 1 passed to modConnectorResponse::outputArray() must be an array, string given, called in D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php on line 724 and defined
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 772) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 773) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 775) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 797) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\model\modx\modconnectorresponse.class.php : 129) Recoverable error: Argument 1 passed to modConnectorResponse::outputArray() must be an array, null given, called in D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php on line 811 and defined
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 692) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 702) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 704) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 716) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\model\modx\modconnectorresponse.class.php : 129) Recoverable error: Argument 1 passed to modConnectorResponse::outputArray() must be an array, string given, called in D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php on line 724 and defined
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 772) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 773) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 775) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 797) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:19:00] (ERROR @ D:\localhost\convert-evo2revo\revo\core\model\modx\modconnectorresponse.class.php : 129) Recoverable error: Argument 1 passed to modConnectorResponse::outputArray() must be an array, null given, called in D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php on line 811 and defined
[2011-08-04 10:19:15] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 465) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:15] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 468) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:15] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 470) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:15] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 498) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:19:16] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 841) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:16] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 844) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:16] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 846) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:16] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 881) PHP warning: Invalid argument supplied for foreach()
[2011-08-04 10:19:17] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 618) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:17] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 621) PHP warning: curl_setopt(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:17] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 623) PHP warning: curl_exec(): supplied argument is not a valid cURL handle resource
[2011-08-04 10:19:17] (ERROR @ D:\localhost\convert-evo2revo\revo\core\components\provisioner\model\provisioner\provisioner.class.php : 643) PHP warning: Invalid argument supplied for foreach()
I’m on MODX Revolution 2.1.2-pl (traditional)
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
1.0.0-pl is the latest version, 1,9.0 was actually 1.9.0-beta, the last beta version. You can’t use Provisioner to login into a 2.1.2 site, see above thread, you should be able to use it to log into a revo site before this or an evo site, what is it you are trying to do?
Use MODx, or the cat gets it!
-
☆ A M B ☆
- 3,112 Posts
Converting an evo site to 2.1.2
Ok, looks like I need to set another way.
Thx, man.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Will this package ever support logging into Revo 2.1.2 sites? Or is there a solution for this problem I have missed? Seems like a great resource, would love to have it running...
Dan
What’s needed here is an auth module things like Provisioner can use to log into Revo as a 3rd party/external component, in a similar manner that the many browser plugin twitter feed readers do this, or your browser Gmail plugin does this for instance. This would allow proper controlled, authenticated access to Revo without going through the manager login page. The core devs need to look at this really. As for your question no solution exists at the mo, if you really need this you could revert the update that causes this(see above in this thread).
Use MODx, or the cat gets it!