Trouble from .19 to .20 using easy mod

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Trouble from .19 to .20 using easy mod

Post by ILoveNitro »

While I am in the first stage of installing via easy mod and the only real error it got hung up on was it couldn't complete this:


EM reports:

Code: Select all

Critical Error

FIND FAILED: In file [search.php] could not find:

if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
{
$search_author = '';
}
$search_author = str_replace('*', '%', trim($search_author));

MOD script line #2209 :: FAQ :: Report
Which relates to

Code: Select all

#
#-----[ FIND ]---------------------------------------------
# Line 214
				if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))
				{
					$search_author = '';
				}

				$search_author = str_replace('*', '%', trim($search_author));
				

#
#-----[ REPLACE WITH ]---------------------------------------------
#
				$search_author = str_replace('*', '%', trim($search_author));

				if( ( strpos($search_author, '%') !== false ) && ( strlen(str_replace('%', '', $search_author)) < 3 ) )
				{
					$search_author = '';
				}


#
I thought, no problem I will do it manually, while that code does not seem to be in search.php so now I am stumped :?:
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

Hate to bump prematurly, but my site is kinda in limbo between .19 and .20 and its causing some errors. Any idea why this section of code does not exist?
Kote Nuki
Registered User
Posts: 255
Joined: Thu Oct 31, 2002 6:04 pm
Location: Birmingham, AL
Contact:

Post by Kote Nuki »

Did you have any other MODs installed before upgrading?
Just me, Kote Nuki
cybrid23
Former Team Member
Posts: 9877
Joined: Wed Jun 29, 2005 5:55 am
Location: Somewhere in the Midwest...

Post by cybrid23 »

There are 2 main causes for this:

1) A Mod has changed the code in search.php

2) You missed and update or two along the way

If you manually search through the file, see if there is a line that resembles the one it is looking for....
---Never leave home without a towel and your peril sensitive sunglasses.
---Do Not PM Me For Support. It will go unanswered.
Thanks.
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

I had a few, let me think:

1. Easy mod
2. Quick Reply
3. Google Talk

I think thats about it?
Kote Nuki
Registered User
Posts: 255
Joined: Thu Oct 31, 2002 6:04 pm
Location: Birmingham, AL
Contact:

Post by Kote Nuki »

As cybrid23 stated:
There are 2 main causes for this:

1) A Mod has changed the code in search.php

2) You missed and update or two along the way

If you manually search through the file, see if there is a line that resembles the one it is looking for....
Last edited by Kote Nuki on Thu Apr 13, 2006 5:00 am, edited 2 times in total.
Just me, Kote Nuki
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

Kote Nuki wrote: Did you have any other MODs installed before upgrading?


I don't believe so. I can PM one of you a copy of my search.php if that would help.
Kote Nuki
Registered User
Posts: 255
Joined: Thu Oct 31, 2002 6:04 pm
Location: Birmingham, AL
Contact:

Post by Kote Nuki »

ILoveNitro wrote:
Kote Nuki wrote:Did you have any other MODs installed before upgrading?


I don't believe so. I can PM one of you a copy of my search.php if that would help.


That is fine or you can link to a text version of it.
Just me, Kote Nuki
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Post by karlsemple »

just open search.php yourself in a text editor and look through to see if that code is present, please bare in mind for support using easymod you need to go to http://area51.phpbb.com/phpBB/
Image
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

karlsemple wrote: just open search.php yourself in a text editor and look through to see if that code is present, please bare in mind for support using easymod you need to go to http://area51.phpbb.com/phpBB/



I have done that and there really isn't any code that resembles that.

PM sent to Kote Nuki thanks for your help!
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Post by karlsemple »

if you do not have that code present you must have edited the file at some point as it would be present in a standard search.php.
Image
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

karlsemple wrote: if you do not have that code present you must have edited the file at some point as it would be present in a standard search.php.


I suppose so.

Also, I have the keep unread flags mod installed.
Kote Nuki
Registered User
Posts: 255
Joined: Thu Oct 31, 2002 6:04 pm
Location: Birmingham, AL
Contact:

Post by Kote Nuki »

ILoveNitro wrote: PM sent to Kote Nuki thanks for your help!


Sent you back something that should help.
Just me, Kote Nuki
ILoveNitro
Registered User
Posts: 42
Joined: Mon May 10, 2004 10:20 pm
Contact:

Post by ILoveNitro »

Kote Nuki wrote:
ILoveNitro wrote:PM sent to Kote Nuki thanks for your help!


Sent you back something that should help.


Thanks I sent you one back, I think easy mod is cache the old error now.
nedret
Registered User
Posts: 8
Joined: Thu Aug 12, 2004 9:06 am
Location: Pretoria, South Africa

Post by nedret »

Is it possible that you post the solution here?

I happen to have the same problem.
Locked

Return to “2.0.x Support Forum”