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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 237
  • Total: 238
  • lurkalot

sudden database error, index.php is blank

Started by JJGY, December 21, 2006, 08:14:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JJGY

Last night, having just gotten everything functional, I began editing settings and content like anyone would having finally gotten their forum up.  I noticed after a while, however, that things were not running as smoothly and pages would often simply load up blank.  Now, whenenver trying to view the front page (index.php) everything is simply blank.  I took a quick look through my error log and here's what came up.

Database Error: Table '_smf.tportal_articles' doesn't exist
File: public_html/Sources/Load.php(1733) : eval()'d code(35) : eval()'d code
Line: 1

This error was repeated several hundred times for each attempt at viewing index.php.

I decided that it was a mySQL error and proceeded to boot up a backup I had made when the software was just installed.  Everything worked fine, but I would like to recover my data if possible.  I then proceeded to make a comparison of my backup and the current state of my database. 

I found that there was a table smf_tp_articles and as expected, the only difference between the two was under
--
-- Dumping data for table `smf_tp_articles`
--
where I had two or three articles stored in place of the default.  Why then, does one database work and the other result in a blank index.php?  I understand, that as I am not as experienced with this stuff as I should be, I may be going down completely the wrong track.  Any help would be, of course, appreciated, whether  you have some miraculous solution to my problem or just a pointer to get me looking in the right direction. 

Edit:  After looking back at my error log, I noticed that the blank loading errors of last night were caused by similar database errors, but with different tables.  I'm starting to wonder if there is some reason that smf is not able to access my database, but why then would the backup work?

Thurnok

First of all, your error msg you displayed has a table named "_smf.tportal_articles" which means either you had a corrupt install, corrupt file, or you manually changed the SMF database prefix to _smf. (default is smf_) and manually changed the TP database prefix to tportal_ (default is tp_).  I'm assuming you didn't manually change database prefixes so your problem is an invalid table name.  How you got to that point, I don't know.  But I'd say just check your backup a few times as you re-add things to make sure you are not getting some wacky corruption going on somewhere.
Thurnok
The one, the only!

This website is proudly hosted on Crocweb Cloud Website Hosting.