TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 648
  • Total: 649
  • tino

tpsubs.php help

Started by videogamemojo, March 13, 2009, 04:47:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

videogamemojo

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.

G6Cad

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.

videogamemojo

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.

videogamemojo

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.