View previous topic :: View next topic |
Author |
Message |
sdjl
Moderator
Joined: 17 Nov 2003
Posts: 734
Location: London, UK
|
Posted: Tue Dec 30, 2003 1:43 pm Post subject: functions.lib.php on line 1101
|
|
|
Now although this error has been fixed, this still appears to be happening quite frequently to users.
There are a number of ways to fix this error, each detailed below:
Quick fix for Admin3.php
Open up admin/admin3.php
Just before:
PHP: |
$custtotal = get_totalrows('tbl_userlog'); |
Place:
PHP: |
$tbl_userlog = PPHL_TBL_USERLOG; |
CVS fix
This problem has been fixed in CVS, so if you don't wish to manually edit files download the CVS snapshot (updated daily): CVS Snapshot
Edit files
You can manually edit the files by applying the changes below:
Code: |
=====================================================================
SUMMARY
C pphlogger/libraries/functions.lib.php 1.111 -> 1.112 Sun, 30 Nov 2003 12:53:15 +0100
C pphlogger/dspLogs.php 1.29 -> 1.30 Sun, 30 Nov 2003 12:53:16 +0100
C pphlogger/dspBrowserOs.php 1.21 -> 1.22 Sun, 30 Nov 2003 12:53:16 +0100
C pphlogger/admin/admin3.php 1.16 -> 1.17 Sun, 30 Nov 2003 12:53:16 +0100
=====================================================================
C pphlogger/libraries/functions.lib.php 1.111 -> 1.112 Sun, 30 Nov 2003 12:53:15 +0100
1097,1098c1097
< global $$table;
< $sql = "SELECT count(*) AS total FROM ".$$table;
---
> $sql = "SELECT count(*) AS total FROM ".$table;
=====================================================================
C pphlogger/dspLogs.php 1.29 -> 1.30 Sun, 30 Nov 2003 12:53:16 +0100
52c52
< $logtotal = get_totalrows('tbl_logs');
---
> $logtotal = get_totalrows($tbl_logs);
=====================================================================
C pphlogger/dspBrowserOs.php 1.21 -> 1.22 Sun, 30 Nov 2003 12:53:16 +0100
37c37
< $logtotal = get_totalrows('tbl_logs',$logs_from,$logs_to);
---
> $logtotal = get_totalrows($tbl_logs,$logs_from,$logs_to);
39c39
< $logtotal = get_totalrows('tbl_logs');
---
> $logtotal = get_totalrows($tbl_logs);
=====================================================================
C pphlogger/admin/admin3.php 1.16 -> 1.17 Sun, 30 Nov 2003 12:53:16 +0100
52c52
< $custtotal = get_totalrows('tbl_userlog');
---
> $custtotal = get_totalrows(PPHL_TBL_USERLOG);
|
These fixes were all taken from the following post:
https://phpee.com/forum/viewtopic.php?t=2554&highlight=1101
David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
|
|
Back to top |
|
|
V@no
Joined: 15 Nov 2003
Posts: 157
|
Posted: Tue Dec 30, 2003 9:09 pm Post subject:
|
|
|
I think its better use [code] [/code] bbcode tags instead of [php] [/php]...they add extra witch may be confused to someone.
_________________
|
|
Back to top |
|
|
sdjl
Moderator
Joined: 17 Nov 2003
Posts: 734
Location: London, UK
|
Posted: Wed Dec 31, 2003 2:37 pm Post subject:
|
|
|
I'll speak to pipo about that. There should be a PHP code option that doesn't add the extra tags.
Edit:
The hack i use on my forums appears to not add the extra tags in so i've asked pipo nicely if he'll change the hack that he uses
David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
|
|
Back to top |
|
|
pipo
Site Admin
Joined: 15 Nov 2003
Posts: 761
Location: Zurich, Switzerland
|
Posted: Fri Jan 02, 2004 3:39 pm Post subject:
|
|
|
ok, done. [php] [/php] does no longer add extra tags.
Happy New Year!
_________________
Philip Iezzi - Development Team Leader, phpee.com
PHPee.com | Downloads | PPhlogger | CVS
|
|
Back to top |
|
|
chinni
Joined: 08 Jul 2004
Posts: 6
|
Posted: Thu Jul 08, 2004 2:20 pm Post subject: help please
|
|
|
oki i have make this, now i have this error:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /var/www/web1/html/4images/pphlogger/libraries/functions.lib.php on line 1100
and now? can you help me. thank you
best regards
chinni
|
|
Back to top |
|
|
sdjl
Moderator
Joined: 17 Nov 2003
Posts: 734
Location: London, UK
|
|
Back to top |
|
|
chinni
Joined: 08 Jul 2004
Posts: 6
|
Posted: Thu Jul 08, 2004 3:58 pm Post subject: hi
|
|
|
thank you for your reply:-)
oki i have this error on page:
pphlogger/dspLogs.php
when i click in the panel of logs
thank you for your time.
best regards
chinni
|
|
Back to top |
|
|
sdjl
Moderator
Joined: 17 Nov 2003
Posts: 734
Location: London, UK
|
Posted: Thu Jul 08, 2004 5:57 pm Post subject:
|
|
|
Do you have any logs in the database for the account this happens on?
David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
|
|
Back to top |
|
|
chinni
Joined: 08 Jul 2004
Posts: 6
|
Posted: Thu Jul 08, 2004 6:06 pm Post subject: hi
|
|
|
no i see no.
best regards
chinn
|
|
Back to top |
|
|
chinni
Joined: 08 Jul 2004
Posts: 6
|
Posted: Thu Jul 08, 2004 6:08 pm Post subject: re
|
|
|
this is me dspLogs.php file
EDIT
There's not need to post the code, all versions should be the same.
see you a error?
best regards
chinni
|
|
Back to top |
|
|
chinni
Joined: 08 Jul 2004
Posts: 6
|
Posted: Thu Jul 08, 2004 6:22 pm Post subject: and
|
|
|
this is me functions.lib.php:
EDIT
As i said above, there's no need to post so much code seeing as it is freely available for download.
best regards
chinni
|
|
Back to top |
|
|
sdjl
Moderator
Joined: 17 Nov 2003
Posts: 734
Location: London, UK
|
Posted: Thu Jul 08, 2004 11:44 pm Post subject:
|
|
|
Please open a new support thread as your problem doesn't relate to the one that this thread is about.
Thanks,
David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
|
|
Back to top |
|
|
|