On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




Problem with permalink

UserPost

4:07 pm
15 Sep 2007


lstelie

Member

posts 9

 
1

Hello

http://audioblog.fr/download-manager.php?id=1

is supposed to point to

http://audioblog.fr/downloads/photo/nameofthefile.pdf

 But the result is a 404

 On the other hand

http://audioblog.fr/download-manager.php

Doesn’t issue a 404 but logically issues :

Invalid ID, numbers (0-9) only!

 Any help welcome

Luc 

 

4:56 pm
15 Sep 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
2

Well there are two reasons that spring to mind. The first is that a 404 is issued if the filepath is not valid. So first question, when you look at the index do you have the tick beside the download?

The other thing is something that happened to me a couple of weeks back when I switched hosts. The permissions on my ‘download-mananger.php’ file were too open. Check the permissions on this file . Advised permission is 644. Anything greater than this could cause the problem on some hosts. Also worth checking permission on your download folder and file as well to make sure they can be reached by a user.

If neither of these are the culprit then I would suggest asking your host of they have anything in  place that may be stopping the redirect.

12:00 am
16 Sep 2007


lstelie

Member

posts 9

 
3

Hello Andy,

You’re right, the error was mine (bad path)

A suggestion : it would be cool in a further release to have the plugin able to count also clicks on links.

There are files stored on the WP host, and their downloads are registered, but in some case I use link pointing directly to external files that I can’t place on my server (for copyright reasons for example) .

In fact this would require two kind of content :

- local with a file name/category name

- external ,in this case the whole file’s url would be given, along it’s category.

 

Luc 

1:32 am
16 Sep 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
4

Should be possible. I’ll add it to the list!

8:05 pm
27 Feb 2008


wonkotsane

Member

posts 5

 
5

Andy,


I'm having the same problem on the CEP site but there's a tick next to each entry. CHMOD'ing the folder the files are in to 644 results in not even the thumbnails displaying. It's on the wallpapers page.

8:23 pm
27 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
6

Well Hi Wonko


The folder(s) that the download files are in needs to be more open (say 755 for example). It's the actual 'download-manager.php' file that needs to be 644. The problem was that some hosted setups, when encountering a code file with too open permissions mark is as 'suspect' and issue an error. Sometimes a 404 (I have been told) and sometimes a 500. So check the actual code file first and open up the folders.


If that's not the problem then I am unsure what else might be going on. It's a very simple script and if it can reach the file requested it should be just fine…


7:31 am
28 Feb 2008


wonkotsane

Member

posts 5

 
7

The php file is 644 and the folder the files are in is 777. Let me know if you want a tinker.

11:11 am
28 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
8

Give me a link please. I can't find a 'wallpaper' link on the CEP site….

11:21 am
28 Feb 2008


wonkotsane

Member

posts 5

 
9

11:38 am
28 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
10

I have a hunch (and only a hunch!) that it's the download-manager.php file that it's not finding but as long as it's in the right place (the WP root) I don't see any reason it shouldn't behave itself.

What about another plugin or the .htaccess? Anything denying that url?

9:03 pm
29 Feb 2008


wonkotsane

Member

posts 5

 
11

Yeeees … the “root” folder. Ahem. Embarassed

9:15 pm
29 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
12

Do I take it we have a result?!

10:04 pm
29 Feb 2008


wonkotsane

Member

posts 5

 
13

Yep, it was a PEBCAK.

9:00 am
1 Mar 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4649

 
14

Smile Glad it's now working…



Reply to Topic: Problem with permalink

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 1        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

11 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1785

Posts: 12041

Members:

There are 827 members

There are 754 guests


Yellow Swordfish has made 4649 posts

Top Posters:

Mr Papa - 1270

-Radio- - 482

ovizii - 94

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)