TinyPortal

Development => Support => Topic started by: envon on October 07, 2005, 06:54:51 PM

Title: error report
Post by: envon on October 07, 2005, 06:54:51 PM
Bloc these are some errors I found in the error log. Just passing them on as I am not seeing any problems in the functioning of the site at this time.  I have RC1 and tp.73
Mr. E October 07, 2005, 10:46:09 AM
24.19.83.156  39299bdfe27c7fa02cdce5987402ff73
http://www.mretattoo.com/forum2/index.php?action=login

8: Use of undefined constant imagewidth - assumed 'imagewidth'
File: /home/vongr2/public_html/forum2/Themes/default/TPortalBlocks.template.php (eval?)
Line: 4


Mr. E October 07, 2005, 10:46:19 AM
24.19.83.156  39299bdfe27c7fa02cdce5987402ff73
http://www.mretattoo.com/forum2/index.php

8: Undefined index: QUERY_STRING
File: /home/vongr2/public_html/forum2/Sources/TPortal.php
Line: 65


I am getting alot of these, something like 400+pages of them with the line 65 error happening about once for every 13-15 line 4 errors.
Title: Re: error report
Post by: IchBin on October 07, 2005, 07:18:57 PM
You should update to TP074 to make and see if any errors are fixed.
Title: Re: error report
Post by: bloc on October 07, 2005, 07:20:15 PM
It seems the $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'] are not defined....

Does changing the lines around 65 on TPortal.php, the one that read:
        // get the action
        $context['TPortal']['querystring']=$GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];

to
        // get the action
        $context['TPortal']['querystring']=$_SERVER['QUERY_STRING'];


..change anything?
Title: Re: error report
Post by: envon on October 07, 2005, 08:40:48 PM
Made that change and I got this error with no load of the page.Parse error: parse error, unexpected T_STRING in /home/vongr2/public_html/forum2/Sources/TPortal.php on line 65

I am putting the line back to orginal.
Title: Re: error report
Post by: envon on October 07, 2005, 08:45:01 PM
I put line back to what you have in the first line of code and still get Parse error: parse error, unexpected T_STRING in /home/vongr2/public_html/forum2/Sources/TPortal.php on line 64

wich is wierd as line 64 is a comment.
Title: Re: error report
Post by: bloc on October 08, 2005, 12:48:55 PM
This is what line 64-65 should read:

    // get the action
        $context['TPortal']['querystring']=$GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];
     
Title: Re: error report
Post by: envon on October 08, 2005, 07:06:18 PM
Im still getting the same error for some reason. Is it ok to just reupload the original file from your packet.
Title: Re: error report
Post by: IchBin on October 08, 2005, 11:29:00 PM
Yes it OK to replace the file.