Solved: 8 Years, 1 Month, 4 Weeks ago Call to undefined function format_time_duration() and db_mysqli.php
#11
Solved: 8 Years, 1 Month, 4 Weeks ago
(2015-01-23, 10:09 PM)Euan T Wrote: Unfortunately, referrer isn't of a lot of use as there's no way of knowing exactly which page was the cause of the issue (especially in the case of the two Google referrers).

ok, I'll try matching up IPs & time from the error log to the access log later tonight.

ok, I matched up an error to an IP address & time:

IP Address - - [23/Jan/2015:23:38:58 +0000] "GET /images/shavenook/gallery/img/play-pause.svg HTTP/1.1" 200 706 "http://shavenook.com/thread-krampert-s-finest-acadian-spice-bay-rum-soap?utm_source=dlvr.it&utm_medium=twitter" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5"

IP Address - - [23/Jan/2015:23:38:58 +0000] "GET /images/shavenook/gallery/img/loading.gif HTTP/1.1" 200 4212 "http://shavenook.com/thread-krampert-s-finest-acadian-spice-bay-rum-soap?utm_source=dlvr.it&utm_medium=twitter" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5"

IP Address - - [23/Jan/2015:23:38:58 +0000] "GET /xthreads_attach.php/699_1422026052_74fa0cd4/7c0c6320e3f2b9c6705c110df28b042f/fe62b1d0dbb140c936e31506ce0d556c.jpg HTTP/1.1" 200 196185 "http://shavenook.com/thread-krampert-s-finest-acadian-spice-bay-rum-soap?utm_source=dlvr.it&utm_medium=twitter" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5"

IP Address - - [23/Jan/2015:23:38:58 +0000] "GET /xthreads_attach.php/698_1422026052_9161322c/e0d68dcf5620829a91c8d1f0c30416d3/dce77a2d077eddb25be32af8b8c5c674.jpg HTTP/1.1" 200 317585 "http://shavenook.com/thread-krampert-s-finest-acadian-spice-bay-rum-soap?utm_source=dlvr.it&utm_medium=twitter" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5"

from what I see, it might be a problem with xthreads.

matched up another one:

IP Address - - [24/Jan/2015:06:36:05 +0000] "GET /xthreads_attach.php/672_1415126940_8ee0dc3c/3f3f3f3f3f4c273f3f3f000000000000/Harris%20Shaving%20Cream%201.jpg HTTP/1.1" 200 295584 "-" "Googlebot-Image/1.0"

IP Address- - [24/Jan/2015:06:36:05 +0000] "GET /thread-my-humble-flock-of-brushes HTTP/1.1" 200 9468 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Reply
#12
Solved: 8 Years, 1 Month, 4 Weeks ago
Yep, definitely looks like it may be a problem with threads_attach.php. If you open that file, try adding the following after any other "require ..." lines at the top of the file:

require_once MYBB_ROOT . 'inc/functions.php';
Reply
#13
Solved: 8 Years, 1 Month, 4 Weeks ago
(2015-01-24, 12:26 PM)Euan T Wrote: Yep, definitely looks like it may be a problem with threads_attach.php. If you open that file, try adding the following after any other "require ..." lines at the top of the file:


require_once MYBB_ROOT . 'inc/functions.php';


thanks.

added.  I'll keep monitoring my logs for any errors relating to xthreads_attach.php after 3:55pm ET...if that fixed it up, I'll let zinga_burga know.

that added code to xthreads_attach.php did not fix the issue...I'm still seeing db_mysqli.php errors as I typed this message.
Reply
#14
Solved: 8 Years, 1 Month, 4 Weeks ago
zinga_burga supplied a fix here: http://mybbhacks.zingaburga.com/showthre...1#pid18141
Reply
#15
Solved: 8 Years, 1 Month, 4 Weeks ago
(2015-01-26, 08:23 PM)Shemo Wrote: zinga_burga supplied a fix here: http://mybbhacks.zingaburga.com/showthre...1#pid18141

Good good Smile
Reply
#16
Solved: 8 Years, 1 Month, 4 Weeks ago
Shemo, could you check on your server logs if you have these errors too?

[27-Mar-2015 12:33:41 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:37:24 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:38:49 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:42:21 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:42:59 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 12:43:00 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 12:47:19 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 12:48:00 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:54:07 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:55:07 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:56:10 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 12:57:18 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 12:58:48 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 12:59:18 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:13:13 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 13:13:14 UTC] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[27-Mar-2015 13:16:15 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:17:10 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:19:17 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:20:38 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:20:38 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:27:25 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:29:37 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12
[27-Mar-2015 13:32:58 UTC] PHP Fatal error:  Interface 'DB_Base' not found in /srv/users/serverpilot/apps/mysite/public/forum/inc/db_mysqli.php on line 12

Because I have always db_mysqli.php errors but not more about format_time_duration() but always about db_mysqli.php

And often my users have problems to send new threads on forum...


Xthreads is upgraded to 1.65 and I haven't more error about format_time_duration() but now about Interface 'DB_Base' Sad


In db_mysqli.php I have (the error is on the line 12):

[Image: wWJashO.png]



My configuration:

MyBB Version: 1.8.4
PHP Version: 5.6.6
SQL Engine MySQLi: 5.5.41
XThreads: 1.65

Thanks
Reply
#17
Solved: 8 Years, 1 Month, 4 Weeks ago
Is XThreads 1.65 the current version? There was an error with the new base interface, which was resolved fairly recently.
Reply
#18
Solved: 8 Years, 1 Month, 4 Weeks ago
Hi, yes, I have the latest version of xthreads 1.65..but I think it's always a problem with xthreads_attach.php Sad

But before I would like to know if it's only my problem (very possible) or also of other users, like Shemo.
Reply
#19
Solved: 8 Years, 1 Month, 4 Weeks ago
(2015-03-27, 02:07 PM)niere8 Wrote: Shemo, could you check on your server logs if you have these errors too?


snipped

Because I have always db_mysqli.php errors but not more about format_time_duration() but always about db_mysqli.php

And often my users have problems to send new threads on forum...


Xthreads is upgraded to 1.65 and I haven't more error about format_time_duration() but now about Interface 'DB_Base' Sad


In db_mysqli.php I have (the error is on the line 12):

[Image: wWJashO.png]



My configuration:

MyBB Version: 1.8.4
PHP Version: 5.6.6
SQL Engine MySQLi: 5.5.41
XThreads: 1.65

Thanks

no, I do not have any of those errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)