MyBB Community Forums

Full Version: Error log
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have the following error log in my home directory.
Does any error need to be fixed?
Can any suggest to me any solution for the error?
Thank you.

<error>
	<dateline>1595964840</dateline>
	<script>mydownloads.php</script>
	<line>2745</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Use of undefined constant  true - assumed ' true' (this will throw an Error in a future version of PHP)</message>
	<back_trace>#0  errorHandler->error() called at [/mydownloads.php:2745]
</back_trace>
</error>

<error>
	<dateline>1595964846</dateline>
	<script>mydownloads.php</script>
	<line>3161</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Use of undefined constant INPUT_INT - assumed 'INPUT_INT' (this will throw an Error in a future version of PHP)</message>
	<back_trace>#0  errorHandler->error() called at [/mydownloads.php:3161]
</back_trace>
</error>


<error>
	<dateline>1598107151</dateline>
	<script>mydownloads.php</script>
	<line>3226</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Use of undefined constant INPUT_INT - assumed 'INPUT_INT' (this will throw an Error in a future version of PHP)</message>
	<back_trace>#0  errorHandler->error() called at [/mydownloads.php:3226]
</back_trace>
</error>


<error>
	<dateline>1598107151</dateline>
	<script>mydownloads.php</script>
	<line>3244</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Use of undefined constant  true - assumed ' true' (this will throw an Error in a future version of PHP)</message>
	<back_trace>#0  errorHandler->error() called at [/mydownloads.php:3244]
</back_trace>
</error>


<error>
	<dateline>1598107151</dateline>
	<script>mydownloads.php</script>
	<line>3346</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Use of undefined constant INPUT_INT - assumed 'INPUT_INT' (this will throw an Error in a future version of PHP)</message>
	<back_trace>#0  errorHandler->error() called at [/mydownloads.php:3346]
</back_trace>
</error>


<error>
	<dateline>1599550681</dateline>
	<script>inc/plugins/flyover.php</script>
	<line>585</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>require_once(/home1/xxxxxx/public_html/inc/plugins/Flyover/class_core.php): failed to open stream: No such file or directory</message>
	<back_trace>#0  errorHandler->error() called at [/inc/plugins/flyover.php:585]
#1  require_once() called at [/inc/plugins/flyover.php:585]
#2  flyover_pre_output_page() called at [/inc/class_plugins.php:142]
#3  pluginSystem->run_hooks() called at [/inc/functions.php:24]
#4  output_page() called at [/inc/functions.php:840]
#5  error() called at [/inc/functions.php:956]
#6  error_no_permission() called at [/showthread.php:163]
</back_trace>
</error>


<error>
	<dateline>1601212369</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 2006 - MySQL server has gone away
Query: UPDATE mybb_users SET lastactive='1601212369', timeonline=timeonline+14 WHERE uid='1234'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/functions.php:227]
#4  run_shutdown() called at [[PHP]: ]
</back_trace>
</error>


<error>
	<dateline>1603095987</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 1062 - Duplicate entry 'hashimoto' for key 'username'
Query: 
			INSERT
			INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`,`avatardimensions`)
			VALUES ('hashimoto','fghf5hfghd40aac1hfdd5675c6979d6767b42e6e6372b','SJc5M62X','fhfhtf3zefghfhALy4GUuSOrryyhfd6HOInOK0rmdTdbaed6OMC70GhtHd72Vk4','[email protected]',0,0,'https://ui-avatars.com/api/?name=hashimoto&size=100&background=190a91&color=fff&length=2&rounded=true','remote',5,'',0,'',1603095987,1603095987,1603095987,'',0,'','','9-1-2000','',1,0,2,1,0,1,0,1,1,1,1,1,1,0,0,0,0,'5.5',2,'',0,'','',X'31229829','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,0,'','100|100')
		</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>


<error>
	<dateline>1603651741</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 2006 - MySQL server has gone away
Query: UPDATE mybb_users SET lastactive='1603651741', timeonline=timeonline+15 WHERE uid='2345'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/functions.php:227]
#4  run_shutdown() called at [[PHP]: ]
</back_trace>
</error>



<error>
	<dateline>1610973035</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 2006 - MySQL server has gone away
Query: UPDATE mybb_users SET lastvisit='1609911918', lastactive='1610973035', lastip=X'743acb1e' WHERE uid='4567'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/functions.php:227]
#4  run_shutdown() called at [[PHP]: ]
</back_trace>
</error>


<error>
	<dateline>1614107184</dateline>
	<script>bankpipe/Items/Orders.php</script>
	<line>266</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>array_merge(): Expected parameter 1 to be an array, null given</message>
	<back_trace>#0  errorHandler->error() called at [[PHP]: ]
#1  array_merge() called at [/bankpipe/Items/Orders.php:266]
#2  BankPipe\Items\Orders->update() called at [/bankpipe/Core.php:311]
#3  BankPipe\Core->complete() called at [/bankpipe/Gateway/PayPal.php:43]
#4  BankPipe\Gateway\PayPal->complete() called at [/bankpipe.php:208]
</back_trace>
</error>


<error>
	<dateline>1614107184</dateline>
	<script>bankpipe/Items/Orders.php</script>
	<line>266</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>array_merge(): Expected parameter 1 to be an array, null given</message>
	<back_trace>#0  errorHandler->error() called at [[PHP]: ]
#1  array_merge() called at [/bankpipe/Items/Orders.php:266]
#2  BankPipe\Items\Orders->update() called at [/bankpipe/Gateway/PayPal.php:114]
#3  BankPipe\Gateway\PayPal->complete() called at [/bankpipe.php:208]
</back_trace>
</error>


<error>
	<dateline>1614744258</dateline>
	<script>inc/plugins/symposium.php</script>
	<line>1585</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Illegal string offset 'uid'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/plugins/symposium.php:1585]
#1  symposium_xmlhttp_get_users_end() called at [/inc/class_plugins.php:142]
#2  pluginSystem->run_hooks() called at [/xmlhttp.php:284]
</back_trace>
</error>


<error>
	<dateline>1614744258</dateline>
	<script>inc/plugins/symposium.php</script>
	<line>1586</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Illegal string offset 'uid'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/plugins/symposium.php:1586]
#1  symposium_xmlhttp_get_users_end() called at [/inc/class_plugins.php:142]
#2  pluginSystem->run_hooks() called at [/xmlhttp.php:284]
</back_trace>
</error>


<error>
	<dateline>1614744258</dateline>
	<script>inc/plugins/symposium.php</script>
	<line>1587</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Illegal string offset 'uid'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/plugins/symposium.php:1587]
#1  symposium_xmlhttp_get_users_end() called at [/inc/class_plugins.php:142]
#2  pluginSystem->run_hooks() called at [/xmlhttp.php:284]
</back_trace>
</error>


<error>
	<dateline>1620126493</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 1062 - Duplicate entry 'akl' for key 'username'
Query: 
			INSERT
			INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`,`avatardimensions`)
			VALUES ('akl','feae67cjgg71fa0a69afb7e5dfdgdhh05e4c6ac','x8wLQg10','rytuyufncCNfgwEzZ9hlAtMO1ujgdfghfdhhrhhlAzIlqBhoI6OZ7H52LxnpxVPtx6o','[email protected]',0,0,'https://ui-avatars.com/api/?name=Akl&size=100&background=70930d&color=fff&length=2&rounded=true','remote',5,'',0,'',1620126493,1620126493,1620126493,'',0,'','','3-7-1998','',1,1,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0,'5.5',2,'',0,'','',X'c5c0a171','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,1,'','100|100')
		</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>

<error>
	<dateline>1629449571</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 2006 - MySQL server has gone away
Query: UPDATE mybb_users SET lastactive='1629449571', timeonline=timeonline+10 WHERE uid='1'</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/functions.php:227]
#4  run_shutdown() called at [[PHP]: ]
</back_trace>
</error>



<error>
	<dateline>1637587998</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')  AND t.fid NOT IN ('4','15','162','233','255','5','6','251','240','16','18','1' at line 6
Query: 
	SELECT t.*, u.username AS userusername, u.usergroup, u.displaygroup, lp.usergroup AS lastusergroup, lp.displaygroup as lastdisplaygroup, p.visible
	FROM mybb_threads t
	LEFT JOIN mybb_users u ON (u.uid=t.uid)
	LEFT JOIN mybb_users lp ON (t.lastposteruid=lp.uid)
	LEFT JOIN mybb_posts p ON (t.tid=p.tid AND replyto = 0)
	WHERE 1=1  AND t.fid NOT IN(5,6,233,234,235,240,251,)  AND t.fid NOT IN ('4','15','162','233','255','5','6','251','240','16','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','244','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','249','250','245','168','234','235') AND t.fid NOT IN (162) AND t.fid <> 4 AND t.fid <> 5 AND t.fid <> 6 AND t.fid <> 8 AND t.fid <> 15 AND t.fid <> 16 AND t.fid <> 163 AND t.fid <> 164 AND t.fid <> 170 AND t.fid <> 233 AND t.fid <> 234 AND t.fid <> 235 AND t.fid <> 240 AND t.fid <> 251 AND t.fid <> 255 AND p.visible <> -1
	ORDER BY t.lastpost DESC
	LIMIT 6
	</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/plugins/latestposts.php:240]
#3  latestposts() called at [/inc/class_plugins.php:142]
#4  pluginSystem->run_hooks() called at [/index.php:430]
</back_trace>
</error>




<error>
	<dateline>1637588013</dateline>
	<script></script>
	<line>0</line>
	<type>20</type>
	<friendly_type>MyBB SQL Error</friendly_type>
	<message>SQL Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')  AND t.fid NOT IN ('162') AND t.fid NOT IN (162) AND p.visible <> -1
	ORDER B' at line 6
Query: 
	SELECT t.*, u.username AS userusername, u.usergroup, u.displaygroup, lp.usergroup AS lastusergroup, lp.displaygroup as lastdisplaygroup, p.visible
	FROM mybb_threads t
	LEFT JOIN mybb_users u ON (u.uid=t.uid)
	LEFT JOIN mybb_users lp ON (t.lastposteruid=lp.uid)
	LEFT JOIN mybb_posts p ON (t.tid=p.tid AND replyto = 0)
	WHERE 1=1  AND t.fid NOT IN(5,6,233,234,235,240,251,)  AND t.fid NOT IN ('162') AND t.fid NOT IN (162) AND p.visible <> -1
	ORDER BY t.lastpost DESC
	LIMIT 6
	</message>
	<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/plugins/latestposts.php:240]
#3  latestposts() called at [/inc/class_plugins.php:142]
#4  pluginSystem->run_hooks() called at [/index.php:430]
</back_trace>
</error>


There are many <dateline>1603095987</dateline> like error with different number but same error content. I deleted them from the above given log.
Thats weird because (for 1st error) line 2745 is $preview = "preview_".$mybb->user['uid']."_".TIME_NOW."_".md5(uniqid(rand(), true)).".".get_extension($preview); so the error seems to be on uniqid(rand(), true). true is a built-in constant in PHP.

Can you confirm your line is the same as the one I gave ? Which version of PHP do you use ?
Yes...All give lines are confirmed.
PHP 7.3.8
Any solution for any error???
Please guide.
Thank you.
Try downloading the plugin again and overwrite the files
I just tested MyDownloads (3.0.2) on my forum (MyBB 1.8.27 / PHP 7.3.29) , I haven't any error.
So, I agree with chack1172, re-up the plugin files
(2021-11-27, 05:12 PM)Crazycat Wrote: [ -> ]Thats weird because (for 1st error) line 2745 is $preview = "preview_".$mybb->user['uid']."_".TIME_NOW."_".md5(uniqid(rand(), true)).".".get_extension($preview); so the error seems to be on uniqid(rand(), true). true is a built-in constant in PHP.

Can you confirm your line is the same as the one I gave ? Which version of PHP do you use ?

Anything to be required to fix this error?

If I overwrite the plugin file then all data related to the plugin will be lost.

Any comment regarding other errors.
Uploading the plugin again won't do anything to the data as long as you don't uninstall the plugin first, the data is not stored in the files.
Thanks. I will copy error log file and delete it from server.
Let see what error log comes after upgrade to 1.8.29 and overwrite few plugins.
Even after reuploading Mydownloads to 3.0.2 plugin below error seen:

Whenever I create mydownload then this error comes every time.

File: mydownloads.php (Line no. 2739)
Message
Use of undefined constant  true - assumed ' true' (this will throw an Error in a future version of PHP)
Back Trace: #0 errorHandler->email_error(2, Use of undefined constant  true - assumed ' true' (this will throw an Error in a future version of PHP), mydownloads.php, 2739) called at [/abc/xxxx/public_html/inc/class_error.php:195]
#1 errorHandler->error(2, Use of undefined constant  true - assumed ' true' (this will throw an Error in a future version of PHP), mydownloads.php, 2739, Array ([_GET] => Array ([action] => submit_download),[_POST] => Array ([postcode] => b6b6f62e0ccbecedc2b38a3bd4c2cc25,[name] => ECG 6th Edition,[description] => [align=center][color=#336633][size=x-large][b]ECG 6th Edition[/b][/size][/color][/align

Any idea, How to fix it?