Page 1 of 1

Error with friendly URL: "empty-#"

Posted: Wed Mar 22, 2017 5:19 am
by roeilife
I would like you to fix the error that it's impossibel to post when we post articles with the friendly URL: "empty-#" more than 11 times. We preare our clients' blog and let them post their articles. But sometimes they post them without its titles. So their friendly URL automatically set as "empty-#" often and when they reach "empty-10", they claim us that they can't post anything.

Thank you in advance.

Re: Error with friendly URL: "empty-#"

Posted: Thu Mar 23, 2017 1:31 pm
by Edi
We will have a look at it... But I would recommend to use titles like "Draft 1", "Draft 2" etc. You always can change them later.

Re: Error with friendly URL: "empty-#"

Posted: Wed Apr 05, 2017 11:34 am
by roeilife
Thank you very much for having a look for it.
I know it's normal to put titles on every post and I told so to our clients but still there are some who doesn't put their titles and claim us that they can't post...

Anyway hope you can fix it soon

Re: Error with friendly URL: "empty-#"

Posted: Thu Apr 06, 2017 12:39 am
by Edi
For using two digits for empty posts you can change line 93 in the file dbposts.class.php (in /bludit/bl-kernel) from

Code: Select all

$newKey = $newKey.'-0';
to

Code: Select all

$newKey = $newKey.'-00';
For pages you can change line 281 in the file dbpages.class.php.

Re: Error with friendly URL: "empty-#"

Posted: Fri May 26, 2017 6:59 am
by roeilife
Thank you for showing me the solution.

There is another problem that once the post is posted without its title, the friendly url is set as "empty-00" but then it's hard to edit the url again like I try to retype or delete the url but it won't work.

Is there any way to avoid the problem?

Re: Error with friendly URL: "empty-#"

Posted: Sat May 27, 2017 12:06 pm
by Edi
It works when you add or modify the title. You cannot change friendly URLs' for posts ands pages without a title.

There is a problem with hyphens. But you can write the friendly URL and then insert hyphens. I will open an issue.