TinyPortal

Development => Support => Topic started by: videogamemojo on March 13, 2009, 04:47:21 AM

Title: tpsubs.php help
Post by: videogamemojo on March 13, 2009, 04:47:21 AM
I am running the latest version of TP on SMF 1.1.8 and up until now have had no problems installing new packages.  Now I have recieved this error:

Database Error: MySQL server has gone away
File: /home/videogam/public_html/Sources/TPSubs.php
Line: 172

Upong looking at the php I find that line 172-173 reads:
172 $request = db_query("SELECT modulename,permissions,languages FROM {$tp_prefix}modules WHERE active=1", __FILE__, __LINE__);
173      if(mysql_num_rows($request)>0)

This matches the original tpsubs.php that comes with the package so I can only assume the problem comes from the file or command that this references.  Would this be correct and if so where can I find this to fix it?  Any help would be greatly appreciated, thanks.
Title: Re: tpsubs.php help
Post by: G6Cad on March 13, 2009, 06:27:55 AM
You say you get these errors when you try to install new "packages" ?
The error comes from tp modules, so are you trying to install a packge in the tp modules engine ?

Can you try and explain what you are trying to do when you get that error also what package/module you are trying to install.
Step by step instructions please.
Title: Re: tpsubs.php help
Post by: videogamemojo on March 13, 2009, 07:32:19 AM
I was attempting to install this guy
(:Aeva (YouTube/video/audio auto-embedder).  I uploaded the package then clicked the apply mod button.  It is at this point that the said error occurred.  I actually found a work around by placing a temp folder in the packages directory.  It appears as though this may have worked.  I will test it out some more tomorrow to let you know.  Thanks for the reply.
Title: Re: tpsubs.php help
Post by: videogamemojo on March 13, 2009, 05:05:13 PM
O.k. so here was the second part of the fix for anyone interested.  I went into admin>Packages>Options and unchecked the box that says to create back up versions of replaced files with a tilde (which I apparently don't have on my laptop keyboard :))  Anyway hope that these two quick solutions will others in the future thanks.