Bildergalerie mit Wasserzeichen und Resize *aller* Bilder

Lietzi
Beiträge: 10
Registriert: So 23. Mai 2004, 18:59
Kontaktdaten:

Beitrag von Lietzi »

Gibt es denn nun eine auf Version 4.4.4 voll funktionsfähige Version dieses Moduls?

Wenn ja wo?

Wenn nein.. Schade!
koffer
Beiträge: 107
Registriert: Mi 3. Sep 2003, 15:39
Kontaktdaten:

Beitrag von koffer »

Hallo,

ich lasse die Bilder bei mir als Popups öffnen.

Ist es möglich, die Popups durch einen klick irgendwo im Bild zu schließen?

Inwieweit muss der Output geändert werden bzw. ist das problemlos möglich?

Hier nochmal der Code wie ich ihn verwende:

Code: Alles auswählen

<script language="JavaScript"> 
function boo(){ 
} 
</script> 

<div class="htmltext"> 
<? 

// Bildergalerie 
// Imageresize über ImageMagick *ODER* GD 
// Version: 15.01.2004 
// 
// Author: ?? 
// Modified by: Robert Strouhal www.clearcreative.de 




echo "<p>\n"; 

// ANFANG OUTPUT 

$imagedir="CMS_VALUE[2]"; 
$thumbnails="CMS_VALUE[3]"; 
$imagetypes=explode(";","CMS_VALUE[4]"); 
$rows="CMS_VALUE[6]"; 
$cols="CMS_VALUE[5]"; 

$thb_x_size="CMS_VALUE[7]"; 
$thb_y_size="CMS_VALUE[8]"; 

$image_idcat="CMS_VALUE[0]"; 
$image_idside="CMS_VALUE[1]"; 

$im_path="CMS_VALUE[9]"; 

//-- config ende ------------------------------------- 

function is_image($filename,$typearray) { 
  reset($typearray); 
  while($val=each($typearray)) { 
     if (strstr($filename,$val[value])!==false) { 
       return true; 
     } 
  } 
} 


// verkleinert ein Bild auf die angegebene Breite (bei Querformat) oder Höhe (bei Hochformat) 
// Seitenverhältnisse werden beibehalten 
function resizeImageGD($sourceFile, $targetFile, $newwidth=50, $newheight=50){ 
   $source = ImageCreateFromJpeg($sourceFile); 
   $width  = ImageSx($source); 
   $height = ImageSy($source); 

   if ($width > $height){ // Querformat 
      $newheight = $height*($newwidth/$width); 
   }else{ // Hochformat 
      $newwidth  = $width*($newheight/$height); 
   } 

   $target = ImageCreateTrueColor($newwidth,$newheight); 
   imagecopyresampled ($target, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); 

   ImageJPEG($target,$targetFile,100); 
} 



//-- functions ende ---------------------------------- 

if (!isset($mmstart)) { 
  $mmstart=0; 
} 

// Anzeige eines Bildes oder Übersicht? 

if ($subfile!="") { 
// Bild anzeigen 
echo "<center><a href=\"javascript:history.back()\">back / zurück</a></center>"; 
echo "<br>"; 
echo "<img src=\"$subfile\">"; 
echo "<br>"; 
echo "<center><a href=\"javascript:history.back()\">back / zurück</a></center>"; 

} else { 
// Gallery anzeigen 

$handle=opendir($imagedir); 

echo "<table>"; 
$n=0; 
$filearray=Array(); 
while (false !== ($file = readdir($handle))) { 
        if ($file != "." && $file != ".." && is_image($file,$imagetypes)) { 
             $filearray[]=$file; 
        } 
} 

reset($filearray); 

// skip images... 
for ($n=0;$n<$mmstart;$n++) 
  $ffile=each($filearray); 
$n=0; 
while ($ffile=each($filearray)) { 
             $file=$ffile[value]; 
             // generate thumbnail, if nessesairy. Now THIS is fun :) 
             // natuerlich nur, wenn imagemagick vorhanden ist... 
            if (!file_exists($thumbnails."/thb_".$file) ) { 
               if ($im_path!="") { 
                 $cmd=$im_path."/convert -scale ".$thb_x_size."x".$thb_y_size." ".$imagedir."/".$file." ".$thumbnails."/thb_".$file; 

                 exec($cmd); 
                 // nochmal prüfen! 
                 $thumbnail=file_exists($thumbnails."/thb_".$file); 
                } else{ 
                 // Bilder mit GD verkleinern 
             @ini_set("max_execution_time", 120); 
                 @resizeImageGD($imagedir."/".$file, $thumbnails."/thb_".$file, $thb_x_size,$thb_y_size); 
                 $thumbnail=file_exists($thumbnails."/thb_".$file); 
                } 
            } else 
              $thumbnail=true; 
            if ($n%$cols==0) 
              echo "<tr>\n"; 
            if ($image_idcat!=0){ 
// Bilder in PopUp anzeigen 
$imageSize = getimagesize($imagedir."/".$file); 
$js = " onClick=\"javascript:window.open('".$imagedir."/".$file."','','height=".($imageSize[1]+30).",width=".($imageSize[0]+30)."')\" "; 
$url = "javascript:boo();";    
            }else{ 
              $url=$sess->url("front_content.php?client=$client&lang=$lang&subid=$subid&idcat=$idcat&idart=$idart&idside=$idside&subfile=".rawurlencode($imagedir."/".$file)); 
$js = ""; 
              } 

            echo "<td valign=\"middle\" align=\"center\" width=\"$thb_x_size\" height=\"$thb_y_size\"><a href=\"$url\" $js>".($thumbnail ? "<img src=\"$thumbnails/thb_$file\" border=\"0\">":"$file")."</a></td>\n"; 
            $n++; 
            if ($n%$cols==0) 
              echo "</tr>\n"; 


        // nur solange wie's not tut... 
        if ($n>=$rows*$cols) 
          break; 

    } 
echo "<tr> <td colspan=\"$cols\" align=\"center\">"; 

if ($mmstart>0) { 
  $url=$sess->url("front_content.php?client=$client&lang=$lang&idcat=$idcat&idart=$idart&subid=$subid&idside=$idside&mmstart=".($mmstart-$rows*$cols)); 
  echo "<a href=\"$url\">zurück..</a>"; 
} 

echo "<span style=\"font-size: 9pt;\">| Bilder".($mmstart+1)." - ".($mmstart+$n)." |</span>"; 

if ($n+$mmstart<count($filearray)) { 
  $url=$sess->url("front_content.php?client=$client&lang=$lang&idcat=$idcat&idart=$idart&subid=$subid&idside=$idside&mmstart=".($mmstart+$rows*$cols)); 
  echo "<a href=\"$url\">..weiter</a>"; 
} 

echo "</tr>\n"; 
echo "</table>"; 
} // Ende Gallery anzeigen 


echo "</p>"; 
?> 
</div> 
Vielen Dank schonmal,
mfG,
koffer
Zeitgeist
Beiträge: 205
Registriert: Fr 5. Sep 2003, 09:47
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Zeitgeist »

Hallo,
da der Threat schon so lange "inaktiv" ist, haben es wohl alle hinbekommen. :)

Falls doch noch jemand dieses Modul einbaut:

Ich habe festgestellt, dass die Einträge im ErrorLog entstehen, wenn anscheinend der Webserver überlastet ist und es nicht packt "viele" Thumbs zu erzeugen (und "nebenbei" das Wasserzeichen einzubrennen)

Weisse Seite füllt sich bei erneutem Aufruf, bei mir waren erst nach dem 3. Aufruf alle Thumbs angelegt und sichtbar

Von da an gabs auch keine Error Einträge mehr.
Flutscht nun soweit einwandfrei.....wird aber wohl noch eine neue Version geben ;)
TimeSpirit
Rechtschreibfehler sind nicht als "Fehler" sondern als Hommage an Pisa zu verstehen ;)
Keine Einträge im Errorlog :)
Contenido 4.4.4 - Firefox -
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

Hallo!

Hab alles installiert, im image verzeichnis auch nen pic reingelegt. doch er generiert kein thumnail.

warum nicht?

GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
T1Lib Support enabled
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Halchteranerin
Beiträge: 5478
Registriert: Di 2. Mär 2004, 21:11
Wohnort: Halchter, wo sonst? ;-)
Kontaktdaten:

Beitrag von Halchteranerin »

steht im errorlog etwas? Hat das Verzeichnis ausreichende Rechte (im Zweifelsfall 777)?
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

hat alles rechte von 777

Code: Alles auswählen

[19-Jul-2004 15:15:15] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:15:15] next_record called with no query pending.
[19-Jul-2004 15:20:57] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:20:57] next_record called with no query pending.
[19-Jul-2004 15:21:35] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:21:35] next_record called with no query pending.
[19-Jul-2004 15:21:43] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:21:43] next_record called with no query pending.
[19-Jul-2004 15:26:03] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:26:03] next_record called with no query pending.
[19-Jul-2004 15:26:05] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 15:26:05] next_record called with no query pending.
[19-Jul-2004 15:26:23] PHP Warning:  fopen(move_articles.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:23] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:23] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:23] PHP Warning:  fopen(move_old_stats.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:23] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:23] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:23] PHP Warning:  fopen(session_cleanup.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:23] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:23] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:23] PHP Warning:  fopen(optimize_database.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:23] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:23] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:23] PHP Warning:  imagecreatefrompng(images/wasserzeichen.png): failed to open stream: No such file or directory in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 271
[19-Jul-2004 15:26:23] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 272
[19-Jul-2004 15:26:23] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 273
[19-Jul-2004 15:26:23] PHP Warning:  imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 276
[19-Jul-2004 15:26:23] PHP Warning:  imagejpeg(): Unable to open 'gallery//111.jpg' for writing in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 277
[19-Jul-2004 15:26:30] PHP Warning:  fopen(move_articles.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:30] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:30] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:30] PHP Warning:  fopen(move_old_stats.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:30] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:30] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:31] PHP Warning:  fopen(session_cleanup.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:31] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:31] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:31] PHP Warning:  fopen(optimize_database.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:31] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:31] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:38] PHP Warning:  fopen(move_articles.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:38] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:38] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:38] PHP Warning:  fopen(move_old_stats.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:38] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:38] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:38] PHP Warning:  fopen(session_cleanup.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:38] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:38] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:38] PHP Warning:  fopen(optimize_database.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 15:26:38] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 15:26:38] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 15:26:38] PHP Warning:  imagecreatefrompng(images/wasserzeichen.png): failed to open stream: No such file or directory in /var/www/web189/html/contenido/cms/front_content.php(563) : eval()'d code on line 142
[19-Jul-2004 15:26:38] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/cms/front_content.php(563) : eval()'d code on line 143
[19-Jul-2004 15:26:38] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/cms/front_content.php(563) : eval()'d code on line 144
[19-Jul-2004 15:26:38] PHP Warning:  imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/cms/front_content.php(563) : eval()'d code on line 147
[19-Jul-2004 15:26:38] PHP Warning:  imagejpeg(): Unable to open 'gallery//111.jpg' for writing in /var/www/web189/html/contenido/cms/front_content.php(563) : eval()'d code on line 148
Zeitgeist
Beiträge: 205
Registriert: Fr 5. Sep 2003, 09:47
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Zeitgeist »

Hi,
hast Du es mit einem GIF probiert?
Das funkt nicht, GD >2.0 unterstützt keine GIFs (mehr)

nur so nebenbei ohne Deine Errors studiert zu haben

greets
TimeSpirit
Rechtschreibfehler sind nicht als "Fehler" sondern als Hommage an Pisa zu verstehen ;)
Keine Einträge im Errorlog :)
Contenido 4.4.4 - Firefox -
Halchteranerin
Beiträge: 5478
Registriert: Di 2. Mär 2004, 21:11
Wohnort: Halchter, wo sonst? ;-)
Kontaktdaten:

Beitrag von Halchteranerin »

mal was anderes: mach die errorlog.txt leer, versuch, das Modul zu benutzen, und schreibe ERST DANN, was in der errorlog.txt steht. Denn da sind mehrere Fehlermeldungen, und es ist nicht nachvollziehbar, was woher kommt. Das Verzeichnis contenido/cronjobs bzw. die darin enthaltenen Dateien, haben nicht genuegend Rechte (777), Du benutzt ein veraltetes Modul (idside gibt's bei Contenido 4.4 nicht mehr, 'side' heisst jetzt ueberall 'art') usw. ...
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

nein, ist nen jpg
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

Ok, auf ein neues:

Code: Alles auswählen

[19-Jul-2004 16:26:26] PHP Warning:  fopen(move_articles.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 16:26:26] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 16:26:26] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 16:26:26] PHP Warning:  fopen(move_old_stats.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 16:26:26] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 16:26:26] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 16:26:26] PHP Warning:  fopen(session_cleanup.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 16:26:26] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 16:26:26] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 16:26:26] PHP Warning:  fopen(optimize_database.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 306
[19-Jul-2004 16:26:26] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 307
[19-Jul-2004 16:26:26] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 308
[19-Jul-2004 16:26:27] PHP Warning:  imagecreatefrompng(images/wasserzeichen.png): failed to open stream: No such file or directory in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 271
[19-Jul-2004 16:26:27] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 272
[19-Jul-2004 16:26:27] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 273
[19-Jul-2004 16:26:27] PHP Warning:  imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 276
[19-Jul-2004 16:26:27] PHP Warning:  imagejpeg(): Unable to open 'gallery//111.jpg' for writing in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 277
Halchteranerin
Beiträge: 5478
Registriert: Di 2. Mär 2004, 21:11
Wohnort: Halchter, wo sonst? ;-)
Kontaktdaten:

Beitrag von Halchteranerin »

Die Rechte von cronjobs hast Du immer noch nicht geaendert! Hast Du die Datei images/wasserzeichen.png erzeugt und abgelegt? Sieht nicht danach aus.

Ausserdem stimmen irgendwo die Pfade nicht (ich kenne und benutze das Modul nicht), darauf deutet die letzte Meldung 'Unable to open 'gallery//111.jpg' for writing' hin, da ist ein / zu viel.
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

Das wasserzeichen.png ist im richtigen Verzeichnis. Den doppelten Slash hab ich auch weg gemacht.

Aber nun kommt das:

Code: Alles auswählen

[19-Jul-2004 16:43:52] Invalid SQL: SELECT * FROM  AS TREE,  AS CATSIDE,  AS CAT,  AS CATLANG,  AS SIDELANG WHERE TREE.idcat=CATSIDE.idcat AND CATSIDE.idcat=CATLANG.idcat AND CATLANG.idlang='1' AND CATSIDE.idside=SIDELANG.idside AND SIDELANG.idlang='1' AND CAT.idcat=TREE.idcat AND CAT.idclient='1' ORDER BY TREE.idtree<br><br>
[19-Jul-2004 16:43:52] next_record called with no query pending.
[19-Jul-2004 16:44:00] PHP Warning:  fopen(move_articles.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 205
[19-Jul-2004 16:44:00] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 206
[19-Jul-2004 16:44:00] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 207
[19-Jul-2004 16:44:00] PHP Warning:  fopen(move_old_stats.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 205
[19-Jul-2004 16:44:00] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 206
[19-Jul-2004 16:44:00] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 207
[19-Jul-2004 16:44:00] PHP Warning:  fopen(session_cleanup.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 205
[19-Jul-2004 16:44:00] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 206
[19-Jul-2004 16:44:00] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 207
[19-Jul-2004 16:44:00] PHP Warning:  fopen(optimize_database.php.job): failed to open stream: Permission denied in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 205
[19-Jul-2004 16:44:00] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 206
[19-Jul-2004 16:44:00] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /var/www/web189/html/contenido/contenido/includes/pseudo-cron.inc.php on line 207
[19-Jul-2004 16:44:00] PHP Warning:  imagecreatefrompng(): 'images/wasserzeichen.png' is not a valid PNG file in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 271
[19-Jul-2004 16:44:00] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 272
[19-Jul-2004 16:44:00] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 273
[19-Jul-2004 16:44:00] PHP Warning:  imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 276
[19-Jul-2004 16:44:00] PHP Warning:  imagejpeg(): Unable to open 'gallery/111.jpg' for writing in /var/www/web189/html/contenido/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 277

Oder kann das am Safe_Mod: ON liegen?

In Zeile 206 und 207 steht:

$file = fopen($jobfile,"w");
fputs($file,$lastRun);
Halchteranerin
Beiträge: 5478
Registriert: Di 2. Mär 2004, 21:11
Wohnort: Halchter, wo sonst? ;-)
Kontaktdaten:

Beitrag von Halchteranerin »

das wird mit an Sicherheit grenzender Wahrscheinlichkeit daran liegen, aber das haetten wir auch frueher haben koennen, wenn Du von Anfang an alle Infos rausgerueckt haettest.
Es aendert nichts daran, dass das Modul veraltet ist, wie gesagt, idside und alles, was side im Namen hat, gibt's beim neuen Contenido nicht mehr. Das muesstest Du aendern, aber wegen safe_mode wird's dann wohl trotzdem nicht klappen. Ich kenne mich aber mit dem aktivierten safe_mode auch nicht wirklich aus, da gibt's sicherlich kompetentere Leute im Forum.
ch.schulze
Beiträge: 44
Registriert: Mo 25. Aug 2003, 22:41
Kontaktdaten:

Beitrag von ch.schulze »

gibts denn ne andere alternative gallerie?
Halchteranerin
Beiträge: 5478
Registriert: Di 2. Mär 2004, 21:11
Wohnort: Halchter, wo sonst? ;-)
Kontaktdaten:

Beitrag von Halchteranerin »

ch.schulze hat geschrieben:gibts denn ne andere alternative gallerie?
keine Ahnung, welche mit aktivem safe_mode funktionieren. Mit Wasserzeichen (falls Du das unbedingt brauchst) kenne ich keine, aber wenn Du das nicht unbedingt haben musst: Such nach der Bildergalerie von Andreas Kummer, die funktioniert bei mir ganz gut (habe aber auch safe_mode off).
Gesperrt