DB Einträge vom MyEGallery

Begonnen von seleck, 29 September 2004, 12:05:03

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 2 Gäste betrachten dieses Thema.

seleck

Da ich den MyEGallery-Module nicht mehr benutze und habe den Module auch gelöscht (auch wegen Sicherheit) aber es sind noch DB-Einträge vom diesem Module in Datenbank vorhanden.
Z. B. mx_gallery_categories, mx_gallery_comments, USW.mir ist bewusst, dass man nicht alle Eintäge, die mit mx_gallery_xyz verbunden sind löschen kann, aber es sind doch einige, die man besietigen kann um den Zugriff auf den Datenbank zu reduzieren.

Kann Jubilee oder Andi dazu was sagen ?

P.S. ich benutze aber Coppermine1.3.2.
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.

jubilee

Hmmm ....Wenn Du das Modul komplett gelöscht hast, wirst Du die Datenbanktabellen auch löschen können. Du kannst ja sicherheitshalber von den entsprechenden Datenbanktabellen ein Dump ziehen und wegspeichern, bevorDu die Tabellen löscht.
MfG
jubilee

seleck

Hi Jubilee,

Das dachte ich mir auch und hab ein Dump gemacht und die alle Einträge, die mit mx_gallery_  vorhanden waren, gelöscht. Ergebniss war meherere Error-meldungen und seite wurde gar nicht mehr angezeigt. Lauter Schreck hab den Dump sofort ´zurück gespielt. dann war alles ok. Es muß andere verbindungen zu diese Einträge geben. man kann nicht einfach löschen.
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.

jubilee

Hmmmm .....
 
ZitatErgebniss war meherere Error-meldungen und seite wurde gar nicht mehr angezeigt
Irgendwo ein Admin-Block in Funktion, der über neueingesendete Bilder informiert ??
Ich kann die Datenbanktabellen ohne Probleme löschen und es wird noch alles korrekt angezeigt.
MfG
jubilee

[Editiert am 29/9/2004 von jubilee]

landschaf

Hallo
Hab gestern auch alles gelöscht, aber nicht nur die Module, sondern auch die Dateien im Adminbereich, Blöcke etc. Danach alle Datenbanken mit gallery gelöscht und alles war gut.
Vermutlich greift noch ein Adminmodul oder Block darauf zu.


Tschüss landschaf
Bis bald Landschaf
"Wer nur um Gewinn kämpft, erntet nichts, wofür es sich lohnt, zu leben."
www.tk-studio.de
www.creativepeople.de

seleck

Muß ich nochmal probieren. mag sein, dass ich irgendwas versehen habe. Danke

Ok Jubilee, Jetzt habe die Gallery Einträge gelöscht und bekomme folgende fehler meldung:

Error sql_query():
qry: select count(pid) from mx_gallery_pictures_newpicture;
descr: Table 'vkpmx22.mx_gallery_pictures_newpicture' doesn't exist ( mysql 1146 )
details:
                           file: c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-AdminNews.php # line:  63, cmd: sql_query(select count(pid) from mx_gallery_pictures_newpicture;),
                        file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_api.php(2) : eval()'d code # line: 796, cmd: include(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad...),
                     file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_system.php(2) : eval()'d code # line: 395, cmd: mxgetblockdata(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32]),
                  file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_system.php(2) : eval()'d code # line: 598, cmd: mxgetallblocks(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l),
               file: c:\programme\apache group\apache2\htdocs\vkpmx22\themes\Testing123\theme.php # line:  71, cmd: blocks(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left),
            file: c:\programme\apache group\apache2\htdocs\vkpmx22\header.php # line: 103, cmd: themeheader(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left),
         file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\blocks.php # line: 119, cmd: include(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php),
      file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\blocks.php # line: 846, cmd: blocksadmin(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1]),
   file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\case\case.blocks.php # line:  37, cmd: include(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1], c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\b...),
file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 612, cmd: include(select count(pid) from mx_gallery_pictures_newpicture;, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1], c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\b..., c:\programme\apache group\apache2\htdocs\vkpmx22\admin\case\case...),


Error sql_fetch_row():
descr: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
details:
                           file: c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-AdminNews.php # line:  63, cmd: sql_fetch_row(false),
                        file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_api.php(2) : eval()'d code # line: 796, cmd: include(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad...),
                     file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_system.php(2) : eval()'d code # line: 395, cmd: mxgetblockdata(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32]),
                  file: c:\programme\apache group\apache2\htdocs\vkpmx22\ixed\sg\mx_system.php(2) : eval()'d code # line: 598, cmd: mxgetallblocks(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l),
               file: c:\programme\apache group\apache2\htdocs\vkpmx22\themes\Testing123\theme.php # line:  71, cmd: blocks(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left),
            file: c:\programme\apache group\apache2\htdocs\vkpmx22\header.php # line: 103, cmd: themeheader(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left),
         file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\blocks.php # line: 119, cmd: include(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php),
      file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\blocks.php # line: 846, cmd: blocksadmin(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1]),
   file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin\case\case.blocks.php # line:  37, cmd: include(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1], c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\b...),
file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 612, cmd: include(false, c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-Ad..., Array[32], l, left, c:\programme\apache group\apache2\htdocs\vkpmx22\header.php, Array[1], c:\programme\apache group\apache2\htdocs\vkpmx22\admin\modules\b..., c:\programme\apache group\apache2\htdocs\vkpmx22\admin\case\case...),



Es sieht so aus, dass mx_gallery_pictures_newpicture mit block-AdminNews.php verknüpft ist, aber ich weiss nicht wie so?`..ich habe kein Gallery Bild in Admin Newsblock verknüpft.  :(

[Editiert am 29/9/2004 von seleck]
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.

jubilee

Hallo !
 
Zitat.....details:
file: c:\programme\apache group\apache2\htdocs\vkpmx22\blocks\block-AdminNews.php # line: 63, cmd: sql_query(select count(pid) from  .......
Deaktivier mal den block_AdminNews.php und schau ob die Fehler dann alle weg sind.
MfG
jubilee

seleck

Jup, nach deaktivieren  block_AdminNews.php sind alle Fehler weg.

Das einzige Bild (wann man das als Bild bezeichnen kann,) ist als icon angezeigt. das sind icon die in images/topic ordner vorhanden.

Z. B. images/topics/java.gif

[Editiert am 29/9/2004 von seleck]
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.

jubilee

gut.
Dann müssen aus diesem Block sämmtliche Abfragen zur My_eGallery Datenbank entfernt werden (sofern Du den Block weiterverwenden möchtest).
MfG
jubilee

Andi

Moin :)

dachte, der Block würde es erkennen ob das Modul aktiv ist....
Hehehe, ist aber erst im 2.2 so drin ;)

Editiere den Block block-AdminNews.php   und lösche folgendes raus:
  $num=0;
list($num) = sql_fetch_row(sql_query("select count(pid) from ${prefix}_gallery_pictures_newpicture;"));
if(!empty($num)) $content1 .=  "<img src=\"images/menu/oarrow.gif\" alt=\"\" border=\"0\"> <b>$num</b> <a href=\"admin.php?op=GallAdmin\">"._AB_PICTURES."</a><br>";
 

In der admin.php steht nochmal das gleiche drin. Dort auch rauslöschen oder zumindest auskommentieren.

Dann müsste Ruhe sein ;)
schön´s Grüssle, Andi

seleck

Hab gemacht und es funktioniert.  Ok das war lokal.. heute abend werde ich online diese tabellen löschen. mal sehen ob da auch klappt.  ;)

Danke Andi
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.

seleck

ich sehe jetzt gerade, dass in admin.php sind auch einige Zeilen drin, die auf MyEgallery-DB-Einträge abfragen:

------------------------------------
Error sql_query():
qry: select count(pid) from mx_gallery_pictures_newpicture;
descr: Table 'vkpmx22.mx_gallery_pictures_newpicture' doesn't exist ( mysql 1146 )
details:
   file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 183, cmd: sql_query(select count(pid) from mx_gallery_pictures_newpicture;),
file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 587, cmd: adminmain(select count(pid) from mx_gallery_pictures_newpicture;),


Error sql_fetch_row():
descr: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
details:
   file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 183, cmd: sql_fetch_row(false),
file: c:\programme\apache group\apache2\htdocs\vkpmx22\admin.php # line: 587, cmd: adminmain(false),
------------------------------------------------------------------------

hier reicht die Zeile 183 zu kommentieren

  #list($num) = sql_fetch_row(sql_query("select count(pid) from ${prefix}_gallery_pictures_newpicture;"));

[Editiert am 29/9/2004 von seleck]
If I advance, follow me.
If I stop, push me.
If I fall, inspire me.