[Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter


Goto page Previous  1, 2

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
If you needed, this is account for test.

Username: test
Password: test

The problem occurs frequently when a visitor visits the site.
When you insert a registered account then the problem disappears
It seems that a field of a spider / bot seems empty.

Thanks in advance

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
I had a play with this until I broke it, and the "only" browser that broke it was Chrome with this error.

chrome1

When I changed this line:

Code: [Download] [Hide] [Select]
if ((strpos($browser, 'Firefox') !== false) || (strpos($browser, 'MSIE') !== false) || (strpos($browser, 'Opera') !== false))


To: (I added Chrome), even Chrome is back to normal - (If it ever was normal?) :(

Code: [Download] [Hide] [Select]
if ((strpos($browser, 'Firefox') !== false) || (strpos($browser, 'MSIE') !== false) || (strpos($browser, 'Chrome') !== false) || (strpos($browser, 'Opera') !== false))


So fucile, if you want to test this - just find the first line and replace it with the second.

I'm not saying that it is "The" fix, but even today the only browser that is affecting your site for me is Chrome, and this is the best that I can come up with.

Or we'll just have to wait for MG. ;)

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Thanks I try

One question:

Which line ?

3450 ?

Edit:

This line is 3415 I have changed this line

If you make the test for look my site and my problem.

Thanks in advance

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Well my friend it appears that the problem has gone. ;)

I re-rested it with four browsers and there were no problems.

It used to be with Chrome that if I refreshed the page the errors would show before the graphics loaded.

After many, many re-connections and refreshes with Chrome - I think the picture tells the story. :mrgreen:

fixed

PS:
I couldn't give you a line number because the version I tested it with is the "Master Version" from GITHUB - Same problems - Different lines.

And if you don't have any more problems - I'll post it as a BUG to be looked at.

@MG In the Master Version it's functions.php - Line 3510:

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
From your change I believe chrome was considered a bot navigator ?

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Informpro wrote: [View Post]
From your change I believe chrome was considered a bot navigator ?


It probably is, because who knows what it's really doing or what information it's collecting for Google to use?

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Thank you for everything

The problem seems to finally disappeared.

MG I would wait for a definitive advice

@Informpro and Mort thank you guys and sorry because I have wasted your time free.




:mricy: and sorry for my bad english

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
fucile wrote: [View Post]
And sorry because I have wasted your time free.


There's nothing to apologise for because we all learned something from it. Took a while, but we got there eventually. ;)

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
I'm still a bit busy... but I may have a look hopefully tomorrow and provide a feedback.

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Updated:

I created a query to find out why it kept telling me that the boundary was empty.

I deleted the table ip_bots (DROP TABLE ip_bots)
I recreated the table (CREATE TABLE ip_bots)
I entered default values ​​at installation ( ALTER TABLE etc. )
All with a single query

No more errors

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
Fucile,

Are you saying that you did that and put the functions.php back to the original script?

Because knowing that for sure would help. :mricy:

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 3450: Strpos(): Empty Delimiter
I think the bug was related to a wrong BOT insertion through ACP.

Anyway the file should be patched to prevent wrong user data input.

I have edited it like this:
Code: [Download] [Hide] [Select]
if (!empty($ip_address) && !empty($active_bots[$i]['bot_ip']))
{
foreach (explode(',', $active_bots[$i]['bot_ip']) as $bot_ip)
{
$bot_ip = trim($bot_ip);
if (!empty($bot_ip) && (strpos($ip_address, $bot_ip) === 0))
{
$bot_name = (!empty($active_bots[$i]['bot_color']) ? $active_bots[$i]['bot_color'] : ('<b style="color:' . $bot_color . '">' . $active_bots[$i]['bot_name'] . '</b>'));
if (!empty($check_inactive) && ($active_bots[$i]['bot_active'] == 0))
{
if (!defined('STATUS_503')) define('STATUS_503', true);
message_die(GENERAL_ERROR, $lang['Not_Authorized']);
}
return array('name' => $bot_name, 'id' => $active_bots[$i]['bot_id']);
}
}
}

Goto page Previous  1, 2

Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1705s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled