Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] Timeline
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Total Donators
Total:
$0.00
Goal:
$30.00
Difference:
$30.00
DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Whos Been
 
DFG
 coRpSE
 11 mins ago
 EmeraldDragon
 49 mins ago
 PatPgtips
 15 hours ago
 fire
 20 hours ago
 bairdboy
 1 day ago
 Lonestar
 1 day ago
 Bulldog1
 1 day ago
 TheGhost
 2 days ago
 Grmm
 2 days ago
 2xTaz
 4 days ago
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 1528
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [2623] bots stopped!
HeadShotDomain
DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 

[SOLVED] Error log lodger
Goto page 1, 2, 3  Next
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index Nuke Blocks / Modules Support
View previous topic View next topic
PostPosted: Wed Sep 19, 2018 6:57 am Reply with quote
lasermail
I have been trying in vain to track down the cause and subsequent fix for an error on my site for sometime...my Error log is spammed daily with

PHP Warning:  preg_replace_callback(): Requires argument 2, 'Array', to be a valid callback in /home/xxxxxx/public_html/includes/classes/class.identify.php on line 182

Line 182 reads preg_replace_callback($pattern, $replacement, $agent);

Can anyone suggest a suitable fix?

NOOB!!!

Groups NOOB!!!
Posts 24
Joined Sep 07, 2018
Status Offline
View user's profile Send lasermail a private message Find all posts by lasermail

PostPosted: Wed Sep 19, 2018 12:18 pm Reply with quote
coRpSE
Can you pack your file into a .zip or a .rar and attach the file you have to a post here so I can see it better. I am guessing that it's a file that lonestar pushed out for its a PHP 7.x fix.


Expand

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2452
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

PostPosted: Thu Sep 20, 2018 12:41 am Reply with quote
lasermail
As requested


 

NOOB!!!

Groups NOOB!!!
Posts 24
Joined Sep 07, 2018
Status Offline
View user's profile Send lasermail a private message Find all posts by lasermail

 
PostPosted: Thu Sep 20, 2018 12:20 pm Reply with quote
coRpSE
Okay, did you modify this file or did you download this from somewhere?


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2452
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

PostPosted: Fri Sep 21, 2018 12:32 am Reply with quote
lasermail
— coRpSE wrote
Okay, did you modify this file or did you download this from somewhere?


Must admit when I looked at it I thought, that does not look like a file lonestar edited, too old. I have not modified it as far as I know. My website is using 2.0.9d files, updated from 2.0.7 and that might too have been an update of an earlier version? I have installed a few bits and pieces since, some of them claimed fixes for errors. I might have fixed one thing to break another? My server hosts too have dabbled about on the site from time to time. Other than that I would say, when migrating thousands of files via FTP (using FileZilla and it is one of the better ones) things do not always go to plan.

If the version of class.identify.php I am using is out of date, corrupt or an unknown import, I guess I should simply obtain a new one and try it?


 

NOOB!!!

Groups NOOB!!!
Posts 24
Joined Sep 07, 2018
Status Offline
View user's profile Send lasermail a private message Find all posts by lasermail

PostPosted: Fri Sep 21, 2018 9:55 am Reply with quote
coRpSE
Well, it looks like that was edited for PHP7, but not correctly. What version of PHP are you using on your site? If your running PHP 5.6, then I would grab a new class.identify.php from the download and add that to your site. If your on PHP7, then I will get you a working file.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2452
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

 
PostPosted: Fri Sep 21, 2018 12:27 pm Reply with quote
lasermail
— coRpSE wrote
Well, it looks like that was edited for PHP7, but not correctly. What version of PHP are you using on your site? If your running PHP 5.6, then I would grab a new class.identify.php from the download and add that to your site. If your on PHP7, then I will get you a working file.


If I check on my hosts cpanel PHP Version reads 5.6.37
If I check on Nuke Evo system info panel it reads as PHP Version 5.5.38

I will guess I am using 5.6 and at least not PHP 7 and so try the version in your download. I will update the thread with the result in due course.


 

NOOB!!!

Groups NOOB!!!
Posts 24
Joined Sep 07, 2018
Status Offline
View user's profile Send lasermail a private message Find all posts by lasermail

PostPosted: Fri Sep 21, 2018 12:40 pm Reply with quote
lasermail
Okay did a quick backup of the current mystery file, installed the one in your current download instant white screen 500 error.

HP Fatal error:  Class 'DBException' not found in /home/xxxxx/public_html/includes/db/mysql.php on line 251

Restored with the backup.

CENSORED!!!


 

NOOB!!!

Groups NOOB!!!
Posts 24
Joined Sep 07, 2018
Status Offline
View user's profile Send lasermail a private message Find all posts by lasermail

PostPosted: Fri Sep 21, 2018 1:39 pm Reply with quote
coRpSE
That happened probably because you have several other files, possibly the public_html/includes/db/mysql.php that has been changed.
Do you happen to have the files that you uploaded and overwritten the original files?


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2452
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

 
PostPosted: Fri Sep 21, 2018 4:44 pm Reply with quote
coRpSE
Okay, try this, make a backup of what you have now and download the attached file and give this a try. I just modified the one you sent with a pretty original function.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2452
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Goto page 1, 2, 3  Next
Page 1 of 3


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme