Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
jackel
Worker
Worker



Joined: Jan 15, 2009
Posts: 145
Location: Iowa, USA

PostPosted: Wed Mar 04, 2009 11:31 am Reply with quote

Could someone please take a look at Coppermine for Nuke 1.3.1c and see if there is a simple code change to allow this to work with rn 2.3 i know its been gone over in forums but nothing else looks as good all pages you can see but when you goto upload a image it goes to a blank page maybe just maybe there might be a simple code fixs like so many other mods

Thanks in advance
Chris
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Wed Mar 04, 2009 12:24 pm Reply with quote

Have you got error and database logging turned on?
 
View user's profile Send private message
jackel







PostPosted: Wed Mar 04, 2009 3:05 pm Reply with quote

This is the error that io get after hitting submit

Code:
Fatal error: Call to undefined function gd_info() in /home/xxxxxx/public_html/modules/coppermine/db_input.php on line 38
 
jakec







PostPosted: Wed Mar 04, 2009 3:12 pm Reply with quote

Does that file have any references to $dbi?
 
jackel







PostPosted: Wed Mar 04, 2009 3:17 pm Reply with quote

I searched $dbi and nothing was found
 
jackel







PostPosted: Wed Mar 04, 2009 3:19 pm Reply with quote

gd_info() < wondering if this has something
 
trunks
Worker
Worker



Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Wed Mar 04, 2009 3:22 pm Reply with quote

could you post up the code from lines 30 to 50 may give us more of an idea Smile

I cant see gd_info() beign an issue as it only gets information about the version and capabilities of the installed gd libraryy.
 
View user's profile Send private message Visit poster's website MSN Messenger
jackel







PostPosted: Wed Mar 04, 2009 3:25 pm Reply with quote

Code:
 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'])) {
    cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}
 
trunks







PostPosted: Wed Mar 04, 2009 3:29 pm Reply with quote

which is line 38 please?
 
jackel







PostPosted: Wed Mar 04, 2009 3:31 pm Reply with quote

Code:
37: global $CONFIG, $lang_bad_words, $queries;

38:
39: $ercp = array('/\S{' . ($CONFIG['max_com_wlength'] + 1) . ',}/i');
 
jackel







PostPosted: Wed Mar 04, 2009 3:36 pm Reply with quote

http://pathway.x10hosting.com if you want goto this site and sign up then we can meet in my chatroom a little easier then posting waiting posting Smile if your welling
 
trunks







PostPosted: Wed Mar 04, 2009 3:44 pm Reply with quote

can you open yup modules/coppermine/admin/index.inc and paste the code within the gdVersion() function please.
 
trunks







PostPosted: Wed Mar 04, 2009 3:46 pm Reply with quote

also try this

admin -> multimedia -> coppermine -> config ... change imaging type from "Image Magic" to "GD"
 
jackel







PostPosted: Wed Mar 04, 2009 3:49 pm Reply with quote

trunks wrote:
can you open yup modules/coppermine/admin/index.inc and paste the code within the gdVersion() function please.


There is no index.inc only index.php
 
trunks







PostPosted: Wed Mar 04, 2009 3:52 pm Reply with quote

yes sorry. also have you CHMOD'ed the correct folders? and also using the phpnuke module not the stand-alone? Sounds silly i know but thought ide ask.
 
jackel







PostPosted: Wed Mar 04, 2009 3:53 pm Reply with quote

I found
Code:
<select name="$name" class="listbox">

                                <option value="im" $im_selected>Image Magick</option>
                                <option value="gd1" $gd1_selected>GD version 1.x</option>
                                <option value="gd2" $gd2_selected>GD version 2.x</option>
                                <option value="netpbm" $netpbm_selected>netpbm</option>
                        </select>


in html\modules\coppermine\config.php
 
jackel







PostPosted: Wed Mar 04, 2009 3:55 pm Reply with quote

trunks wrote:
yes sorry. also have you CHMOD'ed the correct folders? and also using the phpnuke module not the stand-alone? Sounds silly i know but thought ide ask.


Yes i chmod the right folders and its module
 
trunks







PostPosted: Wed Mar 04, 2009 3:56 pm Reply with quote

hmm what's your server spec? free host?
Have you tried setting the image type to GD?

running out of ideas as to why this isnt working, but sounds like something to do with the gd function the more i dig at it.


Last edited by trunks on Wed Mar 04, 2009 3:57 pm; edited 1 time in total 
jackel







PostPosted: Wed Mar 04, 2009 3:57 pm Reply with quote

in the index.php file there is nothing referencing GD
 
jackel







PostPosted: Wed Mar 04, 2009 3:58 pm Reply with quote

it's a free host but nothing is locked only limted bandwidth
 
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Wed Mar 04, 2009 4:34 pm Reply with quote

Try changing Method for resizing images to GD Version 1.x

I am thinking your host has disabled gd_info maybe.
 
View user's profile Send private message
trunks







PostPosted: Wed Mar 04, 2009 4:36 pm Reply with quote

yes i have to agree... ask your host what the server spec is
 
jackel







PostPosted: Wed Mar 04, 2009 8:52 pm Reply with quote

ok I found the problem imagemagick is installed on my server just not active does anyone know how to activate it? Or activate GD

Thanks
 
trunks







PostPosted: Thu Mar 05, 2009 6:51 pm Reply with quote

You will need to send in a support ticket with your web hosting provider. Smile
 
jackel







PostPosted: Thu Mar 05, 2009 7:53 pm Reply with quote

already done that just waiting now

Thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©