Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2013, 06:47:01 pm

Login with username, password and session length
Members
Total Members: 10768
Latest: CayoTTe
Stats
Total Posts: 32406
Total Topics: 5482
Online Today: 57
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 44
Total: 46
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Database Error when using FTP/Import files  (Read 3029 times)
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« on: June 10, 2009, 01:26:52 pm »

I can ftp a file to downloads/ftp.

Then I go to download config>ftp, check mark file name and select a catergory. Then I click "Import File".


Then I'm taken to a page that shows me a box that is titled "Database Error" and it says.

Quote
Duplicate entry '1' for key 1
File: /home/applianc/public_html/Sources/Downloads2.php
Line: 4442

I also had to create the ftp directory in /home/applianc/public_html/downloads/ftp/ as it was not there.
There seem to be a blank file called ftp in /downloads but no directory.


Also each time I tried to create the /ftp directory I would get a message saying the file already was there and it was, but I was trying to create a directory, not a file. Once I removed the ftp file I was able to create the /ftp directory and upload using ftp.


Still not sure why I get the other error when trying to import files after I upload them using ftp.

Thanks,

Edited to add: Using SMF 2.0 RC1-1
« Last Edit: June 10, 2009, 01:32:02 pm by ApplianceJunk » Logged

ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #1 on: June 10, 2009, 02:13:39 pm »

I also get this error in the log after I try to "Import File".

http://appliancewiki.com/index.php?action=downloads;sa=batchftp2

Apply Filter: Only show the errors with the same message

2: Wrong parameter count for mysql_num_rows()
Apply Filter: Only show the errors from this file

File: /home/applianc/public_html/Sources/Downloads2.php

Line: 4436
Logged

ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #2 on: June 10, 2009, 02:46:07 pm »

A little more info that maybe related.

When I try to delete a download I get this error again.

Duplicate entry '1' for key 1
File: /home/applianc/public_html/Sources/Downloads2.php
Line: 4442

I was able to delete download error free before I did the upgrade to pro.

Logged

ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #3 on: June 10, 2009, 03:00:49 pm »

Some how the file I have been trying to delete has been added to the category many times.

http://appliancewiki.com/index.php?action=downloads;cat=3

Confussing, lol..

Edited to add: I get this error anytime I try to add a download, not just when using ftp.

Duplicate entry '1' for key 1
File: /home/applianc/public_html/Sources/Downloads2.php
Line: 4442

Sorry for so many post, just wanted to give you any information that may help solve the problems I'm having, thanks.
« Last Edit: June 10, 2009, 03:05:13 pm by ApplianceJunk » Logged

Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #4 on: June 10, 2009, 03:18:02 pm »

I've also had a problem when trying to delete a file from Download Pro - I reported it some time ago to SMFHacks, so hopefully he's working his way through all these issues, and maybe even adding some nice new features too? Smiley

Eddy
Logged
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #5 on: June 10, 2009, 03:27:13 pm »

Going to try and start over with a new install of smf 1.1.9 and see what happens.

Logged

ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #6 on: June 10, 2009, 05:44:11 pm »

update:

I removed smf 2.0 and installed 1.1.9

Everthing that was not working for me before seems to be working just fine now.

Maybe it was just something I did, but I'm going to stick with SMF 1.1.9 for now. Smiley
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11008


View Profile
« Reply #7 on: June 11, 2009, 09:50:27 pm »

Fixed all the errors that occurred with Line: 4442  for version 1.06
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 06:36:59 pm]

[Today at 05:22:09 pm]

[Today at 05:20:20 pm]

[Today at 05:11:52 pm]

[Today at 03:59:22 pm]

[May 23, 2013, 08:29:56 pm]

[May 23, 2013, 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.426 seconds with 20 queries.