Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

I've just updated EE from 2.5.3 to 2.7.3 and gone from a local testing environment (using Focus Lab Master Config) to a remote server. All works great apart from in my search results (using Low Search). If I click past the second pagination link, the link starts with my local test domain!!! WTF?!

I've done a DB dump and tried to grep to find any instances of this local address and the only thing I see is in the developer logs.

Has anyone ever come across anything like this?

I've cleared the contents of my ee cache directory as well. No joy.

share|improve this question
    
Can you add a bit more info? Like, are you encoding the search query or using GET vars? What's your LS version? Can you add the Results tag code here? –  Low Mar 4 at 13:37
    
I'm having this exact same problem except with Structure. On my staging environment, when I click "View Page" on structure pages, it takes me to my local dev url. What is going on?!?! expressionengine.stackexchange.com/questions/20343/… –  jthomas Mar 16 at 0:57

3 Answers 3

up vote 4 down vote accepted

So thanks to Low stepping in and doing some testing with me, we worked out that the problem was down to an extension hook for Structure that was messing up ALL pagination across the site.

Low performed the following sql query to find the hook in question:

SELECT * FROM exp_extensions WHERE hook = 'channel_module_create_pagination'

and then removed the Structure hook with the following query:

UPDATE exp_extensions SET enabled = 'n' WHERE extension_id = 148;

Note that in my particular case the Structure related extension_id was 148 - yours will no doubt be different (should anyone else come across this).

Now that is removed, all appears to be working as expected again.

share|improve this answer
    
Hmmm, I suppose I will give this a try. I wonder if it's the same thing causing my issue with Structure's "View Page" link loading my dev url even though I'm on staging. –  jthomas Mar 16 at 0:59
    
Does this not then prevent Structure from working as expected? Exact same issue here... –  Nathan Pitman Apr 15 at 21:44
    
I'm not having any issues with Structure to be honest. It's behaving itself despite that change. –  Jim Pannell Apr 29 at 9:24

Try completing the Comment Page URL fields in Channel Preferences. It's what Low Search uses for auto paths to multiple channels. Then double check it's not being overridden in FLMC.

share|improve this answer
    
Hi James. This is a single channel search issue. I'm adding the domain in Channel Prefs anyway. What's FLMC? –  Jim Pannell Mar 4 at 13:33
    
Focus Lab Master Config == FLMC –  erwinheiser Mar 4 at 13:34
    
Thanks guys - tried the channel prefs thing - nothing. Also I've search my entire file system for "pp.dev" (my local env) and there's nothing. No clue where it can be coming from. –  Jim Pannell Mar 4 at 13:36

It sounds like your local domain pp.dev has been saved in the database as the site url and it's either not being overridden properly by your config or LS is using the db version.

share|improve this answer
    
Thanks exactly what I thought Jamie. I did a db dump and used grep to see if I could see any instances of pp.dev. Nothing at all. –  Jim Pannell Mar 4 at 19:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.