Error when creating post using CLI Mode

Post Reply
User avatar
daveX99
Jr. Bludit
Posts: 3
Joined: Thu Dec 22, 2016 3:33 am
Contact:

Hi:

I have been able to create a page via CLI Mode, but the process fails when trying to create a post. I have read the documentation here:
https://docs.bludit.com/en/cli-mode/wor ... d-cli-mode

I have CLI_MODE set to 'true' in my init.php file.

After creating a directory under bl-content/posts/ (called 'testy2') and creating an index.txt file, if I go to the new page in my browser, I get the Error page. I also get an error in my apache log:

Code: Select all

[Wed Dec 21 18:45:22 2016] [error] [client 67.188.96.165] (1.5.2)buildPost | Error occurred when trying build the post from database with key: testy2
I thought perhaps I was leaving some variable out, but I copied the variables from the examples, and even copied a working post to a new name in the posts subdirectory. I have looked hard at the permissions on the post and it's subdirectory, but even with it set to 777, the post will not build.

If anyone has some tips or suggestions, I would appreciate it.

Thanks,
- dave.

Ps - I am new to the platform, and have made 2 quick sites already -- I am playing with it some more in order to understand the possiblities... :D
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
sorry for the delay on the answer..

Could you post the content of the file index.txt ?

Thanks
anaggh
Ssr. Bludit
Posts: 15
Joined: Sat Aug 27, 2016 9:05 am

In the v1.5.2 release available from bludit.com

Try removing "&& false" on Line 16 bl-kernel/boot/rules/70.posts.php

More info: https://github.com/dignajar/bludit/comm ... 563a298273
User avatar
daveX99
Jr. Bludit
Posts: 3
Joined: Thu Dec 22, 2016 3:33 am
Contact:

Thanks, anaggh -- that solved the issue.
anaggh wrote:In the v1.5.2 release available from bludit.com

Try removing "&& false" on Line 16 bl-kernel/boot/rules/70.posts.php

More info: https://github.com/dignajar/bludit/comm ... 563a298273
The change you suggested - and have submitted to github - fixes the error. Your suggested change matches the corresponding line in 71.pages.php, which explains why I was able to submit a page via CLI_MODE.
Post Reply