Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7053423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:30:13+00:00 2026-05-28T03:30:13+00:00

I have a Cakephp website and when I look it up in Google it

  • 0

I have a Cakephp website and when I look it up in Google it shows an error in the description even though the site is working well.

The error shown:

$status = "Location: http://mywebsite.com/" header - [internal], line ?? 
Controller::header() - COREcake/libs/controller/controller.php, line 742     
Controller::redirect() ...

I Googled “Searched the internet” for the error and found that several CakePHP websites have the same problem, they work fine but there is an error in their Google description. Meta tags are displayed correctly in the source page.

Does anybody know what wrong?

I have set the debug to zero, uploaded a site map, robots.txt file and still suffer from the same problem even Bing and Yahoo are showing the same problem now.

If any body can give me a hand that would be really appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:30:14+00:00Added an answer on May 28, 2026 at 3:30 am

    I figured it out a week ago. I used a third-party library for browser detection since I did not feel like re-inviting the wheel. When I went though the code I noticed that the person who created it handled every browser possible. He had a series of if-elseif statements but no else statement.

    if(IE){
        do this
    }
    elseif(Firefox)
    {
      do that
    }
    ... for all the browsers
    

    the problem took place when the crawler visits the page and since the conditions can’t find a browser header it was outputting an error message.

    to solve the problem I just added an else condition and considered every crawler as a Firefox browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CakePHP site that is working fine (in terms of encoding)...but a
I have a CakePHP website that's been working great. I just developed a new
I have the CakePHP stack in /var/www/site from one view under controller A I
I am developing a travels related website using cakephp. I have to put some
I have a website made with CakePHP 1.3.7. This website has it's own login
I have checked out the cookbook web site of cakephp that there are four
I have a website written in PHP (CakePHP) where certain resource intensive tasks are
I have a CakePHP website that acts as a questionnaire. It moves the user
I have a CakePHP website and navigaton links are stored in database. What i
I have built a very simple CakePHP website using the Auth component and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.