Error with friendly URL: "empty-#"

Post Reply
roeilife
Jr. Bludit
Posts: 7
Joined: Mon Nov 28, 2016 9:42 am

Wed Mar 22, 2017 5:19 am

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.
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Thu Mar 23, 2017 1:31 pm

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.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
roeilife
Jr. Bludit
Posts: 7
Joined: Mon Nov 28, 2016 9:42 am

Wed Apr 05, 2017 11:34 am

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
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Thu Apr 06, 2017 12:39 am

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.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
roeilife
Jr. Bludit
Posts: 7
Joined: Mon Nov 28, 2016 9:42 am

Fri May 26, 2017 6:59 am

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?
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat May 27, 2017 12:06 pm

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.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply