Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2008-11-23 21:07:39

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

i just wanted to upgrade an installation to the latest RC and now i’m getting this error:

Warning: Unknown column 'load_order' in 'order clause' select name, code, version from txp_plugin where status = 1 AND type IN (1,3) order by load_order in /textpattern/lib/txplib_db.php on line 82

and when i go to the plugin section:

Warning: Unknown column 'load_order' in 'field list' select name, status, author, author_uri, version, description, length(help) as help, abs(strcmp(md5(code),code_md5)) as modified, load_order from txp_plugin where 1 order by name asc in /textpattern/lib/txplib_db.php on line 82

Last edited by sthmtc (2008-11-23 21:08:15)

Offline

#62 2008-11-23 21:09:51

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

What version were you updating from?

Offline

#63 2008-11-23 21:17:40

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

4.0.6

Offline

#64 2008-11-23 21:43:22

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

Strange, as Textpattern would add the missing column load_order as a part of the update procedure from a clean 4.0.6 to 4.0.7 RC.

This SQL statement would force TXP to reapply all updates: DELETE FROM txp_prefs WHERE name='dbupdatetime' (replace txp_prefs with your prefixed table name like myprefixtxp_prefs)

Offline

#65 2008-11-23 22:39:40

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

the_ghost wrote:

Do filenames appear in url?

For instance, <txp:file_download_link /> builds clean URIs like so: http://example.com/file_download/42/foo.bar

Offline

#66 2008-11-24 05:50:09

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

sthmtc wrote:

4.0.6

Sven, was this site installed or updated with 4.0.6 before or after 2008-Nov-07?

Offline

#67 2008-11-24 08:36:01

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

wet wrote:

For instance, <txp:file_download_link /> builds clean URIs like so: http://example.com/file_download/42/foo.bar

Oops, you’re right. But some idea I have – can’t we left filename’s in native language, but don’t use them in url, or use translitarated version? I think that txp handles right download by id – the filename is for recognition only. And, if it’s so, translitarated url would be the happy medium. Because we can built nice links, where <txp:file_download_name /> would look good and url would be safe.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#68 2008-11-24 08:39:33

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

the_ghost wrote:

Oops, you’re right. But some idea I have – can’t we left filename’s in native language, but don’t use them in url, or use translitarated version?

This would probably break existing URIs and backwards compatibility.

Offline

#69 2008-11-24 08:57:13

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

wet wrote:

This would probably break existing URIs and backwards compatibility.

I have an old 4.0.6 version and filenames aren’t converted threre – only spaces converted into +. If we left current behoviour or make names transliterated it’s very oncomfortable to build files’ archives – because in this way we have only one ontouchable filed – files’ description and we have to use it as file name, ot develop some php code for exploding this field into 2 or more by some special chars (like there is plugin for series of values in one custom_field).

Last edited by the_ghost (2008-11-24 09:56:31)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#70 2008-11-24 12:27:02

Olhado
New Member
Registered: 2008-10-28
Posts: 3

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

the_ghost wrote:

I have an old 4.0.6 version and filenames aren’t converted threre – only spaces converted into +.

It’s true :) For example: mp3 with raw russian in filename — TxP 4.0.6 and there is no problems with downloading, playing, etc. And CMS works fine.

But not in 4.0.7

Last edited by Olhado (2008-11-24 12:27:46)


Sorry for bad English

Offline

#71 2008-11-24 12:48:38

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

Olhado wrote:

It’s true :) For example: mp3 with raw russian in filename (http://khasandivers.co.cc/file_download/2/%D0%91%D0%BE%D0%B9+%D1%83+%D0%BE%D0%B7%D0%B5%D1%80%D0%B0+%D0%A5%D0%B0%D1%81%D0%B0%D0%BD-%D0%90%D0%BD%D1%81%D0%B0%D0%BC%D0%B1%D0%BB%D1%8C+%D0%BF%D0%B5%D1%81%D0%BD%D0%B8.mp3)

We know, that this “works”. But it requires percent-encoded filenames (see above), which might impose a security risk. The sanitization of file names as a security precaution is part of 4.0.7.

Offline

#72 2008-11-24 13:11:19

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Feedback to: Help us test the release candidate for the upcoming 4.0.7

wet wrote:

Strange, as Textpattern would add the missing column load_order as a part of the update procedure from a clean 4.0.6 to 4.0.7 RC.

So could this be a bug? I never had any issues upgrading Textpattern in that particular environment.

Offline

Board footer

Powered by FluxBB