upgrade 1.4.3 > 1.4.9 and debug mode

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

solutionsphp
Posts: 3
Joined: Thu Jun 30, 2005 5:11 am
Location: Denman Island, BC, Canada

upgrade 1.4.3 > 1.4.9 and debug mode

Post by solutionsphp »

Hello--

I have just upgraded 1.4.3 to 1.4.9 and it went nice and smooth. Thank you for responding so quickly to the xmlrpc issue!

Everything apepars to be running fine with my newly upgraded FAQ. Only one thing seems off: even though I have debug turned off:

Code: Select all

define("DEBUG", FALSE);

if (DEBUG == TRUE) {
	error_reporting(E_ALL);
	}
I am still getting debug messages on the admin side and the public side of the forum, like this one:
DEBUG INFORMATION:

DELETE FROM faqadminsessions WHERE time < '1120102808'
SELECT usr, pass FROM faqadminsessions WHERE UIN='39e4984972269e60e4aadea5ba745d50' AND ip = '216.86.98.142'
UPDATE faqadminsessions SET time = '1120104608' WHERE uin = '39e4984972269e60e4aadea5ba745d50'
SELECT id, name, realname, email, pass, rights FROM faquser WHERE name = 'admin' AND pass = 'd4b4ed4571d7e54c6c29a153693d73cf'
DELETE FROM faqadminsessions WHERE uin = '39e4984972269e60e4aadea5ba745d50'
Any idea about how I can have this remedied? Or, is this indicating some sort of problem I'm not identifying?

cheers
SAM :)
Sam Stevens, solutions_PHP
Open source? Of course!
http://www.solutionsphp.com/
http://www.phpdirectory.com/
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Sam,

I'll have to check this!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

there should be only debug messages in the admin section, because there is a define("DEBUG", TRUE); ... but not so in the public frontend.

I'll change the packages as soon as possible.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

upgrade from 1.4.8 to 1.4.9

Post by palsign »

Hello

I have have upgrade from 1.4.8 to 1.4.9 as following:

removed from server all files and replaces all files from zip1.4.9 release except from data.php and config.php and in browser i have following message:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

in >> /inc/functions.php on line 857

and 857 line is:

$output .= "<li><strong>".$rubriktext."</strong>: <a href=../../new/Data_Bank/inc/\%22%22.$_SERVER[%22PHP_SELF%22].%22?".$sids."action=artikel&cat=".$rubrik."&id=".$id."&artlang=".$lang."&highlight=".$begriff."\">".stripslashes($thema)."...</a><br /><div style=\"font-size: 10px;\"><strong>".$PMF_LANG["msgSearchContent"]."</strong> ".stripslashes($content)."...</div><br /></li>\n";


pls help me
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the code is:

Code: Select all

$output .= "<li><strong>".$rubriktext."</strong>: <a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$rubrik."&id=".$id."&artlang=".$lang."&highlight=".$begriff."\">".stripslashes($thema)."...</a><br /><div style=\"font-size: 10px;\"><strong>".$PMF_LANG["msgSearchContent"]."</strong> ".stripslashes($content)."...</div><br /></li>\n";
I don't know why you're having this malformed code there.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

Thanks

Post by palsign »

it is working now...

but now when i want to make a back up following appears in the backip file:

# pmf: englishfaqchanges englishfaqnews englishfaqcategories englishfaqvoting englishfaqdata englishfaqcomments englishfaquser englishfaqvisits englishfaqfragen
# DO NOT REMOVE THE FIRST LINE!
# otherwise this backup will be broken
#
# Table: englishfaqchanges

it was working before..

i dnt know why..
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

these first lines in the backup file are okay!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

Thanks

Post by palsign »

when i download backup file i have only tables struture :

some lines like:

INSERT INTO englishfaqchanges (id,beitrag,lang,usr,datum,what) VALUES ('75','52','','2','1121005474','');


and no data else.. there is no title or questions answer or what ever..
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

are there some faqdata inserts in the file?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

Post by palsign »

Now I have following debug information at loging page and all pages when I login.

------------------------

DEBUG INFORMATION:

DELETE FROM frenchfaqadminsessions WHERE time < '1121266005'
SELECT id, name, realname, email, pass, rights FROM frenchfaquser WHERE name = 'admin' AND pass = 'a4c1ef8e789cc92dab351a648b369a23'
INSERT INTO frenchfaqadminlog (id, time, usr, text, ip) VALUES ('','1121267805','','Loginerror
Login: admin
Pass: a4c1ef8e789cc92dab351a648b369a23','ip')

----------------------------------

And i have made another installtion with with another prefix but it is unable to login at all!!
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which version do you use and what did you exactly?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

Post by palsign »

when i upgrade from 1.4.8 to 1.4.9 and I have made another fresh installation for v. 1.4.9

and still have same debug problem !
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I know and you have to disable it like described in this thread.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
palsign
Posts: 7
Joined: Tue Jul 12, 2005 6:07 pm

Post by palsign »

You have asked me following:

======================
Hi,

are there some faqdata inserts in the file?

bye
Thorsten
==================

answer is NO

there is no data in back up
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay... really strange, it works for me on my test system. I'll check it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply