TinyPortal

Development => Support => Topic started by: dbailey on April 02, 2010, 03:04:03 PM

Title: Problem with downloads feature
Post by: dbailey on April 02, 2010, 03:04:03 PM
The download section doesn't seem to work properly either. I'm getting this database error Unknown column 'dlm.author_id' in 'where clause'
File: /home/xxxx/public_html/Sources/TPSubs.php
Line: 2453

And the layout here is incorrect http://www.christmasdisplays.co.nz/index.php?action=tpmod;dl

Plus when I edit an existing article the images disappear from the article and I can not re add them in. The images is replaced by this \"\"

Any help would be greatly appreciated

SMF2.0 RC3 TP1.05
Title: Re: Problem with downloads feature
Post by: Xarcell on April 02, 2010, 04:47:49 PM
Quote from: dbailey on April 02, 2010, 03:04:03 PM
The download section doesn't seem to work properly either. I'm getting this database error Unknown column 'dlm.author_id' in 'where clause'
File: /home/xxxx/public_html/Sources/TPSubs.php
Line: 2453

And the layout here is incorrect http://www.christmasdisplays.co.nz/index.php?action=tpmod;dl

Plus when I edit an existing article the images disappear from the article and I can not re add them in. The images is replaced by this \"\"

Any help would be greatly appreciated

SMF2.0 RC3 TP1.05

Did you upgrade your TP or fresh install?
Title: Re: Problem with downloads feature
Post by: G6Cad on April 02, 2010, 06:06:37 PM
If you turn your forum to use the SMF Default theme, do you still have the layout issues there?
Title: Re: Problem with downloads feature
Post by: dbailey on April 02, 2010, 09:50:06 PM
Yes it is still there when I change back to default. So for some reason the old template is being called up.

Update: I have just reinstalled the downloads the SMFHACKS download system. the layout is fixed but all my download items are gone.
Title: Re: Problem with downloads feature
Post by: bloc on April 03, 2010, 10:48:43 AM
Uhm, I am a little confused..are you using TP download manager or SMFhacks download mod right now?
Title: Re: Problem with downloads feature
Post by: dbailey on April 03, 2010, 11:41:19 AM
Im using smf hacks for now but I would like to tp downloads working. When I go into tp downloads admin and change the template this error comes up:


Files need to be in one of t' at line 1
File: /home/christm1/public_html/Sources/TPdlmanager.php
Line: 2227

My log shows this:
http://www.christmasdisplays.co.nz/index.php?action=tpmod;dl=adminDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'upload' at the top right of the frame. <BR></P>
<P>Files need to be in one of t' at line 1File: /home/xxx/public_html/Sources/TPdlmanager.php
Line: 2227
Title: Re: Problem with downloads feature
Post by: G6Cad on April 03, 2010, 11:44:10 AM
If you have issues with SMFhacks download manager, you have to seek help from there with this issue, downloaded the TP package and installed to a testsite and the downloadmodule when activated works just fine.

Im not sure TP would import your downloads from SMFHacks downloadmanager, if you want to use TP downloadmodule, you have to reupload the downloads to TPs downloadmanager and go from there.
Title: Re: Problem with downloads feature
Post by: dbailey on April 03, 2010, 11:47:53 AM
To clarify
I was using tp downloads fine before I upgraded to tp1.05 smf 2 rc3

since upgrading if had the above problem, also while you were posting I updated the above post with an error from my log file.

I have uninstalled the smf download as this was confusing.
Title: Re: Problem with downloads feature
Post by: dbailey on April 04, 2010, 11:38:42 PM
Should there be a download icon on the TP admin page?

Also when I go into the module page and click download admin and then change the template to my current one I get the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'upload' at the top right of the frame.

Files need to be in one of the' at line 1
File: /home/christm1/public_html/Sources/TPdlmanager.php
Line: 2227

Any help please
Title: Re: Problem with downloads feature
Post by: G6Cad on April 05, 2010, 10:24:09 AM
The downloadmanager is a module for TP and needs to be installed to your TP setup through the module manager.
Have you installed and activated the download module from the module manager inside TP admin?
I have tested this on my testsite and cant reproduce this error when the downloadmodule is installed and activated.
Title: Re: Problem with downloads feature
Post by: bloc on April 05, 2010, 11:20:03 AM
dbailey, did you add a description with anything uploaded? Something using  apostrophes?
Title: Re: Problem with downloads feature
Post by: dbailey on April 06, 2010, 09:15:25 AM
No I just checked. I have also deleted all downloads I had to see if that helped, but it didn't.

I think the module files or database have corrupted when the upgrade was done.

Am I able to re install the download module?
Title: Re: Problem with downloads feature
Post by: dbailey on April 06, 2010, 09:17:16 AM
Quote from: G6 on April 05, 2010, 10:24:09 AM
The downloadmanager is a module for TP and needs to be installed to your TP setup through the module manager.
Have you installed and activated the download module from the module manager inside TP admin?
I have tested this on my testsite and cant reproduce this error when the downloadmodule is installed and activated.

My test site is also doing the same problem. Both were upgrades from SMF1.1 to SMF 2.0 rc3. IS your test site a clean 2.0 install or and upgrade?
Title: Re: Problem with downloads feature
Post by: dbailey on April 07, 2010, 10:51:41 AM
Update:
I have done another install of 2.0rc3 with tp and all is good with a clean install on my test site. When I install my template all is still good.

When I install my database that's when it all goes weird. So the problem must be in my database. Which parts of the database control the download section?

Also my language files look to be out of date
TPShout.english.php  1.0 beta5  ?? 
TPdlmanager.english.php  1.0 beta5  ?? 
TPgallery.english.php  ??  ?? 
TPhelp.english.php  1.0 beta5  ?? 
TPmainmenu.english.php  1.0 beta5  ?? 
TPmodules.english.php  1.0 beta5  ?? 
TPortal.english.php  1.0 beta5  ?? 
TPortalAdmin.english.php  1.0 beta5 

Should they be updated?
Title: Re: Problem with downloads feature
Post by: dbailey on April 07, 2010, 12:09:07 PM
New Update
;D It looks like I solved it. In my database smf_tp_settings the dlmanager_theme setting was on 3 not 0. Once changed the template went back to normal.

I would like to say thanks to everyone who looked into this for me.
Title: Re: Problem with downloads feature
Post by: G6Cad on April 08, 2010, 07:45:21 AM
Seems to me you did a very good job investigate your issue by your self :)
Good job aand thank you for posting your findings and steps taken  :up: