The forum is temporarily disabled whilst we move to a new server. Please check back on 1st May.

 
This Forum is Currently Locked – Access is Read Only
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Cannot redeclare tng_header

No Status Selected
UserPost

2:53 pm
13 March, 2009


James L. Thayer

New Member

posts 1

Hi Mark,
Wow, what an impressive work of programming you have contributed! Thank you so much! Virtually everything works now for me except when I enable the integrated log in, I get this message when logging in from either side: "Fatal error: Cannot redeclare tng_header() (previously declared in /home/jlxxxe1/tng/genlib.php:44) in /home/jlxxxe1/tng/genlib.php on line 106" . The login does work on both WP and TNG – I just have the error message to back out of.
Regards,
Jim

6:41 pm
13 July, 2010


tmcconnon

New Member

posts 1

I had this problem too, and figured out how to fix it!!

I started with a suggestion from this article: http://www.phpfreaks.com/tutor…..-only-once

So first I went to line 44 of the genlib.php file and found the line:

function tng_header( $title, $flags ) {

and before it I added

if(!function_exists('tng_header')){

then added a } at the end of the function to close that new "if statement."

Then I repeated that step for every other function in the file (you have to). If anyone wants me to send the corrected genlib.php file. Drop me a comment on any post of http://www.tommcconnon.com. (I know the blog currently looks outdated, but I'll get it). Laugh

No Status Selected

About the Ephesians 4:14 Forum

Forum Timezone: Europe/London

Most Users Ever Online: 30

Forum Stats:

Groups: 1
Forums: 6
Topics: 698
Posts: 2736

Recent New Members: Arthur Palmer, mlward, Bishoplowe, rseeley, jteal, dannys