PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 6:38 am Reply with quote Back to top

Hi All,

Well after searching high and low on numerous forums and sites no one has or is having the same issue, so im thinking its something simple i missed.

Installed coppermine 1.3.1c
To Raven Nuke 2.20.01 everything went great installed fine chmod didnt need to be set as the server runs on a Windows server it created the files and sql tables in mysql5

All works fine while in the gallery untill anyone wants to upload and gives the error below:


Script called without the required parameter(s).

File:\modules\coppermine\db_input.php - Line: 48

Can anyone help ?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Dec 19, 2008 7:12 am Reply with quote Back to top

Either that file is not supposed to accessed directly or as the error suggests, it was called without specifying the parameters needed. I don't and won't use Coppermine because it has been plagued with security problems but without seeing what is in that file it would be impossible to to be of any more help.
View user's profile Send private message Send e-mail Visit poster's website
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 7:21 am Reply with quote Back to top

This is the Code


Code:
<?php
// ------------------------------------------------------------------------ //
// Coppermine Photo Gallery 1.3.1 for CMS     7.11.05                       //
// ------------------------------------------------------------------------ //
// Copyright (C) 2002,2003  Gr�gory DEMAR <gdemar@wanadoo.fr>               //
// http://www.chezgreg.net/coppermine/                                      //
// ------------------------------------------------------------------------ //
// Updated by the Coppermine Dev Team                                       //
// (http://coppermine.sf.net/team/)                                         //
// see /docs/credits.html for details                                       //
// ------------------------------------------------------------------------ //
// New Port by GoldenTroll                                                  //
// http://coppermine.findhere.org/                                          //
// Based on coppermine 1.1d by Surf  http://www.surf4all.net/               //
// ------------------------------------------------------------------------ //
// Pc-Nuke! Systems - Development/Support - Coppermine for PHP-Nuke         //
// http://www.max.pcnuke.com  -  http://www.pcnuke.com                      //
// Website for Port Upgrades from 1.3.0 and up...      7.11.05              //
// ------------------------------------------------------------------------ //
// 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.                                      //
// ------------------------------------------------------------------------ //
if (eregi("modules/", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}
define('DB_INPUT_PHP', true);
require("modules/" . $name . "/include/load.inc");

require($CPG_M_DIR . '/include/picmgmt.inc');
//require($CPG_M_DIR . '/include/mailer.inc.php');
global $username;
function check_comment(&$str)
{
    global $CONFIG, $lang_bad_words, $queries;

    $ercp = array('/\S{' . ($CONFIG['max_com_wlength'] + 1) . ',}/i');
    if ($CONFIG['filter_bad_words']) foreach($lang_bad_words as $word) {
        $ercp[] = '/' . ($word[0] == '*' ? '': '\b') . str_replace('*', '', $word) . ($word[(strlen($word)-1)] == '*' ? '': '\b') . '/i';
    }

    if (strlen($str) > $CONFIG['max_com_size']) $str = substr($str, 0, ($CONFIG['max_com_size'] -3)) . '...';
    $str = preg_replace($ercp, '(...)', $str);
}

if (!isset($HTTP_GET_VARS['event']) && !isset($HTTP_POST_VARS['event'])) {
  speedtypespeedtypespeedtypespeedtype>>>cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}

$event = isset($HTTP_POST_VARS['event']) ? $HTTP_POST_VARS['event'] : $HTTP_GET_VARS['event'];
switch ($event) {
   
    // Comment update
   
    case 'comment_update':
        if (!(USER_CAN_POST_COMMENTS)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

        check_comment($HTTP_POST_VARS['msg_body']);
        check_comment($HTTP_POST_VARS['msg_author']);
        $msg_body = trim($HTTP_POST_VARS['msg_body']);
        $msg_author = trim($HTTP_POST_VARS['msg_author']);
//        $msg_body = addslashes(trim($HTTP_POST_VARS['msg_body']));
//        $msg_author = addslashes(trim($HTTP_POST_VARS['msg_author']));
        $msg_body = (get_magic_quotes_gpc() ? $msg_body : addslashes($msg_body));
        $msg_author  = (get_magic_quotes_gpc() ? $msg_author  : addslashes($msg_author));
        $msg_id = (int)$HTTP_POST_VARS['msg_id'];

        if ($msg_body == '') cpg_die(ERROR, $lang_db_input_php['err_comment_empty'], __FILE__, __LINE__);

        if (GALLERY_ADMIN_MODE) {
            $update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id'");
        } elseif (USER_ID) {
            $update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id' AND author_id ='" . USER_ID . "' LIMIT 1");
        } else {
            $update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id' AND author_md5_id ='{$USER['ID']}' AND author_id = '0' LIMIT 1");
        }

        $header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';

        $result = db_query("SELECT pid FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$msg_id'");
       
        if (!mysql_num_rows($result)) {
            mysql_free_result($result);
            $header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
            header($header_location . $CPG_M_URL);
            pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");
            msg_box($lang_info, $lang_db_input_php['redirect_msg'], $lang_db_input_php['continue'], $redirect);
            pagefooter();
        } else {
            $comment_data = mysql_fetch_array($result);
            mysql_free_result($result);
            $redirect = $CPG_URL . "&file=displayimage&pos=" . (- $comment_data['pid']);
            header($header_location . $redirect);
            pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");
            msg_box($lang_info, $lang_db_input_php['redirect_msg'], $lang_db_input_php['continue'], $redirect);
            pagefooter();
        }
        break;
   
    // Comment
   
    case 'comment':
        if (!(USER_CAN_POST_COMMENTS)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

        check_comment($HTTP_POST_VARS['msg_body']);
        $msg_author = trim($HTTP_POST_VARS['msg_author']);
        $msg_body = trim($HTTP_POST_VARS['msg_body']);
//        $msg_author = addslashes(trim($HTTP_POST_VARS['msg_author']));
//        $msg_body = addslashes(trim($HTTP_POST_VARS['msg_body']));
        $msg_body = (get_magic_quotes_gpc() ? $msg_body : addslashes($msg_body));
        $msg_author  = (get_magic_quotes_gpc() ? $msg_author  : addslashes($msg_author));
        $pid = (int)$HTTP_POST_VARS['pid'];

        if ($msg_author == '' || $msg_body == '') cpg_die(ERROR, $lang_db_input_php['empty_name_or_com'], __FILE__, __LINE__);

        $result = db_query("SELECT comments FROM {$CONFIG['TABLE_PICTURES']}, {$CONFIG['TABLE_ALBUMS']} WHERE {$CONFIG['TABLE_PICTURES']}.aid = {$CONFIG['TABLE_ALBUMS']}.aid AND pid='$pid'");
        if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
        $album_data = mysql_fetch_array($result);
        mysql_free_result($result);

        if ($album_data['comments'] != 'YES') cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

        $result = db_query("SELECT author_md5_id, author_id FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid = '$pid' ORDER BY msg_id DESC LIMIT 1");
        if (mysql_num_rows($result)) {
            $last_com_data = mysql_fetch_array($result);
            if ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) {
                if (!$CONFIG['disable_flood_protection']) {
                    cpg_die(ERROR, $lang_db_input_php['no_flood'], __FILE__, __LINE__);
                }
            }
        }

        if (!USER_ID) { // Anonymous users, we need to use META refresh to save the cookie
            $insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '$msg_author', '$msg_body', NOW(), '{$USER['ID']}', '0', '$raw_ip', '$hdr_ip')");
            $USER['name'] = $HTTP_POST_VARS['msg_author'];
            $redirect = $CPG_URL . "&amp;file=displayimage&amp;pos=" . (- $pid);
            if ($CONFIG['comment_email_notification']) {
                $mail_body = $msg_body . "\n\r See it at http://" . $_SERVER["SERVER_NAME"] . "/" . $redirect;
                cpg_mail($CONFIG['gallery_admin_email'], $lang_db_input_php['email_comment_subject'], $mail_body);
            }
            pageheader($lang_db_input_php['com_added'], "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");
            msg_box($lang_db_input_php['info'], $lang_db_input_php['com_added'], $lang_continue, $redirect);
            pagefooter();
        } else { // Registered users, we can use Location to redirect
            $insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '" . addslashes(CPG_USERNAME) . "', '$msg_body', NOW(), '', '" . USER_ID . "', '$raw_ip', '$hdr_ip')");
            $redirect = $CPG_URL . "&amp;file=displayimage&amp;pos=" . (- $pid);
            if ($CONFIG['comment_email_notification']) {
                $mail_body = $msg_body . "\n\r See it at http://" . $_SERVER["SERVER_NAME"] . "/" . $redirect;
                require("includes/class.phpmailer.php");
                            $mail = new PHPMailer();
                            $mail->SetLanguage();
                            $mail->From     = $CONFIG['gallery_admin_email'];
                            $mail->AddAddress($CONFIG['gallery_admin_email']);
                            $mail->Priority = 3;
                            $mail->Encoding = "8bit";
                            $mail->CharSet = CHARSET;
                            $mail->Subject = $lang_db_input_php['email_comment_subject'];
                            $mail->Body    = $mail_body;
                            $mail->IsMail();
                            if (!$mail->Send()) {
                                cpg_die(ERROR, $mailer_mesage, __FILE__, __LINE__);
                            }
                                //cpg_mail($CONFIG['gallery_admin_email'], $lang_db_input_php['email_comment_subject'], $mail_body);
            }
            $header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
            header($header_location . $redirect);
            pageheader($lang_db_input_php['com_added'], "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");
            msg_box($lang_db_input_php['info'], $lang_db_input_php['com_added'], $lang_continue, $redirect);
            pagefooter();
        }
        break;
   
    // Update album
   
    case 'album_update':
        if (!(USER_ADMIN_MODE || GALLERY_ADMIN_MODE)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

        //$aid = (int)$HTTP_POST_VARS['aid'];
        $aid = intval($HTTP_POST_VARS['aid']);
        $title = trim($HTTP_POST_VARS['title']);
//        $title = addslashes(trim($HTTP_POST_VARS['title']));
        $category = (int)$HTTP_POST_VARS['category'];
        $category = intval($HTTP_POST_VARS['category']);
        $description = trim($HTTP_POST_VARS['description']);
//        $description = addslashes(trim($HTTP_POST_VARS['description']));
        //$thumb = (int)$HTTP_POST_VARS['thumb'];
        //$visibility = (int)$HTTP_POST_VARS['visibility'];
        $thumb = intval($HTTP_POST_VARS['thumb']);
        $visibility = intval($HTTP_POST_VARS['visibility']);
        $uploads = $HTTP_POST_VARS['uploads'] == 'YES' ? 'YES' : 'NO';
        $comments = $HTTP_POST_VARS['comments'] == 'YES' ? 'YES' : 'NO';
        $votes = $HTTP_POST_VARS['votes'] == 'YES' ? 'YES' : 'NO';

        if (!$title) cpg_die(ERROR, $lang_db_input_php['alb_need_title'], __FILE__, __LINE__);

        if (GALLERY_ADMIN_MODE) {
            $query = "UPDATE {$CONFIG['TABLE_ALBUMS']} SET title='$title', description='$description', category='$category', thumb='$thumb', uploads='$uploads', comments='$comments', votes='$votes', visibility='$visibility' WHERE aid='$aid' LIMIT 1";
        } else {
            $category = FIRST_USER_CAT + USER_ID;
            if ($visibility != $category && $visibility != $USER_DATA['group_id']) $visibility = 0; //not in 1.2.0
            $query = "UPDATE {$CONFIG['TABLE_ALBUMS']} SET title='$title', description='$description', thumb='$thumb',  comments='$comments', votes='$votes', visibility='$visibility' WHERE aid='$aid' AND category='$category' LIMIT 1";
        }

        $update = db_query($query);
        if (isset($CONFIG['debug_mode']) && ($CONFIG['debug_mode'] == 1)) {
            $queries[] = $query;
        }

        if (!mysql_affected_rows()) cpg_die(INFORMATION, $lang_db_input_php['no_udp_needed'], __FILE__, __LINE__);
//        if ($CONFIG['debug_mode'] == 0) {
            pageheader($lang_db_input_php['alb_updated'], "<META http-equiv=\"refresh\" content=\"1;url=" . $CPG_URL . "&amp;file=modifyalb&amp;album=$aid\">");
//        }
        msg_box($lang_db_input_php['info'], $lang_db_input_php['alb_updated'], $lang_continue, $CPG_URL . "&amp;file=modifyalb&amp;album=$aid");
        pagefooter();
        break;
   
    // Picture upload
   
    case 'picture':
        if (!USER_CAN_UPLOAD_PICTURES) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);

        $album = (int)$HTTP_POST_VARS['album'];
        $title = (get_magic_quotes_gpc() ? $title : addslashes($title));
        $caption = (get_magic_quotes_gpc() ? $caption : addslashes($caption));
        $keywords = (get_magic_quotes_gpc() ? $keywords : addslashes($keywords));
        $user1 = (get_magic_quotes_gpc() ? $user1 : addslashes($user1));
        $user2 = (get_magic_quotes_gpc() ? $user2 : addslashes($user2));
        $user3 = (get_magic_quotes_gpc() ? $user3 : addslashes($user3));
        $user4 = (get_magic_quotes_gpc() ? $user4 : addslashes($user4));

        // Check if the album id provided is valid
        if (!GALLERY_ADMIN_MODE) {
            $result = db_query("SELECT category FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='$album' and (uploads = 'YES' OR category = '" . (USER_ID + FIRST_USER_CAT) . "')");
            if (mysql_num_rows($result) == 0)cpg_die(ERROR, $lang_db_input_php['unknown_album'], __FILE__, __LINE__);
            $row = mysql_fetch_array($result);
            mysql_free_result($result);
            $category = $row['category'];
        } else {
            $result = db_query("SELECT category FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='$album'");
            if (mysql_num_rows($result) == 0)cpg_die(ERROR, $lang_db_input_php['unknown_album'], __FILE__, __LINE__);
            $row = mysql_fetch_array($result);
            mysql_free_result($result);
            $category = $row['category'];
        }
        // Test if the filename of the temporary uploaded picture is empty
        if ($HTTP_POST_FILES['userpicture']['tmp_name'] == '') cpg_die(ERROR, $lang_db_input_php['no_pic_uploaded'], __FILE__, __LINE__);
        // Pictures are moved in a directory named 10000 + USER_ID
        if (USER_ID && !defined('SILLY_SAFE_MODE')) {
            $filepath = $CONFIG['userpics'] . (USER_ID + FIRST_USER_CAT);
            // $dest_dir = $CONFIG['fullpath'].$filepath;
            $dest_dir = $filepath;
            if (!is_dir($dest_dir)) {
                mkdir($dest_dir, octdec($CONFIG['default_dir_mode']));
                if (!is_dir($dest_dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_mkdir'], $dest_dir), __FILE__, __LINE__, true);
                chmod($dest_dir, octdec($CONFIG['default_dir_mode']));
                $fp = fopen($dest_dir . '/index.html', 'w');
                fwrite($fp, ' ');
                fclose($fp);
            }
            $dest_dir .= '/';
            $filepath .= '/';
        } else {
            $filepath = $CONFIG['userpics'];
            $dest_dir = $filepath;
        }
        // Check that target dir is writable
        if (!is_writable($dest_dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['dest_dir_ro'], $dest_dir), __FILE__, __LINE__, true);
        // Replace forbidden chars with underscores
        $matches = array();
        $forbidden_chars = strtr($CONFIG['forbiden_fname_char'], array('&amp;' => '&', '&quot;' => '"', '&lt;' => '<', '&gt;' => '>'));
        // Check that the file uploaded has a valid extension
        if (get_magic_quotes_gpc()) $HTTP_POST_FILES['userpicture']['name'] = stripslashes($HTTP_POST_FILES['userpicture']['name']);
        $picture_name = strtr($HTTP_POST_FILES['userpicture']['name'], $forbidden_chars, str_repeat('_', strlen($CONFIG['forbiden_fname_char'])));
        if (!preg_match("/(.+)\.(.*?)\Z/", $picture_name, $matches)) {
            $matches[1] = 'invalid_fname';
            $matches[2] = 'xxx';
        }
        if ($matches[2] == '' || !stristr($CONFIG['allowed_file_extensions'], $matches[2])) {
            cpg_die(ERROR, sprintf($lang_db_input_php['err_invalid_fext'], $CONFIG['allowed_file_extensions']), __FILE__, __LINE__);
        }
        // Create a unique name for the uploaded file
        $nr = 0;
        $picture_name = $matches[1] . '.' . $matches[2];
        while (file_exists($dest_dir . $picture_name)) {
            $picture_name = $matches[1] . '~' . $nr++ . '.' . $matches[2];
        }
        $uploaded_pic = $dest_dir . $picture_name;
        // Move the picture into its final location
        if (!move_uploaded_file($HTTP_POST_FILES['userpicture']['tmp_name'], $uploaded_pic))
            cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_move'], $picture_name, $dest_dir), __FILE__, __LINE__, true);
        // Change file permission
        chmod($uploaded_pic, octdec($CONFIG['default_file_mode']));
        // Get picture information
        $imginfo = getimagesize($uploaded_pic);
        // Check that picture size (in pixels) is lower than the maximum allowed
        if (max($imginfo[0], $imginfo[1]) > $CONFIG['max_upl_width_height']) {
            $max = $CONFIG['max_upl_width_height'];
//            cpg_die(ERROR, sprintf($lang_db_input_php['err_fsize_too_large'], $CONFIG['max_upl_width_height'], $CONFIG['max_upl_width_height']), __FILE__, __LINE__);
            // Check that picture file size is lower than the maximum allowed
        } else {
            $max = max($imginfo[0], $imginfo[1]);
        }
        if (!resize_image($uploaded_pic, $uploaded_pic, $max, $CONFIG['thumb_method'], '')) {
            @unlink($uploaded_pic);
            cpg_die(ERROR, "This is not a image or image has errors", __FILE__, __LINE__);
        }
        $imginfo = getimagesize($uploaded_pic);
        if (filesize($uploaded_pic) > ($CONFIG['max_upl_size'] << 10)) {
            @unlink($uploaded_pic);
            cpg_die(ERROR, sprintf($lang_db_input_php['err_imgsize_too_large'], $CONFIG['max_upl_size']), __FILE__, __LINE__);
            // getimagesize does not recognize the file as a picture
        } elseif ($imginfo == null) {
            @unlink($uploaded_pic);
            cpg_die(ERROR, $lang_db_input_php['err_invalid_img'], __FILE__, __LINE__, true);
            // JPEG and PNG only are allowed with GD
            // implement gd_info GIF Read Support here
        } elseif ($imginfo[2] != GIS_JPG && $imginfo[2] != GIS_PNG && ($CONFIG['thumb_method'] == 'gd1' || $CONFIG['thumb_method'] == 'gd2')) {
            @unlink($uploaded_pic);
            cpg_die(ERROR, $lang_errors['gd_file_type_err'], __FILE__, __LINE__, true);
            // Check image type is among those allowed for ImageMagick
        } elseif (!stristr($CONFIG['allowed_img_types'], $IMG_TYPES[$imginfo[2]]) && $CONFIG['thumb_method'] == 'im') {
            @unlink($uploaded_pic);
            cpg_die(ERROR, sprintf($lang_db_input_php['allowed_img_types'], $CONFIG['allowed_img_types']), __FILE__, __LINE__);
        } else {
            // Create thumbnail and intermediate image and add the image into the DB
            $result = add_picture($album, $filepath, $picture_name, $title, $caption, $keywords, $user1, $user2, $user3, $user4, $category);
            if (!$result) {
                @unlink($uploaded_pic);
                cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_insert_pic'], $uploaded_pic) . '<br /><br />' . $ERROR, __FILE__, __LINE__, true);
            } elseif ($PIC_NEED_APPROVAL) {
                pageheader($lang_info);
                msg_box($lang_info, $lang_db_input_php['upload_success'], $lang_continue, $CPG_M_URL);
                pagefooter();
            } else {
                $header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
                $redirect = $CPG_URL . "&file=displayimage&pos=" . (- mysql_insert_id());
                header($header_location . $redirect);
                pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");
                msg_box($lang_info, $lang_db_input_php['upl_success'], $lang_continue, $redirect);
                pagefooter();
            }
        }
        break;
   
    // Unknown event
   
    default:
        cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}

?>


I have put in > > > > > > > > > > > > > > > the line indicated by the error
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Dec 19, 2008 7:30 am Reply with quote Back to top

The script is expecting a POST or GET variable with the name 'event' and isn't getting it which is why you see the error message.
The question now is WHY isn't it getting it. Have you tried the module author for support as they should already have installation on which they can test.
View user's profile Send private message Send e-mail Visit poster's website
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 8:09 am Reply with quote Back to top

The issue is that the support for this specific coppermine used to be at
Only registered users can see links on this board!
Get registered or login to the forums!
but it doesnt exist anymore ...

I could try the coppermine forums but i will get something in the region of upgrade your coppermine to 1.4.x bla bla bla even though they havnt relised at the moment this is the only ported PHPnuke version that i have seen.

But wanted to check if it could be something in Raven nuke which it doesnt like
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Dec 19, 2008 9:01 am Reply with quote Back to top

You can open the config.php file in your nukeroot and turn on error reporting (it is commented within the file) to see if any additional errors are reported, that may help.
I am not aware of any RN specific issues that affect how Coppermine might work.
View user's profile Send private message Send e-mail Visit poster's website
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 9:20 am Reply with quote Back to top

apart from

Warning: include(themes/WOW_Wrath/scripts/) [function.include]: failed to open stream: No such file or directory in E:\domains\c\chemicalguild.com\user\htdocs\themes\WOW_Wrath\head.php on line 8

Warning: include() [function.include]: Failed opening 'themes/WOW_Wrath/scripts/' for inclusion (include_path='.;C:\php5\pear') in E:\domains\c\chemicalguild.com\user\htdocs\themes\WOW_Wrath\head.php on line 8


I will try Coppermine with the error and see if i get a viable answer if i dont get spamm to upgrade.,..

Thanks for your help.
View user's profile Send private message
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 9:46 am Reply with quote Back to top

No worries im going to uninstall this and try and find something to go with raven nuke regarding the posting of a gallery of some sort.

No support at all anymore for PHPNuke regards commpermin as its outdated Smile as iv been told ....
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Dec 19, 2008 11:39 am Reply with quote Back to top

Do a search here for "Gallery" or "Gallery2", I'm sure you will find some good info Wink
View user's profile Send private message Send e-mail Visit poster's website
bromide
New Member
New Member


Joined: Dec 19, 2008
Posts: 8

PostPosted: Fri Dec 19, 2008 2:57 pm Reply with quote Back to top

Yeah iv tried this not so long ago i didnt have the time to install it then install the port aswell ..

i will tho have a go soon
View user's profile Send private message
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Tue Dec 23, 2008 6:01 pm Reply with quote Back to top

bromide wrote:
The issue is that the support for this specific coppermine used to be at
Only registered users can see links on this board!
Get registered or login to the forums!
but it doesnt exist anymore ...

I could try the coppermine forums but i will get something in the region of upgrade your coppermine to 1.4.x bla bla bla even though they havnt relised at the moment this is the only ported PHPnuke version that i have seen.

But wanted to check if it could be something in Raven nuke which it doesnt like


Actually I don't think that is the last, try uninstall and get one from here:
Only registered users can see links on this board!
Get registered or login to the forums!


Or here .. Paid site.
Only registered users can see links on this board!
Get registered or login to the forums!


The last is 1.3.1d Very Happy

jc
View user's profile Send private message Visit poster's website
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Wed Aug 05, 2009 10:25 am Reply with quote Back to top

I have been using: Coppermine for Php-Nuke v1.3.1d for some time now. Everything was working fine and is still loading and showing up fine but, now when members and I try to upload photos we get the following error:This is not a image or image has errors I haven't changed anything that I am aware of that would have made this issue happen. It doesn't matter what size or file type is uploaded. All of them get the same error.

I know Coppermine isn't being supported anymore so I'm just seeing if anyone else ran into this or can point me to some settings I should double check. Wink
View user's profile Send private message
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Thu Aug 06, 2009 12:38 am Reply with quote Back to top

I never had this problem. Do you have a link or pm me a link? make sure nothing was wiped out in your configurations settings. Specially in:
Accepted file extensions for uploaded pictures

make sure you have the following:
GIF/PNG/JPG/JPEG/TIF/TIFF/BMP
View user's profile Send private message Visit poster's website
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Thu Aug 06, 2009 10:21 am Reply with quote Back to top

NeapolitanWorld wrote:
I never had this problem. Do you have a link or pm me a link? make sure nothing was wiped out in your configurations settings. Specially in:
Accepted file extensions for uploaded pictures

make sure you have the following:
GIF/PNG/JPG/JPEG/TIF/TIFF/BMP


Thanks for your reply Neapolitan. After hours of changing settings and testing I found that for some reason it gives this error when I have the following setting:

Method for resizing images: Image Magick

When set to: GD ver. 1 or 2 it works fine. I doubled checked with my host to make sure I had the correct path for image magick it was. So....I'm not sure why it is giving the error while trying to use Image Magick. Rolling Eyes
View user's profile Send private message
meotoo
Hangin' Around


Joined: Aug 04, 2009
Posts: 36

PostPosted: Wed Aug 19, 2009 12:41 pm Reply with quote Back to top

Hi,

The last PCN release for coppermine was 1.3.2

It included interesting improvements as memory "tracking" (for uploading large images), support for PHP5 (iirc), automatic popup-photo resizing, etc

I can upload it somewhere if some of you are interested.
View user's profile Send private message Visit poster's website
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Wed Aug 19, 2009 12:53 pm Reply with quote Back to top

Yes, please! I would be interested. Also any sites have it installed to take a look?

jc
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Wed Aug 19, 2009 1:31 pm Reply with quote Back to top

Since the beginning , or better said, end of coppermine devellopment to nuke.
I started using menalto gallery , i never had trouble with this script , and it is or was , far more advance as coppermine.
So if you ever change your mind , you have a alternative.
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
meotoo
Hangin' Around


Joined: Aug 04, 2009
Posts: 36

PostPosted: Wed Aug 19, 2009 2:10 pm Reply with quote Back to top

NeapolitanWorld wrote:
Yes, please! I would be interested. Also any sites have it installed to take a look?

jc


Just uploaded it to:

Only registered users can see links on this board!
Get registered or login to the forums!


(btw, i didnt used RS for a while, and now after uploading i see a message the file can be downloaded 10 times only...WTF!?) feel free to reupload it anywhere else.

as for sites using it, well... IIRC it had around/near 10000 downloads, hence there must be several sites still using it todays, try
Only registered users can see links on this board!
Get registered or login to the forums!
Wink


EDIT: This Google search should provide more accurate results pointing to nuke sites using coppermine 1.3.2:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Wed Aug 19, 2009 3:20 pm Reply with quote Back to top

meotoo, Thank you!
wHiTeHaT, I'll play around with it in the future. In time I probably have to move to a new gallery option if no one picks up coppermine for nuke.

jc
View user's profile Send private message Visit poster's website
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Wed Aug 19, 2009 3:53 pm Reply with quote Back to top

wHiTeHaT wrote:
Since the beginning , or better said, end of coppermine devellopment to nuke.
I started using menalto gallery , i never had trouble with this script , and it is or was , far more advance as coppermine.
So if you ever change your mind , you have a alternative.


Do you happen to know if there is an easy migration package or anything to migrate from coppermine to G2? I have 11,000 pics in coppermine Confused

jc
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Wed Aug 19, 2009 4:10 pm Reply with quote Back to top

As far as i now menalto gallery detect folder and you are able to make an album for each of these folders.
There's also a nuke based devellopment and is called nukedgallery.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Wed Aug 19, 2009 5:20 pm Reply with quote Back to top

Unable to install...
I'm just getting a blank page during the set up of Gallery 2 Integration Settings. Testing a bran new RN install with: Gallery2 PHPNuke Integration Pack - zip file

Here
Only registered users can see links on this board!
Get registered or login to the forums!



jc
View user's profile Send private message Visit poster's website
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Wed Aug 19, 2009 5:44 pm Reply with quote Back to top

NeapolitanWorld wrote:
Unable to install...
I'm just getting a blank page during the set up of Gallery 2 Integration Settings. Testing a bran new RN install with: Gallery2 PHPNuke Integration Pack - zip file

Here
Only registered users can see links on this board!
Get registered or login to the forums!



jc


Sorry disregard or remove post. I have to do something before installing this package Embarassed lol
View user's profile Send private message Visit poster's website
NeapolitanWorld
Involved
Involved


Joined: Nov 06, 2005
Posts: 318
Location: Los Angeles, USA

PostPosted: Thu Aug 20, 2009 12:29 pm Reply with quote Back to top

Ok, so I have installed the G2 gallery 2.1 and everything seams good. I'm now trying to use the integration package with no success Sad
No errors or anything, it just does not do anything and when clicking on the G2 module it just says "The module has not yet been configured."
Does anyone have G2 fully integrated with RN?

jc
View user's profile Send private message Visit poster's website
Coldy
Hangin' Around


Joined: Apr 24, 2004
Posts: 40
Location: Austria

PostPosted: Fri Sep 04, 2009 11:07 pm Reply with quote Back to top

Hi!

The Gallery2 (with NukedGallery integration) dosn't work so fine with PHP-Nuke.
Too many problems when uploading Pictures.

It is also a very big and slow Gallery.
For using StandAlone it's not bad, but not for including into Nuke-Systems.

Coldy Cool
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum