Welcome Guest, Not a member yet? Register   Sign In
Google custom search has stopped working after update to CodeIgniter 2 [SOLVED]
#11

[eluser]maxbel[/eluser]
[quote author="CroNiX" date="1305329764"]Do you have security tokens enabled?[/quote]

No, they are not enabled.
#12

[eluser]maxbel[/eluser]
[quote author="John_Betong_002" date="1305280015"]Hi Maxbel,

Two things:

Firstly, I noticed that replacing a comma with space between search words does not create "Page not found".

Secondly, your config permitted setting is incorrect, you are missing a backslash.

Take a look at the CI2 config.php installation file:

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
 [/quote]


You're right John, there was a mistake in the permitted URI line. It doesn't fix the problem though.

I also noticed that the search query worked with the coma. Now, if I can get all my users to use comas in their queries... Smile

Still trying to get to the results page though...
#13

[eluser]John_Betong_002[/eluser]
Today my Google Search stopped working Sad

For quite some time I have had a problem with third party sites with incorrect links to my Jokes site and Google Webmaster Tools was complaining. Today I fixed that problem and the Google Search stopped working.

// incorrect link now handled gracefully
http://johns-jokes.com/afiles/images/saw...loaded.jpg width="66" height="50" alt="image"/></a> </div> <div class="c0 r"><a
#14

[eluser]maxbel[/eluser]
Hey John,

Have you already fixed the problem? I just tried the search on your site and it seemed to work fine.

What was, or is, the actual problem? Maybe we can help...
#15

[eluser]John_Betong_002[/eluser]
[quote author="maxbel" date="1306435550"]Hey John,

Have you already fixed the problem? I just tried the search on your site and it seemed to work fine.

What was, or is, the actual problem? Maybe we can help...
[/quote]

This Forum was being updated around the time I posted the following code and it looks as though there was a problem during the update.

During testing to get the error_404.php to work I changed the .htaccess file and Google Search stopped working.

Check to see it the line is in your .htaccess file.

Code:
RewriteCond %{HTTP_HOST} !^johns-jokes.com$ [NC]
  RewriteCond $1!^(index\.php|images|css|robots\.txt|favicon\.ico|Sitemap\.xml)
    
  # Removing next line causes Google-Search-Results to fail
  RewriteRule ^(.*)$ http://johns-jokes.com/$1 [L,R=301]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
&nbsp;
&nbsp;
&nbsp;




Theme © iAndrew 2016 - Forum software by © MyBB