forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: rebro on July 28, 2010, 11:59:29 am

Title: Plugin FastEdit v11
Post by: rebro on July 28, 2010, 11:59:29 am
Hello *,

i've installed the FastEdit Plugin. Whenever I try to change a keyword nothing happens.
As Administrator I get the following error message

Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /var/www/coppermine/include/init.inc.php:27) in /var/www/coppermine/include/init.inc.php on line 29

The lines in init.inc.php are:
Code: [Select]
25:    function cpgGetMicroTime()
26:    {
27:        list($usec, $sec) = explode(' ', microtime());
28:        return ((float)$usec + (float)$sec);
29:    }

Any idea whats wrong?

Unortunaly the gallery is offline, so I can't give you access.
If you need any other sites please ask.

greets
rebro
Title: Re: Plugin FastEdit v11
Post by: Αndré on July 28, 2010, 08:11:49 pm
I assume that you're using a plugin that was designed for cpg1.4.x and has to ported to cpg1.5.x before you can use it.
Title: Re: Plugin FastEdit v11
Post by: rebro on July 29, 2010, 08:50:39 am
Hi André,

thanks for your reply.
Is there a manual page how to port a plugin from 1.4.x to 1.5.x?

greets
rebro
Title: Re: Plugin FastEdit v11
Post by: Αndré on July 29, 2010, 09:57:14 am
The main difference between cpg1.4.x and cpg1.5.x is the use of Inspekt. Please have a look here (http://documentation.coppermine-gallery.net/en/dev_superglobals.htm). Maybe it's also useful to read the plugin development docs (http://documentation.coppermine-gallery.net/en/dev_plugins.htm).
Title: Re: Plugin FastEdit v11
Post by: rebro on July 30, 2010, 12:23:14 pm
Thanks, i'll have a look at it.