Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-05 16:54:29

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

I just upgraded from pre-4.0 to 4.0.3 an my list of files outputted by txp:file_download_list isn’t working correctly.

It lists everything right correct sorting, correct description, correct size, everything except when I click on the link it just opens up a blank window. The file path is correct also.

Here is the page, they are the Clearing the Air archives.

Diagnostics:

Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-04 15:25:49/2006-01-04 15:22:40
Document root: path obscured
$path_to_site: path obscured
Textpattern path: path obscured/textpattern
Permanent link mode: section_title
Temp folder: /tmp
Site URL: eteam.ncpa.org
PHP version: 4.3.11
server_time: 2006-01-04 10:13:02
MySQL: 4.1.11-standard-log
Locale: English_United States.1252
Server: Apache/1.3.27 (Unix) PHP/4.3.11 mod_perl/1.27 mod_jk/1.2.2
Apache version: Apache/1.3.27 (Unix) PHP/4.3.11 mod_perl/1.27 mod_jk/1.2.2
php_sapi_mode: apache
os_version: Linux 2.4.20-18.7smp

Last edited by Sencer (2006-01-09 16:02:54)

Offline

#2 2006-01-06 15:12:40

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Below are the results from tag trace. I don’t really know how to read this but I do see one thing here: <txp:file_download_description/> notice no space between the word “description” and the closing slash. In my form the space is there but the tag trace doesn’t show it.

Could this be it?

<!-- txp tag trace: 
[SQL (0.000386): select name from `eteam_txp_lang` where lang='en-us' limit 1]
[SQL (0.003410): select name, data from `eteam_txp_lang` where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.002350): select name, code from `eteam_txp_plugin` where status='1']
[SQL (0.000412): select name from `eteam_txp_section` where `name` like 'newsletter' limit 1]
[SQL (0.000317): select * from `eteam_txp_section` where name = 'newsletter' limit 1]
[SQL (0.000318): select user_html from `eteam_txp_page` where name='newsletter_page']
[Page: newsletter_page]
<txp:output_form form="inc_meta" />
	[SQL (0.000302): select form from `eteam_txp_form` where `name` = 'inc_meta' limit 1]
	<txp:glz_vars/>
		[SQL (0.000259): select title from `eteam_txp_section` where name = 'newsletter']
<txp:page_title separator=" | " />
<txp:output_form form="inc_header" />
	[SQL (0.000257): select form from `eteam_txp_form` where `name` = 'inc_header' limit 1]
	<txp:glx_if_frontpage>
	</txp:glx_if_frontpage>
	<txp:if_section name="">
		[<txp:if_section name="">: false]
		<txp:sitename/>
	</txp:if_section>
	<txp:site_slogan/>
<txp:output_form form="inc_primarynav" />
	[SQL (0.000274): select form from `eteam_txp_form` where `name` = 'inc_primarynav' limit 1]
	<txp:if_section name="about">
		[<txp:if_section name="about">: false]
	</txp:if_section>
	<txp:if_section name="commentaries">
		[<txp:if_section name="commentaries">: false]
	</txp:if_section>
	<txp:if_section name="news">
		[<txp:if_section name="news">: false]
	</txp:if_section>
	<txp:if_section name="newsletter">
		[<txp:if_section name="newsletter">: true]
	</txp:if_section>
	<txp:if_section name="">
		[<txp:if_section name="">: false]
		<txp:glz_crumbs sep=" » " />
	</txp:if_section>
<txp:glx_if_section_frontpage>
	<txp:file_download_list form="files" category="2006" sort="filename desc" wraptag="ul" break="li" label="2006" labeltag="h3" />
		[SQL (0.001033): select * from `eteam_txp_file` where category='2006' order by filename desc limit 0, 10]
	<txp:file_download_list form="files" category="2005" sort="filename desc" wraptag="ul" break="li" label="2005" labeltag="h3" />
		[SQL (0.000531): select * from `eteam_txp_file` where category='2005' order by filename desc limit 0, 10]
		[SQL (0.000262): select * from `eteam_txp_file` where id='24']
		[SQL (0.000266): select * from `eteam_txp_file` where id='24']
		[SQL (0.000234): select Form from `eteam_txp_form` where `name` = 'files' limit 1]
		[Form: files]
		<txp:file_download_link>
			<txp:file_download_description/>
		</txp:file_download_link>
		<txp:file_download_size format="auto" decimals="2" />
		[SQL (0.000309): select * from `eteam_txp_file` where id='23']
		[SQL (0.000264): select * from `eteam_txp_file` where id='23']
		[Form: files]
		<txp:file_download_link>
			<txp:file_download_description/>
		</txp:file_download_link>
		<txp:file_download_size format="auto" decimals="2" />
		[SQL (0.000313): select * from `eteam_txp_file` where id='22']
		[SQL (0.000270): select * from `eteam_txp_file` where id='22']
		[Form: files]
</txp:glx_if_section_frontpage>
<txp:glx_if_not_section_frontpage>
</txp:glx_if_not_section_frontpage>
<txp:output_form form="inc_search" />
	[SQL (0.000316): select form from `eteam_txp_form` where `name` = 'inc_search' limit 1]
<txp:stw_category_tree type="link" cssid="policy" maxlevel="1" section="issues" start="Policy-Issues" headtext="<h2>Policy Issues</h2>" />
	[SQL (0.000594): select * from `eteam_txp_category` where name='Policy-Issues' and type='link']
	[SQL (0.000534): select * from `eteam_txp_category` where name='root' and type='link']
	[SQL (0.000486): select lft as l, rgt as r from `eteam_txp_category` where name='Policy-Issues' and type = 'link']
	[SQL (0.001193): select name, lft, rgt, parent, title from `eteam_txp_category` where lft between 4 and 131 and type = 'link' order by lft asc]
	[SQL (0.007419): select count(*) from `eteam_txp_link` where category='agriculture']
	[SQL (0.007363): select count(*) from `eteam_txp_link` where category='air-problems']
	[SQL (0.007289): select count(*) from `eteam_txp_link` where category='biotechnology']
	[SQL (0.007311): select count(*) from `eteam_txp_link` where category='energy']
	[SQL (0.007334): select count(*) from `eteam_txp_link` where category='environmental-education']
	[SQL (0.007234): select count(*) from `eteam_txp_link` where category='global-warming']
	[SQL (0.007199): select count(*) from `eteam_txp_link` where category='international-issues']
	[SQL (0.007310): select count(*) from `eteam_txp_link` where category='land-issues']
	[SQL (0.007299): select count(*) from `eteam_txp_link` where category='property-issues']
	[SQL (0.007243): select count(*) from `eteam_txp_link` where category='regulation-and-risks']
	[SQL (0.007398): select count(*) from `eteam_txp_link` where category='waste-and-recycling']
	[SQL (0.007262): select count(*) from `eteam_txp_link` where category='water-issues']
	[SQL (0.007318): select count(*) from `eteam_txp_link` where category='wildlife-issues']
<txp:output_form form="inc_foot" />
	[SQL (0.000349): select form from `eteam_txp_form` where `name` = 'inc_foot' limit 1]
	<txp:jsa_copyright start="2004" />
[ --- secondpass --- ]
 -->

Offline

#3 2006-01-07 09:00:44

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Well, your problem doesn’t seem to be the list, but the download-links that are not working correctly, if you get a blank page.

A correct link looked like this (I tried before you changed your links):

http://eteam.ncpa.org/file_download/24

But when I call that link, I get a 404-http response code, which happens with file_downloads when the path to the files is not correct (meaning txp can’t find a file).
(Note: Yes, there should have been output as well, instead of a blank page).

When you go in the admin-area into content->files, do you get an error message? When you open one of the existing files there, do you see an error-message? What doesn advanced preferences say about your fle upload path?

Can you upload new files? Can those new files be downloaded with textpatterns download-urls (…/file_download/id)?

Offline

#4 2006-01-07 23:40:21

Nathan Smith
Member
Registered: 2005-01-14
Posts: 66
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Sencer: I just wanted to chime in and say that I’m having the same problem. This should be a link to download some XHTML calendar templates I made, but instead just gives a blank page. The same happens when I try it from within the TXP interface…

http://sonspring.com/file_download/9

The problem persists with new file uploads as well. There is no error message, simply a blank page. At first, I thought the problem was due to Mint and a download tracker, but I disabled that, and even removed the JavaScript from my page, and the problem still remains. For now, I’m just directly linking to the Zip files throughout my site.

Last edited by Nathan Smith (2006-01-07 23:42:23)


Are we all figments of God’s imagination?

Offline

#5 2006-01-08 00:20:27

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

This should be a link to download some XHTML calendar templates I made, but instead just gives a blank page.

Set Production Status to Testing and see if there’s an error message.


Alex

Offline

#6 2006-01-08 00:44:47

Nathan Smith
Member
Registered: 2005-01-14
Posts: 66
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Zem: I checked it, no error message.


Are we all figments of God’s imagination?

Offline

#7 2006-01-08 10:43:32

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Nathan,

what about:

When you go in the admin-area into content->files, do you get an error message?

When you open one of the existing files there, do you see an error-message?

What doesn advanced preferences say about your fle upload path?

Offline

#8 2006-01-08 16:39:50

Nathan Smith
Member
Registered: 2005-01-14
Posts: 66
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Sencer: Same thing for Content -> Files: Just a blank screen. All the files themselves work fine, when linked to directory. File upload path is fine, and I can still upload things to /files/ directory. It’s just been since 4.0.3 that the /file_download/X link hasn’t worked.


Are we all figments of God’s imagination?

Offline

#9 2006-01-08 17:44:23

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Sencer: Same thing for Content -> Files: Just a blank screen.

You get a blank page for what? As soon as you click on the “files”-tab? That would be very odd. When you open the details for a file from the list (which I assume you can still see), does it appear red or does it say the file is missing or something similar? (I understand that you are saying the files are still on the server. I am wondering whether Txp knows this as well).

Finally can you give us the link to an existing file-download that gives such a blank page, I want to check whether you also get the 404 error.

File upload path is fine, and I can still upload things to /files/ directory.

Are you using the webinterface to upload the files? Do I understand you right, that the files you upload appear on the webserver right next to the files that you have previously uploaded?

Offline

#10 2006-01-08 22:31:03

Nathan Smith
Member
Registered: 2005-01-14
Posts: 66
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Sencer: I don’t get an error at all on the Content -> Files page. It says “File status Ok” for all of them. I meant, I get a blank screen when attempting to download from that area, because it also links to them with /file_download/X. I am using the web interface to upload the files, and they appear correctly in the root/files/ directory. Here are two links, one directly to the Zip file, and another to the URL that used to work, pre 4.0.3. In theory, they should download the same file…

http://sonspring.com/files/calendar.zip

http://sonspring.com/file_download/9


Are we all figments of God’s imagination?

Offline

#11 2006-01-09 04:23:05

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

Sounds like nathan and I are in the same boat

Sencer said,
When you go in the admin-area into content->files, do you get an error message? When you open one of the existing files there, do you see an error-message? What doesn advanced preferences say about your fle upload path?
Can you upload new files? Can those new files be downloaded with textpatterns download-urls (…/file_download/id)?

I didn’t change anything while upgrading. Just uploaded the new textpattern folder, .htaccess, and index.php and the file_download_link stopped working.

To answer your questions:

  • Content->files says everything is ok, I changed the file upload path to an incorrect one just to see if that was working and it is. It said missing.
  • No error messages when I click on the existing files in the admin side. I can assign a description and category like normal
  • I can upload new files but the download link gives me the same blank page when clicked on
  • The files cannot be downloaded with (…/file_download/id) but can if I use (…/files/id).

Like I mentioned before file_download_list works correctly the descriptions show up, it is accessing my form correctly, and outputing the correct file size. It is just the file_download_link that no longer works.

If you look at my tag trace any txp file tag I use that is between txp:file_download_link has the closing slash without the space before it.

Offline

#12 2006-01-09 08:47:44

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: 4.0.3 r1188 txp:file_download_list problems [resolved, plugin-related]

(copied from other thread)

I have what seems to be the same problem. But I didn’t upgrade anything, I’m still on 4.0.2.
It was working a few days ago, but just seems to have broken while I was working on another part of my site. Other than that my problem is the same. Everything is fine in the admin/files tab.

I’ve added <code><a href=”/files/<txp:file_download_name />”><txp:file_download_description /></a></code>, to my form as a temporary fix, but I’m displaying an mp3 download chart so I need to use the file_download link if possible.

You can see both options in action here

Offline

Board footer

Powered by FluxBB