coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: miketmc on February 08, 2005, 10:18:08 AM

Title: get warning with function getmypid()!!
Post by: miketmc on February 08, 2005, 10:18:08 AM
when uploading a pic, I get this error-messges (sorry, working with german-version, but hope to get help):

Warning: Die Funktion getmypid(), welche dein Script nutze, wurde aus Sicherheitsgründen deaktiviert und kann nicht genutzt werden. in /usr/export/www/vhosts/funnetwork/hosting/kunstnetz/upload.php on line 501   ???

Warning: Die Funktion getmypid(), welche dein Script nutze, wurde aus Sicherheitsgründen deaktiviert und kann nicht genutzt werden. in /usr/export/www/vhosts/funnetwork/hosting/kunstnetz/upload.php on line 1186  ???

Thanks for help!
miketmc




Title: Re: get warning with function getmypid()!!
Post by: Hein Traag on February 08, 2005, 10:21:44 AM
Searching with part of your error does help you know  ;D

Searching with getmypid() gives some threads dealing with this problem
This one might be of help: http://forum.coppermine-gallery.net/index.php?topic=9476.0
Title: Re: get warning with function getmypid()!!
Post by: Tranz on February 08, 2005, 12:43:35 PM
You can switch to the english version to get the english version of the error message. That way you can search for the error message in these forums.
Title: Re: get warning with function getmypid()!!
Post by: miketmc on February 09, 2005, 07:31:49 PM
ok, have asked my homepage-hoster!!

They will noct allow this command (security-reasons, they say)

Is there any problem with my gallery, when I get these error-messages, or can I ignore?

-miketmc
Title: Re: get warning with function getmypid()!!
Post by: Nibbler on February 10, 2005, 07:08:45 PM
Read the sticky (http://forum.coppermine-gallery.net/index.php?topic=10466.0).
Title: Re: get warning with function getmypid()!!
Post by: miketmc on February 11, 2005, 11:25:17 AM
thanks, that the solution:

simply change the code in all occurences as described in upload.php and image_processor.php


substr(md5(microtime().getmypid()), 0, 8);becomes

substr(md5(uniqid("")), 0, 8);

-miketmc