Seite 1 von 1

seltsamer SQL Error

Verfasst: 06.01.2005 01:00
von Kiss News
Hallo!
Habe mir den Smartor Photo Album Mod eingebaut.
db update ohne probleme durchgeführt.
alles schien perfekt, doch plötzlich kann ich nichts mehr schreiben im Forum, es kommt seltsamerweise folgender Error:
Could not query ad information

DEBUG MODE

SQL Error : 1146 Table 'kissfanshop.ADS_TABLE' doesn't exist

SELECT a.ad_code FROM ADS_TABLE a WHERE a.ad_id=1

Line : 1637
File : /usr/export/www/vhosts/funnetwork/hosting/kissfanshop/phpbb2/viewtopic.php
Das stimmt aber nicht, die ads_Tabelle gibt es!!
[ externes Bild ]
Zeile 1637 in viewtopic:
// Again this will be handled by the templating
// code at some point
//
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
if ( $i == 0)
{
$sql = "SELECT a.ad_code
FROM " . ADS_TABLE . " a
WHERE a.ad_id=1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query ad information', '', __LINE__, __FILE__, $sql);
Ich habe das Photo Album auf 3 Boards installiert. Bei 2 kam dieser Fehler, bei einem dritten ungemoddeten Board, wo ich exakt die gleiche Installation durchgeführt hatte, gibt es keinen Error.
Kann mir das bitte wer erklären? :roll:

edit: der ads_table kommt von einem anderen Mod (bannere ad after first post):
CREATE TABLE `phpbb_ads` (
`ad_type` VARCHAR( 10 ) NOT NULL ,
`ad_id` TINYINT( 5 ) NOT NULL ,
`ad_code` TEXT NOT NULL ,
`ad_name` TINYINT( 25 ) NOT NULL,
UNIQUE (
`ad_id`
)
);

INSERT INTO `phpbb_ads` ( `ad_type` , `ad_id` , `ad_code`, `ad_name` )
VALUES (
'first_post', '1', 'Your banner code goes here', 'Defualt'
);
aber der stimmt ja, was hat der mit dem Photo Album zu tun???
[ externes Bild ]

Verfasst: 06.01.2005 01:51
von Andy120
hi...

Wurde die constants.php richtig editiert?

Gruss, Andy

Verfasst: 06.01.2005 02:02
von Kiss News
Hallo Andy!
Hattest Recht, ich hatte vergessen die aktuelle constants.php runterzuladen und habe dann eine alte Version genommen und da fehlte dann die constants-Ergänzung vom letzten Mod...
Danke für die Hilfe!