cmscli - first look

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 169
Joined: Fri Feb 06, 2009 2:08 pm

cmscli - first look

Post by PinkElephant »

Hi

Just giving the new cmscli v0.1 -- looks like a great addition, thanks.

The first run gave a Fatal as it doesn't support use of include files in config.php (to keep sensitive data [db, 'admin' location] in a non world-readable location).

Code: Select all

Could not find database connection key "dbms" in the config file
Perhaps not surprising as I'm not sure whether CMSMS core supports it (and I have a feeling I saw code that tests the file size, somewhere) but it's something I've been doing on all sites for a long time without apparent issue.

The only commands showing against a 2.2.2 site (run from its root) are 'about', 'cmsms-download' and 'cmsms-latestversion' which all run fine. The same applies after upgrading the site to 2.2.3.1.

Should I be expecting to see more at this point?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: cmscli - first look

Post by calguy1000 »

I have uploaded a v0.1.2 version that should solve that issue.

http://dev.cmsmadesimple.org/projects/cmscli
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 169
Joined: Fri Feb 06, 2009 2:08 pm

Re: cmscli - first look

Post by PinkElephant »

Hi
calguy1000 wrote:v0.1.2
... and thanks.

I'm still seeing the issue because the config.php include takes the form;

Code: Select all

include($_SERVER['DOCUMENT_ROOT'] . '../private/site-config.inc');
When the path is hardcoded the problem disappears -- and I'm now seeing a full range of commands. :)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: cmscli - first look

Post by calguy1000 »

Revert your config.php to the standard.

There is no $_SERVER['DOCUMENT_ROOT'] in a CLI environment.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “The Lounge”