Cannot redeclare cpggetmicrotime() - I may have solved one of the problems Cannot redeclare cpggetmicrotime() - I may have solved one of the problems
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Cannot redeclare cpggetmicrotime() - I may have solved one of the problems

Started by custommadename, May 12, 2008, 10:48:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

custommadename

I've been working with Coppermine for a while with other sites, but I've never encountered any help.  Just joined to see what's up.  I really enjoy CM.  Thanks for this awesome gallery! :D

Under Theme Settings, I tried putting in a custom header.  It failed, and that's when I got the cpggetmicrotime() error message.  As soon as I took those out and made them blanks, everything was fine again.  I assume that when a custom header is made incorrectly, or maybe even a custom footer, this problem comes up.  cpggetmicrotime is all over the place in a couple .php files, and I haven't yet found out what the connection is.

I didn't see much about this in the threads that came up in searches, so I guessed I should post something.  I have 1.4.16 installed.  The rest of this post assumes you know at least basic HTML to the extent that you can type out in HTML how you want your custom header and footer to look.

In the template.html file, which is at
/*Coppermine installation directory*/themes/*theme name*/template.html,
there are these two bits of text:
{CUSTOM_HEADER}
and
{CUSTOM_FOOTER}

I deleted those.  If you need to save your place, either make a backup or type
<!-- Custom section beginning -->
before your input and
<!-- Custom section end -->
after your input.  If you make a mistake, you can always delete those two lines and all the text between them and type out CUSTOM_... again in the { } brackets.

Within those Custom section brackets, you can use HTML to make custom headers and footers without interfering with cpggetmicrotime().  These sections are all the way at the top and bottom, above and below the original white table that holds all the Coppermine goods.  You can even type basic text, and it'll appear in the gray area.

The main reason I'm posting this is that nearly anything I type into the custom header field in the Admin's configuration panel makes the cpggetmicrotime error come up.  I believe that a lot of the posts about this error may be solved by the removal of custom headers and footers.  If this has been figured out before, sorry I missed it.  Thanks a lot for reading so far!  I hope to see you around.  :D

Nibbler