This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Preview 1 Bugs


avatar
cosmin 269
From: -
Preview 1 Bugs

News import can't handle ISO-8859-2 encoding, characters specific to that encoding are simply removed and replaced with html line breaks <br />. I'm assuming it goes for the rest of the script as well.
see this feed for example:
 http://www.agora.ro/rss/agoranews.xml
RCS & RDS aduce spiritul Cr
ciunului
n sufletul copiilor institu
ionaliza
i


If I only approve "checked items" for a certain feed, why do I still get prompted to approve the rest of the items and I have to disapprove each of them in turn? And what's more they still get imported.

Imported news are broken.
see
 http://www.file-portal.net/ess20
Only the story which is marked as "today's top story" is parsed correctly, the rest of them have links messed up, and single quotes (Editor's choice) get erased and replaced with
<br />
<br />
<br />
so we have


Editor
<br />
<br />
<br />s Choice.
quoted text


The download section is good. But will it have something like checking for updates to the PAD files?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Preview 1 Bugs
avatar
Administrator
1340
From: Vienna, Austria
Preview 1 Bugs

News import can't handle ISO-8859-2 encoding, characters specific to that encoding are simply removed and replaced with html line breaks <br />. I'm assuming it goes for the rest of the script as well.

Fixed the line break problem in both RSS and PAD parsers. The encoding problem can't be fixed easily. I will see if I find a solution later.

If I only approve "checked items" for a certain feed, why do I still get prompted to approve the rest of the items and I have to disapprove each of them in turn? And what's more they still get imported.

Become this is only meant as a quick way to approve news posts from a known source.

Query: SELECT file_id, file_author, file_category, file_title, file_version, file_seo, file_smalldescription, file_tags, file_size, file_cost, file_company, file_homepage, file_os, file_teaser, file_comments, file_thread, file_date, file_views, file_rating, file_votes FROM esselbach_ct_files WHERE file_sticky = '1' AND file_frontpage = '1' AND (file_status = '0' OR file_status = '3') AND (file_website = '0' OR file_website = '1') ORDER BY file_id DESC
Error: 1054 Unknown column 'file_title' in 'field list'

Fixed in build 252.
1 Re: Preview 1 Bugs
avatar
Administrator
1340
From: Vienna, Austria
Preview 1 Bugs

Similar results with simplexml.
1 Re: Preview 1 Bugs
avatar
Administrator
1340
From: Vienna, Austria
Preview 1 Bugs

I tried manually forcing ISO-8859-2:
Warning: xml_parser_create() [function.xml-parser-create]: unsupported source encoding "ISO-8859-2" in /Applications/MAMP/htdocs/ct2/cadmin/import/adminimportnow.php
1 Re: Preview 1 Bugs
avatar
Administrator
1340
From: Vienna, Austria
Preview 1 Bugs

News import can't handle ISO-8859-2 encoding, characters specific to that encoding are simply removed and replaced with html line breaks <br />. I'm assuming it goes for the rest of the script as well.

Found the problem. I am afraid this is a limitation of the PHP XML parser.

From the PHP manual:
The optional encoding specifies the character encoding for the input/output in PHP 4. Starting from PHP 5, the input encoding is automatically detected, so that the encoding parameter specifies only the output encoding. In PHP 4, the default output encoding is the same as the input charset. If empty string is passed, the parser attempts to identify which encoding the document is encoded in by looking at the heading 3 or 4 bytes. In PHP 5.0.0 and 5.0.1, the default output charset is ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported encodings are ISO-8859-1, UTF-8 and US-ASCII.

 http://at2.php.net/manual/en/function.xml-parser-create.php

I will check tomorrow whether the  simplexml parser will handle that encoding.
1 Re: Preview 1 Bugs
avatar
Administrator
1340
From: Vienna, Austria
Preview 1 Bugs

Please post a new topic for each bug. This will make it a bit easier.

News import can't handle ISO-8859-2 encoding, characters specific to that encoding are simply removed and replaced with html line breaks <br />. I'm assuming it goes for the rest of the script as well.

I will look tomorrow into this issue.

The download section is good. But will it have something like checking for updates to the PAD files?

Yes, the is one of the things that are not fully complete. This will come in Preview 3 or 4.

Query: SELECT file_id, file_author, file_category, file_title, file_version, file_seo, file_smalldescription, file_tags, file_size, file_cost, file_company, file_homepage, file_os, file_teaser, file_comments, file_thread, file_date, file_views, file_rating, file_votes FROM esselbach_ct_files WHERE file_sticky = '1' AND file_frontpage = '1' AND (file_status = '0' OR file_status = '3') AND (file_website = '0' OR file_website = '1') ORDER BY file_id DESC
Error: 1054 Unknown column 'file_title' in 'field list'

There is a typo in the featured file function. Turn as temporary workaround the option "Show featured files?" off
1 Re: Preview 1 Bugs
avatar
OP 269
From: -
Preview 1 Bugs

or after I logged in as administrator from the frontpage and tried to edit a download, instead of logging in through cadmin.
1 Re: Preview 1 Bugs
avatar
OP 269
From: -
Preview 1 Bugs

Query: SELECT file_id, file_author, file_category, file_title, file_version, file_seo, file_smalldescription, file_tags, file_size, file_cost, file_company, file_homepage, file_os, file_teaser, file_comments, file_thread, file_date, file_views, file_rating, file_votes FROM esselbach_ct_files WHERE file_sticky = '1' AND file_frontpage = '1' AND (file_status = '0' OR file_status = '3') AND (file_website = '0' OR file_website = '1') ORDER BY file_id DESC
Error: 1054 Unknown column 'file_title' in 'field list'

Looks like something broke my download section. I can't recall the exact steps, but I think it was after I enabled some options in the files preferences page.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.