1
nuker
wfsection update failed
  • 2004/10/6 14:33

  • nuker

  • Not too shy to talk

  • Posts: 129

  • Since: 2002/12/14


for reasons unknown my wfsection module no longer accepts uploaded files.

when i try, i receive a message that simply says "Update failed."

this is version 1.01

if i can upgrade, what version can i use, and is it as simple as just overwriting files and updating the module?

can my version of wfsection be overwritten with xfsection?


thanks!

2
nuker
Re: wfsection update failed
  • 2004/10/12 18:50

  • nuker

  • Not too shy to talk

  • Posts: 129

  • Since: 2002/12/14


sorry i'm bumping this... i really gotta get this fixed! my organization uses this module alot.

perhaps and upgrade can help but i'm not sure of how this is done. the docs only show how to install. not sure if the newer versions have changes made to the database or anything esle....

thanks again.

3
JasonMR
Re: wfsection update failed
  • 2004/10/13 0:43

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Sorry that I can't help, but I just wanted to ask, if you have also tried asking your question over at
http://www.wf-projects.com/
? Maybe your posting will have more success over there!

4
Bender
Re: wfsection update failed
  • 2004/10/13 1:17

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Sorry but that might prove difficult:

All of us involved with wf-projects.com took over wf-sections with version 2.x which was a complete rewrite. None of us is really in with the old version.

Just wild guessing:
Could it be a limit in a database field? How many files are in your database? Can you upload another file if you remove an existing one first?


Also you could do the following:

Edit the file /wfsection/admin/index.php. Look for these lines (should start around line 204)

echo "

"._AM_UPDATEFAIL."

"
;
if (!
$upload->isAllowedMineType()) echo _AM_NOTALLOWEDMINETYPE."";
if (!
$upload->isAllowedFileSize()) echo _AM_FILETOOBIG."";
echo
"";


Insert an additional line:

echo "

"._AM_UPDATEFAIL."

"
;
if (!
$upload->isAllowedMineType()) echo _AM_NOTALLOWEDMINETYPE."";
if (!
$upload->isAllowedFileSize()) echo _AM_FILETOOBIG."";
echo 
"This name was created: ".$filename;
echo
"";



This should add a line to the error message which gives the name wf-sections is trying to use for storing the file.
Maybe this gives a clue what happens.

(Bad thing is ... i am no programmer so i am not sure this line does what i hope it does but i think the syntax is correct. However backup or rename the original file first to restore the original condition easily)

If it does what it should ... tell us what it prints to the screen

5
chrisd
Re: wfsection update failed
  • 2004/12/1 21:55

  • chrisd

  • Just popping in

  • Posts: 13

  • Since: 2004/10/29


bender, I am having the same problem as nuker. But I can't find the code that you are referring to. I have even grepped the whole directory and no go. Are you sure those lines were in version 1.01?

6
Bender
Re: wfsection update failed
  • 2004/12/1 22:38

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


@chrisd:

i just downloaded the file from right here:

https://xoops.org/modules/repository/visit.php?cid=12&lid=1258

and i have those lines in that file.

7
chrisd
Re: wfsection update failed
  • 2004/12/1 22:41

  • chrisd

  • Just popping in

  • Posts: 13

  • Since: 2004/10/29


I finally remembered to turn on the PHP debug window and it pointed me to my problem. The cache/upload directory had the wrong permissions. Since I changed that, the uploads now work. Now I just need to figure out what file types I can upload and what I can't . . . .

8
davidl2
Re: wfsection update failed
  • 2004/12/1 22:54

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Glad you got this sorted (and i'm kicking myself as I had a similar problem yesterday with another module!)

9
chrisd
Re: mime-types
  • 2004/12/2 14:17

  • chrisd

  • Just popping in

  • Posts: 13

  • Since: 2004/10/29


Now here is something you guys can probably easily help me with. I want to upload Microsoft Excel, Powerpoint, and Visio files. Right now, the upload function only accepts Word files (from Microsoft, at least -- it accepts a host of other files).

Right now, in the uploadconfig.php file stored in the wfsection/cache directory, it has a line in the $WfsAllowedMinetype array that looks like this:

"application/vnd.ms-excel",

But when I try to upload a .xls file, it fails. Any suggestions to fix this? And any suggestions on how to allow .ppt and .vsd files?

Thanks in advance!

Login

Who's Online

310 user(s) are online (216 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits