coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: lamme on August 21, 2004, 02:18:47 PM

Title: Error uploading using both GD and IM
Post by: lamme on August 21, 2004, 02:18:47 PM
Hi
I can't use either GD or IM when uploading files.

Error message with IM:
Notice: Undefined index: OS in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/include/picmgmt.inc.php on line 148

Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/include/picmgmt.inc.php on line 162

Error message with GD ver 2.x:
Notice: Undefined index: user1 in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/upload.php on line 2146

Notice: Undefined index: user2 in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/upload.php on line 2147

Notice: Undefined index: user3 in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/upload.php on line 2148

Notice: Undefined index: user4 in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/upload.php on line 2149

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2132 bytes) in /mnt/dkcphnas004/www/s/n/mysite.dk/cpg/include/picmgmt.inc.php on line 207


I hope someone can help me, please.

/lammes


PS. Here is some info:


USER:
------------------
Array
(
   [ID] => 5ef4375a7528e5055cd8c6b953053e20
   [am] => 1
   [liv] => Array
       (
           
Title: Re: Error uploading using both GD and IM
Post by: Joachim Müller on August 21, 2004, 10:22:30 PM
try enabling silly safe mode as suggested in the docs: http://coppermine.sourceforge.net/manual.php#safe

GauGau
Title: Re: Error uploading using both GD and IM
Post by: lamme on August 22, 2004, 04:34:52 PM
allready done that.

I emailed by webhost about safe mode issue and they said:

"The error come becaurse we run the server with safe mode enabled, this will not allow the use of backticcs (´) in the php-script. Instead you can use one of the other funktions to execute program like for instance exec().
(http://dk2.php.net/manual/en/function.exec.php)

Lammes
Title: Re: Error uploading using both GD and IM
Post by: Joachim Müller on August 22, 2004, 11:41:44 PM
try replacing $output = `$cmd 2>&1`;with//$output = `$cmd 2>&1`;in include/picmgmt.inc.php

GauGau
Title: Re: Error uploading using both GD and IM
Post by: lamme on August 26, 2004, 04:48:43 PM
still dosn't work.
The thumbnail is not created at the page where you type in desciption after upload.
If I press "continue" anyway Coppermine comes with:
--
The previous file could not be placed.

You have successfully placed all the files.
---

lamme
Title: Re: Error uploading using both GD and IM
Post by: No0dle on January 03, 2005, 04:32:23 PM
I've the same problem and i can't fix it xould somebody please help

Quote from: GauGau on August 22, 2004, 11:41:44 PM
try replacing $output = `$cmd 2>&1`;with//$output = `$cmd 2>&1`;in include/picmgmt.inc.php

GauGau

I've done that
But it doesn't work (it can't place pictures at all)
And I don't know how to do this

Quote from: GauGau on August 21, 2004, 10:22:30 PM
try enabling silly safe mode as suggested in the docs: http://coppermine.sourceforge.net/manual.php#safe

GauGau
Title: Re: Error uploading using both GD and IM
Post by: Joachim Müller on January 04, 2005, 06:24:27 AM
post your exact error message (not the debug output, just the error message you get). A link to your page and a test user account (non-admin) with upload privileges (and debug_mode for everyone enabled) might help as well.

Joachim