Tarih: 2006-05-05, 19:39:03 Mesaj konusu: Coppermine modülüne resim eklenmiyor
Arkadaşlar Coppermine modülünü kurdum ayarları yaptım sonunda resim eklemeye başlıcaktım ki şu hatayı verdi
Ciddi hata
PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed
<?php
/****************************************************************************/
/* Coppermine Photo Gallery 1.2.3 for CMS */
/****************************************************************************/
/****************************************************************************/
/* Port Copyright (C) 2004 Coppermine for CMS Dev Team */
/* http://coppermine.findhere.org/ */
/* Based on coppermine 1.1d by Surf http://www.surf4all.net/ */
/****************************************************************************/
/* Updated by the Coppermine Dev Team 2003 */
/* (http://coppermine.sf.net/team/) */
/* see /docs/credits.html for details */
/****************************************************************************/
/* Copyright (C) 2002,2003 Grégory DEMAR <gdemar@wanadoo.fr> */
/* http://www.chezgreg.net/coppermine/ */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/****************************************************************************/
/* $Id: picmgmt.inc,v 1.2 2004/05/08 18:58:53 gtroll Exp $ */
/****************************************************************************/
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Add a picture to an album
function add_picture($aid, $filepath, $filename, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '')
{
global $CONFIG, $ERROR, $USER_DATA, $PIC_NEED_APPROVAL, $CPG_M_DIR;
global $lang_errors, $username;
/**
* resize_image()
*
* Create a file containing a resized image
*
* @param $src_file the source file
* @param $dest_file the destination file
* @param $new_size the size of the square within which the new image must fit
* @param $method the method used for image resizing
* @return 'true' in case of success
*/
function resize_image($src_file, $dest_file, $new_size, $method, $thumb_use)
{
global $CONFIG, $ERROR;
global $lang_errors;
case "gd1" :
if (!function_exists('imagecreatefromjpeg')) {
cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed', __FILE__, __LINE__);
}
case "gd2" :
if (!function_exists('imagecreatefromjpeg')) {
cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed', __FILE__, __LINE__);
}
if (!function_exists('imagecreatetruecolor')) {
cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support GD version 2.x, please switch to GD version 1.x on the config page', __FILE__, __LINE__);
}
if ($imginfo[2] == GIS_JPG)
$src_img = imagecreatefromjpeg($src_file);
else
$src_img = imagecreatefrompng($src_file);
if (!$src_img) {
$ERROR = $lang_errors['invalid_image'];
return false;
}
$dst_img = imagecreatetruecolor($destWidth, $destHeight);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $destWidth, (int)$destHeight, $srcWidth, $srcHeight);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
imagedestroy($src_img);
imagedestroy($dst_img);
break;
}
// Set mode of uploaded picture
chmod($dest_file, octdec($CONFIG['default_file_mode']));
// We check that the image is valid
$imginfo = getimagesize($dest_file);
if ($imginfo == null) {
$ERROR = $lang_errors['resize_failed'];
@unlink($dest_file);
return false;
} else {
return true;
}
}
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2006-05-06, 00:53:08 Mesaj konusu: Re: Coppermine modülüne resim eklenmiyor
Söylemiş ya işte size sorunu.
Ciddi hata
PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed
Sunucunuz GD Image library eklentisine sahip değil. Imagemagic kurulu olan bir web hosting kullanın diye sizi uyarıyor.
Sunucunuza bu eklenti yüklenmediği sürece kod değişiklikleri sorununuzu çözmeyecektir.
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2006-05-06, 01:06:44 Mesaj konusu: Re: Coppermine modülüne resim eklenmiyor
Bunu sizin hosting firmanız web alanı sattığı sunuculara kendisi kurmalı.
Localde deniyorsanız biraz araştırma yapın bulabilirsiniz diyebilirim ama sunucuya bu eklentiyi uzaktan siz yükleyemezsiniz, bunu hosting firmanızdan isteyeceksiniz.
Bankocu arkadaşım ilgin için teşekkür ederim senden bir rica daha admin sayfasından coppermine ye girince boş bir sayfada sadece Access Denied yazıyor bunu nasıl düzeltebilirim
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2006-05-06, 01:47:01 Mesaj konusu: Re: Coppermine modülüne resim eklenmiyor
Bir önceki mesajdaki Access Denied çok genel bir sorun. Çözümleri de bir çok linkte verildi daha önce.
En klasik neden Php Nuke 7.6 dan daha önceki versiyonlara ait bir modül kullanıyor olmanız.
Php Nuke 7.6'dan itibaren farklı tanımlamalar kullanmaya başladı.
Aşağıda 76patched paketinin okubeni dosyasından alınmış çok önemli uyarılar var.
Kod:
1- If you want right side blocks to appear in third party add-ons change:
In Modules:
index = 1;
to:
define('INDEX_FILE', true);
In Themes:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {
2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {
if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {
if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {
if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {
Bunlara dikkat etmezseniz, eski modül ya da bloklarınızı, temalarınızı buna göre düzenlemezseniz bir çok sorunla karşılaşmanız olası.
En son Php Nuke uyumlu versiyon olan, 1.3.1c yi kullanıyorsunuzdur umarım.
1.3.1c indirdim kurdum bu php nukede de acemiyim bu kodlardan fazlada anlamıyorum php nuke 7.7 için hazırlanmış bir modül bulsaydım güzel olurdu MyeGallery kullanayım dedim o iyi idi İM hatası falan vermedi yanlız katogori içindeki resimleri ön izleme yapmıyor onu başarabilseydim bu coppermine ile uğraşmıcaktım ama her ikisinide başaramadım maalesef sizi tanıdığım iyi oldu benim e mailim yusufelili08@hotmail.com eğer sizde verirseniz msn ye eklerim daha iyi olur
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız