SimplePortal

Support => English Support => Topic started by: xeon365 on November 06, 2013, 08:19:00 PM

Title: weird problem enabling a php block...
Post by: xeon365 on November 06, 2013, 08:19:00 PM


The php code block was working fine, and hasn't been touched, but moving the vps was done, and now when I try to enable that php block I get.

blah_server is another datebase I use in the php block.. worked fine before the code hsn't changed, but now I get this on the frontpage when I enable that php block.

I also get the Database error, when I preview the code in the admin section... the code works fine and loads up everything, its just I get this error.. and if I enable most of the topics, and other built stuff that loads from the db doesn't work....


Table 'blah_server.smf_topics' doesn't exist
File: /blah/forum/Sources/PortalBlocks.php
Line: 2619

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.6, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: weird problem enabling a php block...
Post by: AngelinaBelle on November 11, 2013, 02:18:22 PM
The change happened when you moved the vps server.
Does this mean that your database server moved at the same time?
Is the connection to blah_server working the way you think it ought to be working?

Please double check.
In Settings.php
* The database server ("blah_server" or something else?)
* The prefix ("smf_"  or something else?)
In your custom php block:
* How the topics table is referenced -- explicitly by database name, and by table prefix, as well as by table name?  Or in the "regular SMF way" that gets this information from the global settings array?

I hope this will help you track down the problem.
SimplePortal 2.3.8 © 2008-2024, SimplePortal