Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1146
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

weird problem enabling a php block...

Started by xeon365, November 06, 2013, 08:19:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeon365



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.

AngelinaBelle

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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?